{"info":{"_postman_id":"584816a6-dfe1-4a21-b1b1-f5e500bbda68","name":"Loyalty","description":"<html><head></head><body><h2 id=\"swan-integration-api-documentation\">Swan Integration API Documentation</h2>\n<p>Overview</p>\n<p>The Swan Integration API provides endpoints to seamlessly integrate with Swan, enabling developers to leverage Swan's features within their own applications.</p>\n<img src=\"https://content.pstmn.io/88bb8c73-37e3-40e1-9232-595223694a7a/c3dhbi1pbnRlZ3JhdGlvbi1kb2MucG5n\">\n\n<h3 id=\"authentication\">Authentication</h3>\n<p>Authentication is required for all API requests. Authentication credentials must be included in the headers of each request.</p>\n<h3 id=\"error-handling\">Error Handling</h3>\n<p>Errors are returned as JSON objects with appropriate HTTP status codes.</p>\n<h3 id=\"rate-limits\">Rate Limits</h3>\n<p>API requests are subject to rate limiting to ensure fair usage.</p>\n<h3 id=\"status-codes\">Status Codes</h3>\n<ul>\n<li><p><strong>200</strong>: OK - The request was successful.</p>\n</li>\n<li><p><strong>400</strong>: Bad Request - The request was invalid.</p>\n</li>\n<li><p><strong>401</strong>: Unauthorized - Authentication failed.</p>\n</li>\n<li><p><strong>403</strong>: Forbidden - The request is not allowed.</p>\n</li>\n<li><p><strong>404</strong>: Not Found - The requested resource does not exist.</p>\n</li>\n<li><p><strong>5xx</strong>: Server Error - An error occurred on the server.</p>\n</li>\n</ul>\n<h3 id=\"support\">Support</h3>\n<p>For assistance or inquiries, contact <a href=\"https://null\">support@swan.cx</a>.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"10335739","collectionId":"584816a6-dfe1-4a21-b1b1-f5e500bbda68","publishedId":"2sB3dJyCNK","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-11-25T17:04:12.000Z"},"item":[{"name":"Authentication","item":[{"name":"Get Auth Token","event":[{"listen":"test","script":{"exec":["pm.environment.set(\"token\", pm.response.json().data[0].token);"],"type":"text/javascript"}}],"id":"91fd209d-c5eb-4b35-8278-ffd31903a941","request":{"method":"GET","header":[{"key":"Ocp-Apim-Subscription-Key","value":"{{key}}","type":"text"}],"url":"{{auth-url}}/{{client}}/get-auth-token","description":"<p>This API endpoint retrieves an authentication token for the specified client. It is used to authenticate the client with the system and obtain a token for further authorized requests.</p>\n<p>The Auth token is valid for 24 hours.</p>\n","urlObject":{"path":["{{client}}","get-auth-token"],"host":["{{auth-url}}"],"query":[],"variable":[]}},"response":[{"id":"fa4412b5-41ed-4b81-a914-eebe0d1ea5a2","name":"Get Auth Token","originalRequest":{"method":"GET","header":[{"key":"Ocp-Apim-Subscription-Key","value":"769986c4b29244f29765cc9b43658219aa","type":"text"}],"url":"{{auth-url}}/{{client}}/get-auth-token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 11:56:23 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=HES0DC9S7Zy6JLlOX1dn8APQQmWO%2BPXxL6QYq%2FOamP8ChLRyEDlcIZDbbhDrMwMjM3PtEkcPblxPax37B2onyQZCesmzqii8WF3dyqsD0rh7caZ08yjyh5LAs5fkQSt59BA5cg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189af057869859b-BOM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"data\": [\n        {\n            \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnQiOiJsb3lhbHl0aWNzIiwicHVycG9zZSI6ImFwaS1hdXRoIiwiaWF0IjoxNjU0Nzc1NzgzLCJleHAiOjE2NTQ4NjIxODN9.13nsAvy0OG5DWfBjLqfT6S3HjadUoZGMiEigO1CtkF0\"\n        }\n    ]\n}"},{"id":"70117eb4-1dea-459e-9d65-a096dd463b57","name":"Get Auth Incorrect Subscription","originalRequest":{"method":"GET","header":[{"key":"Ocp-Apim-Subscription-Key","value":"{{key}}"}],"url":"{{auth-url}}/{{client}}/get-auth-token"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 08:01:45 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"143"},{"key":"Connection","value":"keep-alive"},{"key":"WWW-Authenticate","value":"AzureApiManagementKey realm=\"https://api.loyalytics.ai/swan/dev/auth\",name=\"Ocp-Apim-Subscription-Key\",type=\"header\""},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=k7e3OyYuf3vezZaGZsKN9DYMAP%2Fg3%2BCtffHyROkwXSAsj9kKc6qV8T6QEgtF8BJ16CFy%2FOUzbMPCXVjSYwnSf1N1uljMNgmrLyNZLZUf2eGraEcow9OI%2FObAyEHQVroqnNHhdA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"87ffaf105c85823d-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 401,\n    \"message\": \"Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription.\"\n}"}],"_postman_id":"91fd209d-c5eb-4b35-8278-ffd31903a941"}],"id":"bd30624c-ba7d-47dd-a645-a0cc79f2d5cf","_postman_id":"bd30624c-ba7d-47dd-a645-a0cc79f2d5cf","description":""},{"name":"Customer","item":[{"name":"Create Customer","id":"f8e6a928-7464-4b0d-b175-048398a2e8a8","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Jhon\",\n    \"lastName\": \"Dow\",\n    \"mobile\": \"{{mobile}}\",\n    \"signupTerminalId\": \"TEST01-02\",\n    \"email\": \"m@m.co\",\n    \"cashierId\": \"CASH001\",\n    \"storeID\": \"TEST01\",\n    \"language\": \"AR\",\n    \"dateOfBirth\": \"1982-01-01\",\n    \"dateOfAnniversery\": \"2011-01-01\",\n    \"gender\": \"M\",\n    \"country\": \"India\"\n}"},"url":"{{url}}/{{client}}/create-customer","description":"<p><strong>This API is to be used for registering a customer.</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Description</th>\n<th>Data Type</th>\n<th>Mandatory</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>mobile</td>\n<td>Mobile number with country code, no +</td>\n<td>String</td>\n<td>Mandatory</td>\n</tr>\n<tr>\n<td>email</td>\n<td>Email address</td>\n<td>String</td>\n<td>-</td>\n</tr>\n<tr>\n<td>firstName</td>\n<td>First name</td>\n<td>String</td>\n<td>-</td>\n</tr>\n<tr>\n<td>lastName</td>\n<td>Last name</td>\n<td>String</td>\n<td>-</td>\n</tr>\n<tr>\n<td>app</td>\n<td>Indicates if the customer is using the app (default to false)</td>\n<td>Boolean</td>\n<td>-</td>\n</tr>\n<tr>\n<td>notificationPreferences</td>\n<td>Preferences for receiving promotional notifications</td>\n<td>JSON Object</td>\n<td>-</td>\n</tr>\n<tr>\n<td>- smsPreference</td>\n<td>Consent for promotional SMS</td>\n<td>Boolean</td>\n<td>-</td>\n</tr>\n<tr>\n<td>- pushPreference</td>\n<td>Consent for promotional push notifications</td>\n<td>Boolean</td>\n<td>-</td>\n</tr>\n<tr>\n<td>- emailPreference</td>\n<td>Consent for promotional emails</td>\n<td>Boolean</td>\n<td>-</td>\n</tr>\n<tr>\n<td>- whatsappPreference</td>\n<td>Consent for promotional WhatsApp messages</td>\n<td>Boolean</td>\n<td>-</td>\n</tr>\n<tr>\n<td>address</td>\n<td>Address</td>\n<td>String</td>\n<td>-</td>\n</tr>\n<tr>\n<td>dateOfAnniversary</td>\n<td>Anniversary date (default empty string)</td>\n<td>String</td>\n<td>-</td>\n</tr>\n<tr>\n<td>country</td>\n<td>Country</td>\n<td>String</td>\n<td>-</td>\n</tr>\n<tr>\n<td>nationality</td>\n<td>Nationality</td>\n<td>String</td>\n<td>-</td>\n</tr>\n<tr>\n<td>dateOfBirth</td>\n<td>Date of birth (default empty string)</td>\n<td>String</td>\n<td>-</td>\n</tr>\n<tr>\n<td>gender</td>\n<td>Gender (default empty string)</td>\n<td>String</td>\n<td>-</td>\n</tr>\n<tr>\n<td>language</td>\n<td>Language (default empty string)</td>\n<td>String</td>\n<td>-</td>\n</tr>\n<tr>\n<td>city</td>\n<td>City</td>\n<td>String</td>\n<td>-</td>\n</tr>\n<tr>\n<td>storeID</td>\n<td>Store ID where the customer registered</td>\n<td>String</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div><p>Sample Request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">{\n    \"mobile\" : \"971xxxxxxx\", // mobile number with country code, no +\n    \"email\" : \"xxx.yyy@gmail.com\", // email address\n    \"firstName\" : \"xxx\", // first name\n    \"lastName\" : \"yyyy\", // last name\n    \"app\" : true, // based on if customer is using app or not, default to false\n    \"notificationPreferences\" : {\n        \"smsPreference\" : true, // consent for promotional sms\n        \"pushPreference\" : true, // consent for promotional push \n        \"emailPreference\" : true, // consent for promotional email\n        \"whatsappPreference\" : true // consent for promotional whatsapp\n    },\n    \"address\" : \"#203\\n\\n1 A Ghoroob Mirdif Dubai \", // address, default empty string\n    \"dateOfAnniversery\" : \" \", // anniversary date, default empty string\n    \"country\" : \"United Arab Emirates\", // country, default empty string\n    \"signedUpOn\" : \"2003-01-18\", // program sign up date\n    \"nationality\" : \"India\", // nationality\n    \"dateOfBirth\" : \"1966-01-20\", // DOB, default empty string\n    \"gender\" : \"Male\", // gender, default empty string\n    \"language\" : \"English\", // language, default empty string\n    \"city\" : \"Dubai\", // city\n    \"storeID\" : \"xxx\", // store id where the customer registered\n}\n\n</code></pre>\n","urlObject":{"path":["{{client}}","create-customer"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"88c6a9ac-0f4f-4a3e-85b2-4ba80bdb89a3","name":"Create customer","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Jhon\",\n    \"lastName\": \"Dow\",\n    \"mobile\": \"{{mobile}}\",\n    \"signupTerminalId\": \"TEST01-02\",\n    \"email\": \"m@m.co\",\n    \"cashierId\": \"CASH001\",\n    \"storeID\": \"TEST01\",\n    \"language\": \"AR\",\n    \"dateOfBirth\": \"1982-01-01\",\n    \"dateOfAnniversery\": \"2011-01-01\",\n    \"gender\": \"M\",\n    \"country\": \"India\"\n}"},"url":"{{url}}/{{client}}/create-customer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:02:59 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0c+GhYgAAAAA4QS4DOsC0QYVHSN2VA+FjQk9NMDFFREdFMDUwOQA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=aAfB2pdNWB85%2BIg07gkWpv4h%2FYr7WtuNCi9EBSNTbLV7dieoTDT3B0apNwqYnbFZuvp00CQ8osmnny%2BjZBRHioMAO9xfeapA3JGwgPR%2B6%2FMx%2B20MIGHKdM382%2BSKRU1lu4PWsA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189b8b3ed29859b-BOM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"200\",\n    \"data\": [\n        {\n            \"firstName\": \"Jhon\",\n            \"lastName\": \"Dow\",\n            \"mobile\": \"971777777777\",\n            \"signupTerminalId\": \"TEST01-02\",\n            \"email\": \"m@m.co\",\n            \"cashierId\": \"CASH001\",\n            \"storeID\": \"TEST01\",\n            \"language\": \"AR\",\n            \"dateOfBirth\": \"1982-01-01\",\n            \"dateOfAnniversery\": \"2011-01-01\",\n            \"gender\": \"M\",\n            \"country\": \"India\",\n            \"client\": \"loyalytics\",\n            \"CDID\": \"CTEST01-02-00000001-942263\",\n            \"referralCode\": \"CXBCF7E\",\n            \"type\": \"customer\",\n            \"notificationPreferences\": {\n                \"smsPreference\": true,\n                \"pushPreference\": true,\n                \"emailPreference\": true,\n                \"whatsappPreference\": false\n            },\n            \"totAvailablePoints\": 0,\n            \"totLifetimePoints\": 0,\n            \"signedUpOn\": \"2022-06-09T12:02:59.862Z\",\n            \"app\": false,\n            \"active\": true,\n            \"currentTier\": \"Silver\",\n            \"customerType\": \"normal\",\n            \"membershipId\": \"2010000035362\",\n            \"membership\": \"default\",\n            \"membershipStatus\": \"new\",\n            \"id\": \"73e2eb06-e5e1-4512-bc49-0b1aa2e64a42\"\n        }\n    ],\n    \"error\": null\n}"},{"id":"b8fdafbd-4334-4655-9bf9-efaf0decf56c","name":"Create customer - Cusotmer already Exists","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Jhon\",\n    \"lastName\": \"Dow\",\n    \"mobile\": \"{{mobile}}\",\n    \"signupTerminalId\": \"TEST01-02\",\n    \"email\": \"m@m.co\",\n    \"cashierId\": \"CASH001\",\n    \"storeID\": \"TEST01\",\n    \"language\": \"AR\",\n    \"dateOfBirth\": \"1982-01-01\",\n    \"dateOfAnniversery\": \"2011-01-01\",\n    \"gender\": \"M\",\n    \"country\": \"India\"\n}"},"url":"{{url}}/{{client}}/create-customer"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 10 Jul 2023 06:47:55 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=dG9WHqTKw9DvpzvcpttjbrBUaH%2Fo%2BJXvqSxGM9pRO%2BzHkQLgsTSYuKaGp73NmmkRFjBp9PlJpuZj3HLueJuj%2FJ1cTGe8YnPV5ApEu4AUZi2%2BL82PAQ6r085aLBAjn8q30DCPWA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7e46dba798a23de2-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Customer already Exists for this mobile Number\"\n    }\n}"},{"id":"16a9fab3-2456-4e42-a8e9-c49929eb947e","name":"Not authorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Jhon\",\n    \"lastName\": \"Dow\",\n    \"mobile\": \"{{mobile}}\",\n    \"signupTerminalId\": \"TEST01-02\",\n    \"email\": \"m@m.co\",\n    \"cashierId\": \"CASH001\",\n    \"storeID\": \"TEST01\",\n    \"language\": \"AR\",\n    \"dateOfBirth\": \"1982-01-01\",\n    \"dateOfAnniversery\": \"2011-01-01\",\n    \"gender\": \"M\",\n    \"country\": \"India\"\n}"},"url":"{{url}}/{{client}}/create-customer"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 08:05:55 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=Qr6fb0hGFM%2B9nC4ESDSRDkCaXve28pvFNCvJDnbZCLOOYp6hRJzT5%2B9%2Fb0G%2FWiPPZ21Nyusettb8BK%2FtX99hng3VwFzu2u%2BxD9dEITOa6NRaidfB3QVjgcSjQP3JAid3bvBSkA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"87ffb5271fe5823d-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"You are not Authorized\"\n    }\n}"}],"_postman_id":"f8e6a928-7464-4b0d-b175-048398a2e8a8"},{"name":"Get Customer","event":[{"listen":"test","script":{"exec":["",""],"type":"text/javascript"}}],"id":"fe69923d-268e-4688-a086-06509137d53b","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{url}}/{{client}}/get-customer?mobile={{mobile}}&email={{email}}","description":"<p><strong>This API can be used to fetch the details of the customer.</strong></p>\n<p>The customer details can be fetched by passing mobile number or email in the params.</p>\n<p>If both mobile and email are present customer will be searched by mobile number first</p>\n<p>If you want to search by email leave the mobile empty</p>\n<p>json</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{{url}}/{{client}}/customer/getcustomer?mobile=919438173533\n{{url}}/{{client}}/get-customer?mobile=&amp;email=jhon@gmail.com\n\n</code></pre>","urlObject":{"path":["{{client}}","get-customer"],"host":["{{url}}"],"query":[{"key":"mobile","value":"{{mobile}}"},{"key":"email","value":"{{email}}"}],"variable":[]}},"response":[{"id":"47e1eb89-3f6e-4fa5-8c2e-215398c2be07","name":"Customer not found","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{url}}/{{client}}/get-customer?mobile={{mobile}}&email={{email}}","host":["{{url}}"],"path":["{{client}}","get-customer"],"query":[{"key":"mobile","value":"{{mobile}}"},{"key":"email","value":"{{email}}"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 23 Dec 2022 12:01:16 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId=cid-v1:15914ab4-4a7c-4c42-a799-90019faa30f5"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=hcnsRGuQtiSBcVJjf2gs0uN%2BJufsAeciTcnMgZ4wiGBunUx5TAYoMxRGLUAOaYGGvN9gkR3V91Lzm4VbG0xh9y%2BBUEH2sFSZpSdWbADDVVCStQy541RFHnszLHMw%2F6sw0b2%2FHQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"77e0f1025dd7f484-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Customer Not Found\"\n    }\n}"},{"id":"e5c96916-638c-4fd4-9a2a-843d1a61fbe7","name":"Not authorized","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"url":{"raw":"{{url}}/{{client}}/get-customer?mobile={{mobile}}&email={{email}}","host":["{{url}}"],"path":["{{client}}","get-customer"],"query":[{"key":"mobile","value":"{{mobile}}"},{"key":"email","value":"{{email}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 08:05:19 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=v7%2BAWS8TREIM4Z2TiSbemyI%2BaHScfn6uz5my3Zb9o%2BxFXfMRCjPC0vU%2BURpeeQZQNAd0OEonNhcSQ76EqvZGurHlHy3weuUAc412wHcVjY%2B9uh0Co%2ByzWi6%2Fv6D0LGelqa3jhQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"87ffb445ab96823d-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"You are not Authorized\"\n    }\n}"},{"id":"fe0435c7-71dd-48ae-9ad5-4e3d8bb7f300","name":"Get customer","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"url":{"raw":"{{url}}/{{client}}/get-customer?mobile={{mobile}}&email={{email}}","host":["{{url}}"],"path":["{{client}}","get-customer"],"query":[{"key":"mobile","value":"{{mobile}}"},{"key":"email","value":"{{email}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 12:40:47 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=NVw5%2Bpdw7EqXRKJUhmNZEJOiELXMWrtBpa%2FTISHtTuHeQIHgsK%2F6Dt%2FCrACA2ZREsQpmDQ%2FCdFgfKHfLbGzsmfOwPrdafCOIJVd7P73Npscr0%2FivjCxbSL8d2OHQ%2FsYtrHCxbQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"880147c2bf90a02b-FRA"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"200\",\n    \"data\": [\n        {\n            \"firstName\": \"rethina\",\n            \"lastName\": \"seelan\",\n            \"mobile\": \"918904364205\",\n            \"email\": \"rethina@loyalytics.in\",\n            \"dateOfBirth\": \"2000-05-03\",\n            \"nationality\": \"Argentinean\",\n            \"gender\": \"Not Captured\",\n            \"language\": \"afar\",\n            \"notificationPreferences\": {\n                \"smsPreference\": true,\n                \"emailPreference\": true,\n                \"pushPreference\": true,\n                \"whatsappPreference\": true\n            },\n            \"feedback\": \"big guy\",\n            \"privilege\": \"loyalytics\",\n            \"client\": \"swan-test\",\n            \"type\": \"customer\",\n            \"cashierId\": \"aaron@loyalytics.in\",\n            \"signupTerminalId\": \"0\",\n            \"signupType\": \"swan\",\n            \"emailAuth\": false,\n            \"active\": true,\n            \"signedUpOn\": \"2023-05-09T05:01:32.207Z\",\n            \"CDID\": \"CING-00000016-307057\",\n            \"totValidTierTransValue\": 0,\n            \"totalTrans\": 0,\n            \"currentTier\": \"Silver\",\n            \"expiredPoints\": 0,\n            \"totLifetimePoints\": 275,\n            \"totalTransValue\": 0,\n            \"totAvailablePoints\": 275,\n            \"redeemedPoints\": 0,\n            \"returnedBillAmount\": 0,\n            \"referralCode\": \"IIG2LUC\",\n            \"membershipId\": \"\",\n            \"membershipStatus\": \"\",\n            \"storeID\": \"swan\",\n            \"triggerType\": \"signup\",\n            \"signUpChannel\": \"swan\",\n            \"id\": \"6bc37118-2789-45f3-86f0-e1bd6f1e29e4\",\n            \"_rid\": \"8KZ1AL+na7Sznr4BAAAABA==\",\n            \"_self\": \"dbs/8KZ1AA==/colls/8KZ1AL+na7Q=/docs/8KZ1AL+na7Sznr4BAAAABA==/\",\n            \"_etag\": \"\\\"a900cf60-0000-0500-0000-6639fca20000\\\"\",\n            \"_attachments\": \"attachments/\",\n            \"_ts\": 1715076258,\n            \"tierDetails\": [\n                {\n                    \"name\": \"gold\",\n                    \"ptsRatio\": 2,\n                    \"lowerThreshold\": 0,\n                    \"upperThreshold\": 10000000000000,\n                    \"showInput\": false,\n                    \"isSaved\": true\n                }\n            ],\n            \"conversion\": \"0.1\",\n            \"coupon\": []\n        }\n    ]\n}"}],"_postman_id":"fe69923d-268e-4688-a086-06509137d53b"},{"name":"Update Customer","id":"010a9b23-691b-471b-9d7e-b774fd96238d","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Jhon\",\n    \"lastName\": \"Doe\",\n    \"mobile\": \"{{mobile}}\",\n    \"email\": \"a@m.co\"\n}"},"url":"{{url}}/{{client}}/update-customer","description":"<p><strong>This API will let you update any demographics of the customer other than mobile number.</strong></p>\n<p>#Note: Mobile number can only be updated from the Swan Portal</p>\n<p><strong>Following Fields cannot be updated:</strong></p>\n<ol>\n<li><p>signupTerminalId</p>\n</li>\n<li><p>referredBy</p>\n</li>\n<li><p>updatedBy</p>\n</li>\n<li><p>cashierId</p>\n</li>\n<li><p>referralCode</p>\n</li>\n<li><p>totAvailablePoints</p>\n</li>\n<li><p>totLifetimePoints</p>\n</li>\n<li><p>signedUpOn</p>\n</li>\n<li><p>app</p>\n</li>\n<li><p>currentTier</p>\n</li>\n<li><p>id</p>\n</li>\n<li><p>totValidTierTransValue</p>\n</li>\n<li><p>totalTransValue</p>\n</li>\n<li><p>membershipTransactionValue</p>\n</li>\n<li><p>totalTrans</p>\n</li>\n<li><p>atv</p>\n</li>\n<li><p>lastTransValue</p>\n</li>\n<li><p>lastTransDate</p>\n</li>\n<li><p>totRedeemedPoints</p>\n</li>\n<li><p>totExpiredPoints</p>\n</li>\n<li><p>CDID</p>\n</li>\n</ol>\n","urlObject":{"path":["{{client}}","update-customer"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"b5bdfaa4-a50f-4583-9975-8e1255824e41","name":"Loyalty Update customer","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","type":"text"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Jhon\",\n    \"lastName\": \"Doe\",\n    \"mobile\": \"{{mobile}}\",\n    \"email\": \"a@m.co\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{client}}/update-customer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:04:42 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"02uGhYgAAAACHS7WPCwDWSIZc5AxAZiofQk9NMDFFREdFMDUwOQA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=70H2UNCDCGimPUPQd6SPawmbiXXGUBzkb9uV%2BenjPZjeqIoE9rfblhCAvKVp8xua2ZtN6w03HET%2FDxWzXf16JmnWPXVWdZ0l0tvM5StaZUsxWiHWFUJwANw2fpS4dJliAPacXw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189bb362ff1859b-BOM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"200\",\n    \"data\": [\n        {\n            \"firstName\": \"Jhon\",\n            \"lastName\": \"Doe\",\n            \"mobile\": \"971777777777\",\n            \"signupTerminalId\": \"TEST01-02\",\n            \"email\": \"a@m.co\",\n            \"cashierId\": \"CASH001\",\n            \"storeID\": \"TEST01\",\n            \"language\": \"AR\",\n            \"dateOfBirth\": \"1982-01-01\",\n            \"dateOfAnniversery\": \"2011-01-01\",\n            \"gender\": \"M\",\n            \"country\": \"India\",\n            \"client\": \"loyalytics\",\n            \"CDID\": \"CTEST01-02-00000001-942263\",\n            \"referralCode\": \"CXBCF7E\",\n            \"type\": \"customer\",\n            \"notificationPreferences\": {\n                \"smsPreference\": true,\n                \"pushPreference\": true,\n                \"emailPreference\": true,\n                \"whatsappPreference\": false\n            },\n            \"totAvailablePoints\": 0,\n            \"totLifetimePoints\": 0,\n            \"signedUpOn\": \"2022-06-09T12:02:59.862Z\",\n            \"app\": false,\n            \"active\": true,\n            \"currentTier\": \"Silver\",\n            \"customerType\": \"normal\",\n            \"membershipId\": \"2010000035362\",\n            \"membership\": \"default\",\n            \"membershipStatus\": \"new\",\n            \"id\": \"73e2eb06-e5e1-4512-bc49-0b1aa2e64a42\",\n            \"_rid\": \"iAZiAJY2KzX1IRUCAAAABw==\",\n            \"_self\": \"dbs/iAZiAA==/colls/iAZiAJY2KzU=/docs/iAZiAJY2KzX1IRUCAAAABw==/\",\n            \"_etag\": \"\\\"6601d87c-0000-2100-0000-62a1e1d10000\\\"\",\n            \"_attachments\": \"attachments/\",\n            \"profileUpdatedOn\": \"2022-06-09T12:04:42.668Z\",\n            \"_ts\": 1654776273\n        }\n    ],\n    \"error\": null\n}"},{"id":"38c6c928-9ace-4415-a439-96f37421069a","name":"Loyalty Update customer - Not Found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","type":"text"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Jhon\",\n    \"lastName\": \"Doe\",\n    \"mobile\": \"{{mobile}}\",\n    \"email\": \"a@m.co\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{client}}/update-customer"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 10 Jul 2023 06:48:31 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=r3OMKMCvnD1MS2wjl7KjdTcQ5YPqVNex2dEqnruVcVa6rpFbCytKoE2B6T%2BwCvpRLG4ZYJ%2FggqP%2BVVtQazP7JUN5YZHooAfaPOgFuGhhMPoLHRQacoPfsJO0Z5%2Fkbe9TZcIyIA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7e46dc8989d43de2-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Customer not Found Please Register\"\n    }\n}"},{"id":"641c7bae-727a-4f74-8b1e-ae13442cc9b9","name":"Not authorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Jhon\",\n    \"lastName\": \"Doe\",\n    \"mobile\": \"{{mobile}}\",\n    \"email\": \"a@m.co\"\n}"},"url":"{{url}}/{{client}}/update-customer"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 08:06:18 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=u0CNabK9hoxkM6UDk4dGWH31rMIh9acMbSMLdKzD4h25XvAPgFG7Gl0vfSZezQ33cFOhkASLxeIEO6xhzP88w7UtUO%2BLj9LGjmkJA4wO5uxDCnTjv8Pg0pjPp%2F52o6gFUlgI%2FA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"87ffb5bb0aea823d-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"You are not Authorized\"\n    }\n}"}],"_postman_id":"010a9b23-691b-471b-9d7e-b774fd96238d"},{"name":"Get Refferal Code","event":[{"listen":"test","script":{"exec":["",""],"type":"text/javascript"}}],"id":"c5ba7b75-3c59-4b9c-b867-8000c0714e08","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{url}}/{{client}}/get-referral?mobile={{mobile}}","description":"<p>This API retrieves the referral code associated with a customer. If the customer does not have a referral code, the API generates a new code for them.</p>\n","urlObject":{"path":["{{client}}","get-referral"],"host":["{{url}}"],"query":[{"key":"mobile","value":"{{mobile}}"}],"variable":[]}},"response":[{"id":"e1596944-cc48-4461-821c-b3778213cfcb","name":"Get Refferal Code","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{url}}/{{client}}/get-referral?mobile={{mobile}}","host":["{{url}}"],"path":["{{client}}","get-referral"],"query":[{"key":"mobile","value":"{{mobile}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:04:10 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0uuGhYgAAAACavWDnzg0pQ6m3EeQKu8o5Qk9NMDFFREdFMDUwOQA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Vjht5ie7UIjfweRlemgUCuijkmFyUoCf7wWp1pkEbcWDg62UnwGAc9MGzYqY%2Fd%2B5BE7pdjaUmCTG6fLdIqqZDeUwFRSBlelpA1bezwbzhgiMYVuAx0pInrxlhaGzXKVBjp9VlQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189ba6bba0d859b-BOM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"200\",\n    \"data\": [\n        \"CXBCF7E\"\n    ],\n    \"error\": null\n}"},{"id":"cd846bbd-8309-4bda-8013-8b0507b79ccc","name":"Refferal Code - Invalid Customer","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{url}}/{{client}}/get-referral?mobile={{mobile}}","host":["{{url}}"],"path":["{{client}}","get-referral"],"query":[{"key":"mobile","value":"{{mobile}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 10 Jul 2023 06:47:30 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=UtrGwr7uWW17WvgSp%2Fgm165XTU054QxTKb6ZFoUCNYk7eKgInASwopkJEMnA840xQO%2Blw4xl0mJxWx%2B8AI8wdhq31U7BWBXJxaQiyU9BkeJvF7s91HIcQttSIhfZqb59fD2NMw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7e46db0ba9bc3de2-SIN"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"200\",\n    \"data\": [\n        null\n    ],\n    \"error\": null\n}"}],"_postman_id":"c5ba7b75-3c59-4b9c-b867-8000c0714e08"},{"name":"Generate Registration OTP","id":"93403239-8048-48f4-8909-07d99376d74b","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"storeId\": \"{{storeID}}\" //optional field\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{client}}/send-otp","urlObject":{"path":["{{client}}","send-otp"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"1be979c3-199d-4e7e-a7cc-439eddbc1e37","name":"Generate Registration OTP","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"storeId\": \"{{storeID}}\" //optional field\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{client}}/send-otp"},"_postman_previewlanguage":"Text","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"message\": \"OTP sent successfully\"\n}"}],"_postman_id":"93403239-8048-48f4-8909-07d99376d74b"},{"name":"Verify Customer OTP","id":"7b88cde5-b5b4-46f3-b6e8-53605f6ba4e9","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"OTP\": \"{{otpVal}}\",\n    \"storeID\": \"{{storeID}}\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/post-verify-customer?client={{client}}","urlObject":{"path":["post-verify-customer"],"host":["{{url}}"],"query":[{"key":"client","value":"{{client}}"}],"variable":[]}},"response":[{"id":"3300b083-240d-4e05-8148-b0744e8bbb11","name":"Verify Customer OTP","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"OTP\": \"{{otpVal}}\",\n    \"storeID\": {{storeID}}\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{url}}/post-verify-customer?client={{client}}","host":["{{url}}"],"path":["post-verify-customer"],"query":[{"key":"client","value":"{{client}}"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"message\": \"Success\",\n    \"obj\": {\n        \"message\": \"OTP validated successfully\"\n    }\n}"}],"_postman_id":"7b88cde5-b5b4-46f3-b6e8-53605f6ba4e9"}],"id":"c76c7c19-faa5-4b16-b542-2aeff9ca2ad3","_postman_id":"c76c7c19-faa5-4b16-b542-2aeff9ca2ad3","description":""},{"name":"Transaction","item":[{"name":"Get Transaction","event":[{"listen":"test","script":{"exec":["",""],"type":"text/javascript"}}],"id":"2c8491ba-1d60-441c-9f16-884feecee00f","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{url}}/{{client}}/get-transactions?mobile={{mobile}}","description":"<p><strong>This API is to be used to fetch the transactions of the customer. This can be done in 3 ways</strong></p>\n<ul>\n<li><p>Either by passing Mobile number &amp; transaction ID in the req params.</p>\n</li>\n<li><p>Either by passing only Mobile number.</p>\n</li>\n<li><p>Either by passing only Transaction ID.</p>\n</li>\n</ul>\n","urlObject":{"path":["{{client}}","get-transactions"],"host":["{{url}}"],"query":[{"key":"mobile","value":"{{mobile}}"}],"variable":[]}},"response":[{"id":"4d13f6ad-69e2-45ca-bdda-ac031f77901b","name":"Loyalty Get Transaction - No Transactions","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{url}}/{{client}}/get-transactions?mobile={{mobile}}","host":["{{url}}"],"path":["{{client}}","get-transactions"],"query":[{"key":"mobile","value":"{{mobile}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:33:23 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0k+ihYgAAAAB6cu0lDxOdTa2jnJGdRiM7Qk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=92YLgvyzX1RsClm8rEmxrm%2F9oZjSJsWT2tiAC6tFQnYorGbAJe4fBNumZID%2Faj5AorOITZMh22vUzlKzhqSN7wNRJvQs85QGGt58%2BRLVXIzKAM6hMkzdRaUhIceSm%2F3pWKHxsw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189e53c881c84fe-BOM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"200\",\n    \"data\": [],\n    \"error\": null\n}"},{"id":"94aea6a3-d607-49e8-8ab8-da7668f0c09a","name":"Loyalty Get Transaction","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{url}}/{{client}}/get-transactions?mobile={{mobile}}","host":["{{url}}"],"path":["{{client}}","get-transactions"],"query":[{"key":"mobile","value":"{{mobile}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:33:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0rOihYgAAAAAUvHX5+/6PTYJQKFbRcAIxQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=jLrC1WqWrWyFmERKfj%2F0c9zBYrmCM%2ByJu13C2XN%2BTl7B1JHOGdTRM7kuNzw1K6cCTEWL22TznqqmXZknsbpCyFzxdLMLpF9EgSaWFZjEUdrM8TEPpYjf92Fqf5Xf1K0e4%2BcI%2BQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189e5d3dfbd84fe-BOM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"200\",\n    \"data\": [\n        {\n            \"customer\": {\n                \"customerDetails\": {\n                    \"mobile\": \"971777777777\",\n                    \"name\": \"\",\n                    \"email\": \"\",\n                    \"externalId\": \"\"\n                }\n            },\n            \"bill\": {\n                \"billNumber\": \"090000050000099\",\n                \"billAmt\": \"66.67\",\n                \"billGrossAmount\": \"70\",\n                \"billDiscount\": \"0\",\n                \"cashierId\": \"100979\",\n                \"companyCode\": \"AGR\",\n                \"notes\": \"\",\n                \"returnBillNum\": \"\",\n                \"billType\": \"Regular\",\n                \"storeID\": \"SPF2032\",\n                \"storeTerminalID\": \"SPF203201\",\n                \"currency\": \"AED\",\n                \"storePosId\": \"SPF203201\"\n            },\n            \"billLineItems\": {\n                \"lineItems\": [\n                    {\n                        \"stockNo\": \"TFS00091\",\n                        \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                        \"markdownFlag\": \"N\",\n                        \"quantity\": 1,\n                        \"rate\": \"30\",\n                        \"value\": \"30\",\n                        \"discount\": \"0\",\n                        \"amount\": 28.57,\n                        \"grossAmount\": \"30\",\n                        \"billNumber\": \"090000050000099\"\n                    },\n                    {\n                        \"stockNo\": \"TFS00090\",\n                        \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                        \"markdownFlag\": \"N\",\n                        \"quantity\": 1,\n                        \"rate\": \"40\",\n                        \"value\": \"40\",\n                        \"discount\": \"0\",\n                        \"amount\": 38.1,\n                        \"grossAmount\": \"40\",\n                        \"billNumber\": \"090000050000099\"\n                    }\n                ]\n            },\n            \"paymentMode\": {\n                \"paymentModeDetails\": [\n                    {\n                        \"payModeType\": \"1\",\n                        \"value\": 70\n                    },\n                    {\n                        \"payModeType\": \"LoyaltyPoints\",\n                        \"value\": 0\n                    }\n                ]\n            },\n            \"coupon\": {\n                \"couponDetails\": {\n                    \"couponCode\": \"\",\n                    \"couponValue\": \"\",\n                    \"couponType\": \"\"\n                }\n            },\n            \"receiptId\": \"r090000050000099\",\n            \"client\": \"loyalytics\",\n            \"type\": \"transaction\",\n            \"createdDate\": \"2022-06-09T12:33:39.320Z\",\n            \"transDate\": \"2022-06-09T12:33:39.320Z\",\n            \"before\": {\n                \"totalAvailablePoints\": 10,\n                \"tier\": \"Silver\",\n                \"totRedeemedPoints\": 0\n            },\n            \"CDID\": \"CTEST01-02-00000001-942263\",\n            \"loyaltyPoints\": 0,\n            \"totAvailablePoints\": 10,\n            \"totRedeemedPoints\": 0,\n            \"id\": \"5a1bb5c3-34d6-4407-9d4f-8509d25efb9e\",\n            \"_rid\": \"iAZiAJY2KzXoJRUCAAAABw==\",\n            \"_self\": \"dbs/iAZiAA==/colls/iAZiAJY2KzU=/docs/iAZiAJY2KzXoJRUCAAAABw==/\",\n            \"_etag\": \"\\\"67019f44-0000-2100-0000-62a1e8a30000\\\"\",\n            \"_attachments\": \"attachments/\",\n            \"_ts\": 1654778019\n        }\n    ],\n    \"error\": null\n}"},{"id":"6444a9ea-5300-4a3f-87bf-0eebfd796860","name":"Loyalty Get Transaction - Customer not Found","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{url}}/{{client}}/get-transactions?mobile={{mobile}}","host":["{{url}}"],"path":["{{client}}","get-transactions"],"query":[{"key":"mobile","value":"{{mobile}}"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 10 Jul 2023 06:50:30 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=eIQd6JuxBDLnGcFB1O2mA3Z6kKwn7lMkJiuszR1uLR7Sys8Hee4S3fnn%2Fk%2FT2Cid2eyX74rF0SiA10nAs9aV1A52SFWSagKU0OXOPdtt59OFAdCIGWcvWwL0%2FWUIKm2g64UfBQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7e46df73bb4d3de2-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Cannot destructure property 'CDID' of '(intermediate value)' as it is undefined.\"\n    }\n}"},{"id":"f6c1ee3d-04ce-48fa-8239-a89e804ce614","name":"Not authorized","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"url":{"raw":"{{url}}/{{client}}/get-transactions?mobile={{mobile}}","host":["{{url}}"],"path":["{{client}}","get-transactions"],"query":[{"key":"mobile","value":"{{mobile}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 08:14:47 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=A83Zo%2FEVM9LPWQZ5aY76FPq4ArpCMWvoZJumDItT1LcI1n1hQc3hoKggbmcCq6qsKFgbRRWDjpXiv19cp6NuFRFhTb6zr8sr1Krb5njNyYyzf98%2FIb41w3W81TN3L63W2DiofA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"87ffc22b5e38823d-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"You are not Authorized\"\n    }\n}"},{"id":"e2897ca6-cc0e-4c00-87fe-eb047ab6dc32","name":"Get Transaction by Id","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"url":{"raw":"{{url}}/{{client}}/get-transactions?transactionId=b1234567","host":["{{url}}"],"path":["{{client}}","get-transactions"],"query":[{"key":"transactionId","value":"b1234567"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 09:38:01 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=NtFFyketgQnBqHwQjOJYCvfcuy9fUIc6%2BD8zjphfEgpwE3xD6Ts8wr8CzgLG3mnJ%2BTNutLbOOzcnbXyF2jvjvyOTRE9UoBpdFBIvZovxWS3BaMAiJfrXcv%2FLmHpx4KkHeQlkDg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"88003c13089ba06d-FRA"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"200\",\n    \"data\": [\n        {\n            \"customer\": {\n                \"customerDetails\": {\n                    \"name\": \"\\n\",\n                    \"externalId\": \"\\n\"\n                }\n            },\n            \"bill\": {\n                \"billNumber\": \"b1234567\",\n                \"billAmt\": 66.67,\n                \"billGrossAmount\": 70,\n                \"billDiscount\": 0,\n                \"cashierId\": \"100979\",\n                \"companyCode\": \"AGR\",\n                \"notes\": \"\",\n                \"returnBillNum\": [],\n                \"billType\": \"Regular\",\n                \"storeID\": \"1105\",\n                \"storeTerminalID\": \"SPF203201\",\n                \"currency\": \"AED\"\n            },\n            \"billLineItems\": {\n                \"lineItems\": [\n                    {\n                        \"stockNo\": \"1222222\",\n                        \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                        \"markdownFlag\": \"N\",\n                        \"quantity\": 1,\n                        \"rate\": 30,\n                        \"value\": 30,\n                        \"discount\": 0,\n                        \"amount\": 28.57,\n                        \"grossAmount\": 30,\n                        \"billNumber\": \"b1234567\",\n                        \"category\": \"pharma\",\n                        \"points\": 4.2855\n                    }\n                ]\n            },\n            \"paymentMode\": {\n                \"paymentModeDetails\": [\n                    {\n                        \"payModeType\": \"1\",\n                        \"value\": 69\n                    },\n                    {\n                        \"payModeType\": \"2\",\n                        \"value\": 1\n                    }\n                ]\n            },\n            \"receiptId\": \"Rb1234567\",\n            \"type\": \"transaction\",\n            \"client\": \"swan-test\",\n            \"createdDate\": \"2023-07-12T05:30:32.097Z\",\n            \"transDate\": \"2023-07-10T10:58:13.766Z\",\n            \"before\": {\n                \"totalAvailablePoints\": 582952.5202003999,\n                \"tier\": \"Silver\",\n                \"totRedeemedPoints\": 12992\n            },\n            \"CDID\": \"CDEMO-0000000-45026\",\n            \"loyaltyPoints\": 4.2855,\n            \"totAvailablePoints\": 582956.8057004,\n            \"totRedeemedPoints\": 0,\n            \"mergeId\": \"MIG_0e55a224-5cc6-44bd-99d3-983c71281e7b\",\n            \"mergedDate\": \"2023-08-03T13:03:11.149Z\",\n            \"id\": \"e247ed3b-b700-434e-69d4-4dd3fa00f8d6\",\n            \"_rid\": \"8KZ1AL+na7R6tf4BAAAABg==\",\n            \"_self\": \"dbs/8KZ1AA==/colls/8KZ1AL+na7Q=/docs/8KZ1AL+na7R6tf4BAAAABg==/\",\n            \"_etag\": \"\\\"01006a32-0000-0500-0000-64cba5920000\\\"\",\n            \"_attachments\": \"attachments/\",\n            \"_ts\": 1691067794\n        }\n    ],\n    \"error\": null\n}"},{"id":"caa61e94-0865-4b04-9d5d-0779a3e8348e","name":"Get Transaction with mobile and transaction Id","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"url":{"raw":"{{url}}/{{client}}/get-transactions?mobile={{mobile}}&transactionId=b1234567","host":["{{url}}"],"path":["{{client}}","get-transactions"],"query":[{"key":"mobile","value":"{{mobile}}"},{"key":"transactionId","value":"b1234567"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 09:38:48 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=FFdt6mMt5d8Ck6jfjSYTjbSpx6NcovYe4utNwQ0Xd1UU82M49CosgHjs2HqZMLyt9YQJei5X6rUk0Ybo%2F%2BYKTyEMlXmbmwEpm0ylhQF48rXjXUsf16OyLxoYPEe9j3w982wJGA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"88003d3c3f60a06d-FRA"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"200\",\n    \"data\": [\n        {\n            \"customer\": {\n                \"customerDetails\": {\n                    \"name\": \"\\n\",\n                    \"externalId\": \"\\n\"\n                }\n            },\n            \"bill\": {\n                \"billNumber\": \"b1234567\",\n                \"billAmt\": 66.67,\n                \"billGrossAmount\": 70,\n                \"billDiscount\": 0,\n                \"cashierId\": \"100979\",\n                \"companyCode\": \"AGR\",\n                \"notes\": \"\",\n                \"returnBillNum\": [],\n                \"billType\": \"Regular\",\n                \"storeID\": \"1105\",\n                \"storeTerminalID\": \"SPF203201\",\n                \"currency\": \"AED\"\n            },\n            \"billLineItems\": {\n                \"lineItems\": [\n                    {\n                        \"stockNo\": \"1222222\",\n                        \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                        \"markdownFlag\": \"N\",\n                        \"quantity\": 1,\n                        \"rate\": 30,\n                        \"value\": 30,\n                        \"discount\": 0,\n                        \"amount\": 28.57,\n                        \"grossAmount\": 30,\n                        \"billNumber\": \"b1234567\",\n                        \"category\": \"pharma\",\n                        \"points\": 4.2855\n                    }\n                ]\n            },\n            \"paymentMode\": {\n                \"paymentModeDetails\": [\n                    {\n                        \"payModeType\": \"1\",\n                        \"value\": 69\n                    },\n                    {\n                        \"payModeType\": \"2\",\n                        \"value\": 1\n                    }\n                ]\n            },\n            \"receiptId\": \"Rb1234567\",\n            \"type\": \"transaction\",\n            \"client\": \"swan-test\",\n            \"createdDate\": \"2023-07-12T05:30:32.097Z\",\n            \"transDate\": \"2023-07-10T10:58:13.766Z\",\n            \"before\": {\n                \"totalAvailablePoints\": 582952.5202003999,\n                \"tier\": \"Silver\",\n                \"totRedeemedPoints\": 12992\n            },\n            \"CDID\": \"CDEMO-0000000-45026\",\n            \"loyaltyPoints\": 4.2855,\n            \"totAvailablePoints\": 582956.8057004,\n            \"totRedeemedPoints\": 0,\n            \"mergeId\": \"MIG_0e55a224-5cc6-44bd-99d3-983c71281e7b\",\n            \"mergedDate\": \"2023-08-03T13:03:11.149Z\",\n            \"id\": \"e247ed3b-b700-434e-69d4-4dd3fa00f8d6\",\n            \"_rid\": \"8KZ1AL+na7R6tf4BAAAABg==\",\n            \"_self\": \"dbs/8KZ1AA==/colls/8KZ1AL+na7Q=/docs/8KZ1AL+na7R6tf4BAAAABg==/\",\n            \"_etag\": \"\\\"01006a32-0000-0500-0000-64cba5920000\\\"\",\n            \"_attachments\": \"attachments/\",\n            \"_ts\": 1691067794\n        }\n    ],\n    \"error\": null\n}"}],"_postman_id":"2c8491ba-1d60-441c-9f16-884feecee00f"},{"name":"Return transaction","event":[{"listen":"test","script":{"exec":["","// pm.environment.set(\"returnBillNumber\",pm.environment.get(\"billNo\") );","let pad='000000000000000';","let billno=(pad.toString() +(parseInt(pm.environment.get(\"billNo\"))+1).toString()).slice(-pad.length);","pm.environment.set(\"billNo\", billno);","","","",""],"type":"text/javascript"}}],"id":"0c043bf5-b724-42f4-8c96-9f10342d3527","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billAmt\": -66.67,\n        \"billGrossAmount\": -70,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": [\"{{returnBillNumber}}\"],\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": -1,\n                \"rate\": -30,\n                \"value\": -30,\n                \"discount\": 0,\n                \"amount\": -28.57,\n                \"grossAmount\": -30,\n                \"billNumber\": \"{{returnBillNumber}}\",\n                \"category\": \"pharma\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": -1,\n                \"rate\": -40,\n                \"value\": -40,\n                \"discount\": 0,\n                \"amount\": -38.1,\n                \"grossAmount\": -40,\n                \"billNumber\": \"{{returnBillNumber}}\",\n                \"category\": \"nonPharma\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"1\",\n                \"value\": -70\n            },\n            {\n                \"payModeType\": \"LoyaltyPoints\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"receiptId\": \"r{{billNo}}\"\n}"},"url":"{{url}}/{{client}}/create-transaction","description":"<p>This is the same API as create transaction only ,differing only in the request body structure.</p>\n<p>This API will also take back any points that were issued to the customer in the original transaction. if the customer doesn't have enough points the total available points will be made -ve</p>\n","urlObject":{"path":["{{client}}","create-transaction"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"1f80b462-8aff-4f97-8e0f-feaca2f966db","name":"Return transaction","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billAmt\": -66.67,\n        \"billGrossAmount\": -70,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": \"{{returnBillNumber}}\",\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": -1,\n                \"rate\": -30,\n                \"value\": -30,\n                \"discount\": 0,\n                \"amount\": -28.57,\n                \"grossAmount\": -30,\n                \"billNumber\": \"{{returnBillNumber}}\",\n                \"category\": \"pharma\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": -1,\n                \"rate\": -40,\n                \"value\": -40,\n                \"discount\": 0,\n                \"amount\": -38.1,\n                \"grossAmount\": -40,\n                \"billNumber\": \"{{returnBillNumber}}\",\n                \"category\": \"nonPharma\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"1\",\n                \"value\": -70\n            },\n            {\n                \"payModeType\": \"LoyaltyPoints\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"receiptId\": \"r{{billNo}}\"\n}"},"url":"{{url}}/{{client}}/create-transaction"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:36:05 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0NOmhYgAAAAA5ci4W3HpsTZ7huDaH0V1xQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=nFI0j6EAuMk88xMvsK8bbH8kCG9zZznSfZJkMvUKz1zNXEtrjYpX47QvWSZglPseGEzpPR272s8HdCmKptlWvow7fsGpgQoVjF8AA2L8ur2Nm2F%2BilCpzRoiYCbEDzmYHBwxZg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189e9289b4d84fe-BOM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"200\",\n    \"data\": [\n        {\n            \"customer\": {\n                \"customerDetails\": {\n                    \"mobile\": \"971777777777\",\n                    \"name\": \"\",\n                    \"email\": \"\",\n                    \"externalId\": \"\"\n                }\n            },\n            \"bill\": {\n                \"billNumber\": \"090000050000102\",\n                \"billAmt\": -66.67,\n                \"billGrossAmount\": -70,\n                \"billDiscount\": 0,\n                \"cashierId\": \"100979\",\n                \"companyCode\": \"AGR\",\n                \"notes\": \"\",\n                \"returnBillNum\": [\n                    \"090000050000101\"\n                ],\n                \"billType\": \"Regular\",\n                \"storeID\": \"SPF2032\",\n                \"storeTerminalID\": \"SPF203201\",\n                \"currency\": \"AED\"\n            },\n            \"billLineItems\": {\n                \"lineItems\": [\n                    {\n                        \"stockNo\": \"TFS00091\",\n                        \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                        \"markdownFlag\": \"N\",\n                        \"quantity\": -1,\n                        \"rate\": -30,\n                        \"value\": -30,\n                        \"discount\": 0,\n                        \"amount\": -28.57,\n                        \"grossAmount\": -30,\n                        \"billNumber\": \"090000050000101\",\n                        \"category\": \"pharma\",\n                        \"points\": -30\n                    },\n                    {\n                        \"stockNo\": \"TFS00090\",\n                        \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                        \"markdownFlag\": \"N\",\n                        \"quantity\": -1,\n                        \"rate\": -40,\n                        \"value\": -40,\n                        \"discount\": 0,\n                        \"amount\": -38.1,\n                        \"grossAmount\": -40,\n                        \"billNumber\": \"090000050000101\",\n                        \"category\": \"nonPharma\",\n                        \"points\": -40\n                    }\n                ]\n            },\n            \"paymentMode\": {\n                \"paymentModeDetails\": [\n                    {\n                        \"payModeType\": \"1\",\n                        \"value\": -70\n                    },\n                    {\n                        \"payModeType\": \"LoyaltyPoints\",\n                        \"value\": 0\n                    }\n                ]\n            },\n            \"coupon\": {\n                \"couponDetails\": {\n                    \"couponCode\": \"\",\n                    \"couponValue\": \"\",\n                    \"couponType\": \"\"\n                }\n            },\n            \"receiptId\": \"r090000050000102\",\n            \"client\": \"loyalytics\",\n            \"type\": \"transaction\",\n            \"createdDate\": \"2022-06-09T12:36:04.638Z\",\n            \"transDate\": \"2022-06-09T12:36:04.638Z\",\n            \"before\": {\n                \"totalAvailablePoints\": 80,\n                \"tier\": \"Silver\",\n                \"totRedeemedPoints\": 0\n            },\n            \"CDID\": \"CTEST01-02-00000001-942263\",\n            \"loyaltyPoints\": -70,\n            \"totAvailablePoints\": 10\n        }\n    ],\n    \"error\": null\n}"},{"id":"6a08f53d-ed92-40e6-b642-58b61c2f6247","name":"Transaction does not exists","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billAmt\": -66.67,\n        \"billGrossAmount\": -70,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": [\"{{returnBillNumber}}\"],\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": -1,\n                \"rate\": -30,\n                \"value\": -30,\n                \"discount\": 0,\n                \"amount\": -28.57,\n                \"grossAmount\": -30,\n                \"billNumber\": \"{{returnBillNumber}}\",\n                \"category\": \"pharma\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": -1,\n                \"rate\": -40,\n                \"value\": -40,\n                \"discount\": 0,\n                \"amount\": -38.1,\n                \"grossAmount\": -40,\n                \"billNumber\": \"{{returnBillNumber}}\",\n                \"category\": \"nonPharma\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"1\",\n                \"value\": -70\n            },\n            {\n                \"payModeType\": \"LoyaltyPoints\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"receiptId\": \"r{{billNo}}\"\n}"},"url":"{{url}}/{{client}}/create-transaction"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 10 Jul 2023 06:52:55 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=xyf%2BcyXS8UaI8X1ufb62UwbU9CPaFUwGlZTepgpVm%2FJjDmG98UhP0wcHb2jK2tq6aEXYV6%2FPRidrO2REtUov9CquoSVoG5%2FIRz7f7yqdP8a8LzJSAXf0QqDQRHRJ3gPGv9YXcg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7e46e2fa0d093de2-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Transaction being returned doesn't exist \"\n    }\n}"},{"id":"37cff665-803d-4f65-b971-231e3a20c27b","name":"Not authorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billAmt\": -66.67,\n        \"billGrossAmount\": -70,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": [\"{{returnBillNumber}}\"],\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": -1,\n                \"rate\": -30,\n                \"value\": -30,\n                \"discount\": 0,\n                \"amount\": -28.57,\n                \"grossAmount\": -30,\n                \"billNumber\": \"{{returnBillNumber}}\",\n                \"category\": \"pharma\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": -1,\n                \"rate\": -40,\n                \"value\": -40,\n                \"discount\": 0,\n                \"amount\": -38.1,\n                \"grossAmount\": -40,\n                \"billNumber\": \"{{returnBillNumber}}\",\n                \"category\": \"nonPharma\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"1\",\n                \"value\": -70\n            },\n            {\n                \"payModeType\": \"LoyaltyPoints\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"receiptId\": \"r{{billNo}}\"\n}"},"url":"{{url}}/{{client}}/create-transaction"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 08:07:24 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=W2RnEPW8ZM6TtYaV4oQoqIRCxmNXV1iCXMXgWfevQHKwfFwIQLxi9NiJbgY5MUTZ1A6N5inj3D2W4HvbOKN2DjCF1411QIPEjVpTRcL5rwULvsHfcI1EAvNBGXwcumbH5Erp1Q%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"87ffb759d9de823d-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"You are not Authorized\"\n    }\n}"}],"_postman_id":"0c043bf5-b724-42f4-8c96-9f10342d3527"},{"name":"Create Transaction","event":[{"listen":"test","script":{"exec":["","pm.environment.set(\"returnBillNumber\",pm.environment.get(\"billNo\") );","let pad='000000000000000';","let billno=(pad.toString() +(parseInt(pm.environment.get(\"billNo\"))+1).toString()).slice(-pad.length);","pm.environment.set(\"billNo\", billno);","","","",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"7eb31575-16fc-46c2-9798-51972c12ad98","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billAmt\": 66.67,\n        \"billGrossAmount\": 70.0,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": [],\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"{{billNo}}\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 0,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"{{billNo}}\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"2\",\n                \"value\": 70\n            },\n            {\n                \"payModeType\": \"1\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"appliedPromotions\": [\n        {\n            \"promotionId\": \"\",\n            \"stockNo\": \"\",\n            \"value\": 0\n        }\n    ],\n    \"receiptId\": \"r{{billNo}}\",\n    \"transDate\": \"2022-08-10T00:00:00.00Z\"\n}"},"url":"{{url}}/{{client}}/create-transaction","description":"<p><strong>This API is to be used when the customer is making any transaction.</strong></p>\n<ul>\n<li><p>Making a transaction or Forward transaction</p>\n</li>\n<li><p>Return Transaction</p>\n</li>\n<li><p>Bad Transaction</p>\n</li>\n</ul>\n<p>Based on the purchased items on any transaction points are given to the customer.</p>\n<p>There are various payment mode types such as</p>\n<ul>\n<li><p>Payment by LoyaltyPoints. This is identified if the passed value is LoyaltyPoints. <em><strong>Ex -&gt; payModeType: \"</strong></em><strong>LoyaltyPoints</strong><em><strong>\"</strong></em></p>\n</li>\n<li><p>Payment by Gift card. This is identified if the passed value is GiftCard. <em><strong>Ex -&gt; payModeType: \"</strong></em><strong>GiftCard</strong><em>\"</em></p>\n</li>\n<li><p>Payment by Cash or any Card. This is identified if any number(1,2,3,4...) is passed in as the value. <em>*<strong><strong>Ex -&gt; payModeType: \"1\" , payModeType: \"Card\"</strong></strong>*</em></p>\n</li>\n</ul>\n<p>The <code>appliedPromotions</code> field captures all promotion benefits that were calculated via the <code>/apply</code> endpoint and actually applied on the transaction.</p>\n<p><strong>Note:</strong> When promotions are applied, then first <code>/apply</code> endpoint of promotion is called first before creating the transaction as applied promotion details need to be passed to the transaction.</p>\n<h2 id=\"validation-rules\"><strong>Validation Rules</strong></h2>\n<p>The following table outlines the validation rules applied to the transaction data.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Title</strong></th>\n<th><strong>Rule</strong></th>\n<th><strong>Error Example</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>Bill Number</strong></td>\n<td>Required, String, Trimmed, Min 7 chars</td>\n<td><code>\"bill.billNumber\" is required</code> <code>\"bill.billNumber\" length must be at least 7 characters long\"</code></td>\n</tr>\n<tr>\n<td><strong>Bill Amount</strong></td>\n<td>Required, Number</td>\n<td><code>\"bill.billAmt\" is required\"</code></td>\n</tr>\n<tr>\n<td><strong>Bill Gross Amount</strong></td>\n<td>Required, Number</td>\n<td><code>\"bill.billGrossAmount\" is required\"</code></td>\n</tr>\n<tr>\n<td><strong>Bill Discount</strong></td>\n<td>Required, Number</td>\n<td><code>\"bill.billDiscount\" is required\"</code></td>\n</tr>\n<tr>\n<td><strong>Company Code</strong></td>\n<td>Optional, String</td>\n<td><code>\"bill.companyCode\" is optional\"</code></td>\n</tr>\n<tr>\n<td><strong>Line Items</strong></td>\n<td>Required, Array, Min 1</td>\n<td><code>\"billLineItems.lineItems\" must contain at least 1 items\"</code></td>\n</tr>\n<tr>\n<td><strong>Payment Mode</strong></td>\n<td>Required, Array, Min 1</td>\n<td><code>\"paymentMode.paymentModeDetails\" must contain at least 1 items\"</code></td>\n</tr>\n<tr>\n<td><strong>Payment Total Mismatch</strong></td>\n<td>Sum(paymentModes.value) = billAmount</td>\n<td><code>Sum of payment mode values ({paymentTotal}) must equal bill amount ({billGrossAmount})</code></td>\n</tr>\n<tr>\n<td><strong>Line Item Amount Mismatch</strong></td>\n<td>Sum(lineItems.amount) = billAmount</td>\n<td><code>Total Line Items amount ({totalLineItemAmount}) must equal bill amount ({billAmount})</code></td>\n</tr>\n<tr>\n<td><strong>Line Item Gross Amount Mismatch</strong></td>\n<td>Sum(lineItems.grossAmount) = billGrossAmount</td>\n<td><code>Total Line Items gross amount ({totalLineItemGrossAmount}) must equal bill gross amount ({billGrossAmount})</code></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"1-bill-details-_bill_\"><strong>1. Bill Details (</strong>*<code>_**bill**_</code><strong>)</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Required</th>\n<th>Rules / Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>billNumber</code></td>\n<td>String</td>\n<td>Yes</td>\n<td>Min 7 chars</td>\n</tr>\n<tr>\n<td><code>billAmt</code></td>\n<td>Number</td>\n<td>Yes</td>\n<td>Net bill amount</td>\n</tr>\n<tr>\n<td><code>billGrossAmount</code></td>\n<td>Number</td>\n<td>Yes</td>\n<td>Gross bill amount</td>\n</tr>\n<tr>\n<td><code>billDiscount</code></td>\n<td>Number</td>\n<td>Yes</td>\n<td>Total discount</td>\n</tr>\n<tr>\n<td><code>companyCode</code></td>\n<td>String</td>\n<td>Yes</td>\n<td>Company identifier</td>\n</tr>\n<tr>\n<td><code>cashierId</code></td>\n<td>String</td>\n<td>No</td>\n<td>Cashier ID</td>\n</tr>\n<tr>\n<td><code>notes</code></td>\n<td>String</td>\n<td>No</td>\n<td>Max 200 chars</td>\n</tr>\n<tr>\n<td><code>channel</code></td>\n<td>String</td>\n<td>No</td>\n<td>Transaction channel</td>\n</tr>\n<tr>\n<td><code>returnBillNum</code></td>\n<td>String/Array</td>\n<td>No</td>\n<td>Original bill(s) for return</td>\n</tr>\n<tr>\n<td><code>billType</code></td>\n<td>String</td>\n<td>No</td>\n<td>Bill type</td>\n</tr>\n<tr>\n<td><code>storeID</code></td>\n<td>String</td>\n<td>Yes</td>\n<td>Store identifier</td>\n</tr>\n<tr>\n<td><code>storeTerminalID</code></td>\n<td>String/Number</td>\n<td>No</td>\n<td>POS terminal ID</td>\n</tr>\n<tr>\n<td><code>currency</code></td>\n<td>String</td>\n<td>No</td>\n<td>Currency code</td>\n</tr>\n<tr>\n<td><code>conversionRate</code></td>\n<td>Number</td>\n<td>No</td>\n<td>Conversion rate</td>\n</tr>\n<tr>\n<td><code>totalTax</code></td>\n<td>Number</td>\n<td>No</td>\n<td>Total tax</td>\n</tr>\n<tr>\n<td><code>source</code></td>\n<td>String</td>\n<td>No</td>\n<td>Source of transaction</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"2-line-item-details-_billlineitemslineitems_\"><strong>2. Line Item Details (</strong>*<code>_**billLineItems.lineItems**_</code><strong>)</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Required</th>\n<th>Rules / Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>stockNo</code></td>\n<td>String</td>\n<td>Yes</td>\n<td>Max 20 chars</td>\n</tr>\n<tr>\n<td><code>quantity</code></td>\n<td>Number</td>\n<td>Yes</td>\n<td>Item quantity</td>\n</tr>\n<tr>\n<td><code>rate</code></td>\n<td>Number</td>\n<td>Yes</td>\n<td>Item rate</td>\n</tr>\n<tr>\n<td><code>value</code></td>\n<td>Number</td>\n<td>Yes</td>\n<td>rate × quantity</td>\n</tr>\n<tr>\n<td><code>amount</code></td>\n<td>Number</td>\n<td>Yes</td>\n<td>Net item amount</td>\n</tr>\n<tr>\n<td><code>grossAmount</code></td>\n<td>Number</td>\n<td>Yes</td>\n<td>Gross item amount</td>\n</tr>\n<tr>\n<td><code>billNumber</code></td>\n<td>String</td>\n<td>Yes</td>\n<td>Must match main bill; min 7 chars</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>String</td>\n<td>No</td>\n<td>Max 220 chars</td>\n</tr>\n<tr>\n<td><code>markdownFlag</code></td>\n<td>String</td>\n<td>No</td>\n<td>Max 2 chars</td>\n</tr>\n<tr>\n<td><code>category</code></td>\n<td>String</td>\n<td>No</td>\n<td>Item category</td>\n</tr>\n<tr>\n<td><code>inventoryUnit</code></td>\n<td>Number</td>\n<td>No</td>\n<td>Inventory count</td>\n</tr>\n<tr>\n<td><code>discount</code></td>\n<td>Number</td>\n<td>No</td>\n<td>Line discount</td>\n</tr>\n<tr>\n<td><code>points</code></td>\n<td>Number</td>\n<td>No</td>\n<td>Loyalty points</td>\n</tr>\n<tr>\n<td><code>redeemedPoints</code></td>\n<td>Number</td>\n<td>No</td>\n<td>Redeemed points</td>\n</tr>\n<tr>\n<td><code>tax</code></td>\n<td>Number</td>\n<td>No</td>\n<td>Item tax</td>\n</tr>\n<tr>\n<td><code>duration</code></td>\n<td>String</td>\n<td>No</td>\n<td>Duration (if applicable)</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"3-payment-mode-_paymentmodepaymentmodedetails_\"><strong>3. Payment Mode (</strong>*<code>_**paymentMode.paymentModeDetails**_</code><strong>)</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Required</th>\n<th>Rules / Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>payModeType</code></td>\n<td>String</td>\n<td>Yes</td>\n<td>Max 255 chars</td>\n</tr>\n<tr>\n<td><code>value</code></td>\n<td>Number</td>\n<td>Yes</td>\n<td>Amount paid for this mode</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"4-customer-details-_customercustomerdetails_\"><strong>4. Customer Details (</strong>*<code>_**customer.customerDetails**_</code><strong>)</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>mobile</code></td>\n<td>String</td>\n<td>No</td>\n<td>Max 15 chars, digits only</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>String</td>\n<td>No</td>\n<td>Max 100 chars</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td>String</td>\n<td>No</td>\n<td>Max 100 chars, valid format</td>\n</tr>\n<tr>\n<td><code>externalId</code></td>\n<td>String</td>\n<td>No</td>\n<td>Max 100 chars</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"5-coupon-details-_couponcoupondetails_\"><strong>5. Coupon Details (</strong>*<code>_**coupon.couponDetails**_</code><strong>)</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>couponCode</code></td>\n<td>String</td>\n<td>No</td>\n<td>Max 20 chars</td>\n</tr>\n<tr>\n<td><code>couponType</code></td>\n<td>String</td>\n<td>No</td>\n<td>Max 100 chars</td>\n</tr>\n<tr>\n<td><code>couponValue</code></td>\n<td>Number</td>\n<td>No</td>\n<td>Coupon value</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"6-promotion-details-_appliedpromotions_\"><strong>6. Promotion Details (</strong>*<code>_**appliedPromotions**_</code><strong>)</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>promotionId</code></td>\n<td>String</td>\n<td>Yes</td>\n<td>Id of the promotion applied</td>\n</tr>\n<tr>\n<td><code>stockNo</code></td>\n<td>String</td>\n<td>No</td>\n<td>Item Id to which the discount is applied</td>\n</tr>\n<tr>\n<td><code>value</code></td>\n<td>Number</td>\n<td>Yes</td>\n<td>Discount value given by the promotion</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"7-other-top-level-fields\">7. Other Top-Level Fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Required</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>CDID</code></td>\n<td>String</td>\n<td>No</td>\n<td>Max 100 chars</td>\n</tr>\n<tr>\n<td><code>client</code></td>\n<td>String</td>\n<td>No</td>\n<td>Client ID</td>\n</tr>\n<tr>\n<td><code>type</code></td>\n<td>String</td>\n<td>No</td>\n<td>Transaction type</td>\n</tr>\n<tr>\n<td><code>transDate</code></td>\n<td>Date</td>\n<td>No</td>\n<td>Must be ≤ now</td>\n</tr>\n<tr>\n<td><code>createdDate</code></td>\n<td>Date</td>\n<td>No</td>\n<td>Must be ≤ now</td>\n</tr>\n<tr>\n<td><code>receiptId</code></td>\n<td>String</td>\n<td>No</td>\n<td>Receipt number</td>\n</tr>\n<tr>\n<td><code>shipping</code></td>\n<td>Number</td>\n<td>No</td>\n<td>Shipping charges</td>\n</tr>\n<tr>\n<td><code>transactionType</code></td>\n<td>String</td>\n<td>No</td>\n<td>e.g. SALE/RETURN</td>\n</tr>\n<tr>\n<td><code>transactionMode</code></td>\n<td>String</td>\n<td>No</td>\n<td>ONLINE/OFFLINE/POS</td>\n</tr>\n</tbody>\n</table>\n</div><p>Sample Request :</p>\n<p>JavaScript</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-jsx\">{\n    \"customer\" : {\n        \"customerDetails\" : {\n            \"mobile\" : \"971cccccc\", // customer mobile number with country code\n            \"name\" : \"\", // customer name\n            \"email\" : \"\", // customer email\n            \"externalId\" : \"\"\n        }\n    },\n    \"bill\" : {\n        \"billNumber\" : \"1146031146-114603-33716\", // bill number/transaction Id\n        \"billAmt\" : 221.34, // amount paid by the customer without tax\n        \"billGrossAmount\" : 221.34, // amount paid by the customer with tax\n        \"billDiscount\" : 0, // total discount on the bill\n        \"cashierId\" : \"181130\", // id of cashier who made this transaction\n        \"companyCode\" : \"binsina\",\n        \"notes\" : \"\",\n        \"returnBillNum\" : [], // list of billNumber of the original transaction if there any items being returned in this transaction\n        \"billType\" : \"Regular\", // regular, return\n        \"storeID\" : \"1146\", // id of store where the transaction was made\n        \"storeTerminalID\" : \"114603\", // id of the POS\n        \"currency\" : \"AED\" // currency of transaction\n    },\n    \"billLineItems\" : {\n        \"lineItems\" : [\n            {\n                \"stockNo\" : \"1010712\", // item id, SKU number\n                \"description\" : \"Tonimer Solution For Inhalation Single Dose Vial 5ML 12's(Box)\", // item description\n                \"markdownFlag\" : \"N\", // was on slashed price or not Y/N\n                \"quantity\" : 1, // quantity of product purchased\n                \"rate\" : 33.25, // Price of 1 Pcs (include Tax)\n                \"value\" : 33.25, // Rate - Tax (Exclude Tax)\n                \"discount\" : 0, // total discount applied on this item\n                \"amount\" : 33.25, // Quantity * Value - Discount\n                \"grossAmount\" : 33.25, // Quantity * Rate - Discount\n                \"billNumber\" : \"1146031146-114603-33716\", // bill.billNumber or bill.returnBillNum\n            },\n            {\n                \"stockNo\" : \"1009428\",\n                \"description\" : \"Pulmicort Nebulising Susp 0.25MG/ML 2ML 20's(Box)\",\n                \"markdownFlag\" : \"N\",\n                \"quantity\" : 1,\n                \"rate\" : 171.47,\n                \"value\" : 171.47,\n                \"discount\" : 0,\n                \"amount\" : 171.47,\n                \"grossAmount\" : 171.47,\n                \"billNumber\" : \"1146031146-114603-33716\",\n                \"category\" : \"pharma\"\n            {\n                \"stockNo\" : \"1011792\",\n                \"description\" : \"Zyrtec 1MG/ML Syrup 75ML(Box)\",\n                \"markdownFlag\" : \"N\",\n                \"quantity\" : 1,\n                \"rate\" : 16.62,\n                \"value\" : 16.62,\n                \"discount\" : 0,\n                \"amount\" : 16.62,\n                \"grossAmount\" : 16.62,\n                \"billNumber\" : \"1146031146-114603-33716\",\n                \"category\" : \"pharma\",\n            }\n        ]\n    },\n    \"paymentMode\" : {\n        \"paymentModeDetails\" : [\n            {\n                \"payModeType\" : \"8\", // name of payment method\n                \"value\" : 221.34 // value of payment method\n            },\n            {\n                \"payModeType\" : \"LoyaltyPoints\", // if points were redeemed on this transaction\n                \"value\" : 0 // value of points redeemed\n            }\n        ]\n    },\n    \"coupon\" : {\n        \"couponDetails\" : [{\n            \"couponCode\" : \"\", // coupon code used in this transaction\n            \"couponType\" : \"\", // fixed,percent etc\n            \"couponValue\" : 0 // value of discount applied because of this coupon\n        }]\n    },\n    \"appliedPromotions\": [\n        {\n            \"promotionId\": \"\", // promotion id applied in this transaction\n            \"stockNo\": \"\", // item id to which the promotion was applied\n            \"value\": 0 // value of the promotion\n        }\n    ],\n    \"receiptId\" : \"11460310004348\", // can be same as bill number depending on situation, ideally id printed on reciept\n    \"transDate\" : \"2022-07-05T14:45:20.590Z\", // transaction date\n }\n\n</code></pre>\n","urlObject":{"path":["{{client}}","create-transaction"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"d3b50d04-53d7-461c-8ba8-c5df1cf5b233","name":"Add transaction","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billAmt\": 66.67,\n        \"billGrossAmount\": 70,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": \"\",\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"{{billNo}}\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 0,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"{{billNo}}\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"1\",\n                \"value\": 70\n            },\n            {\n                \"payModeType\": \"LoyaltyPoints\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"appliedPromotions\": [],\n    \"receiptId\": \"r{{billNo}}\"\n}"},"url":"{{url}}/{{client}}/create-transaction"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:35:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0KOmhYgAAAABoiOEL5RWdSLhujM3q5u7HQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=oCioq9jmf3VBGaG8Jddm2DaTmSxcrFBSn1GjLqGAWkVAL%2BhvSXBSWt43HrzzTVmS%2BTUu7g6Qa2UVrZRo88r%2FabnrPdI2n8qFoxhESuZy%2FsiVqZreACB6S3Rpx6E8W%2BLhUFmgkA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189e8dcd84184fe-BOM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"200\",\n    \"data\": [\n        {\n            \"customer\": {\n                \"customerDetails\": {\n                    \"mobile\": \"971777777777\",\n                    \"name\": \"\",\n                    \"email\": \"\",\n                    \"externalId\": \"\"\n                }\n            },\n            \"bill\": {\n                \"billNumber\": \"090000050000101\",\n                \"billAmt\": 66.67,\n                \"billGrossAmount\": 70,\n                \"billDiscount\": 0,\n                \"cashierId\": \"100979\",\n                \"companyCode\": \"AGR\",\n                \"notes\": \"\",\n                \"returnBillNum\": \"\",\n                \"billType\": \"Regular\",\n                \"storeID\": \"SPF2032\",\n                \"storeTerminalID\": \"SPF203201\",\n                \"currency\": \"AED\"\n            },\n            \"billLineItems\": {\n                \"lineItems\": [\n                    {\n                        \"stockNo\": \"TFS00091\",\n                        \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                        \"markdownFlag\": \"N\",\n                        \"quantity\": 1,\n                        \"rate\": 30,\n                        \"value\": 30,\n                        \"discount\": 0,\n                        \"amount\": 28.57,\n                        \"grossAmount\": 30,\n                        \"billNumber\": \"090000050000101\",\n                        \"points\": 30\n                    },\n                    {\n                        \"stockNo\": \"TFS00090\",\n                        \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                        \"markdownFlag\": \"N\",\n                        \"quantity\": 1,\n                        \"rate\": 40,\n                        \"value\": 40,\n                        \"discount\": 0,\n                        \"amount\": 38.1,\n                        \"grossAmount\": 40,\n                        \"billNumber\": \"090000050000101\",\n                        \"points\": 40\n                    }\n                ]\n            },\n            \"paymentMode\": {\n                \"paymentModeDetails\": [\n                    {\n                        \"payModeType\": \"1\",\n                        \"value\": 70\n                    },\n                    {\n                        \"payModeType\": \"LoyaltyPoints\",\n                        \"value\": 0\n                    }\n                ]\n            },\n            \"coupon\": {\n                \"couponDetails\": {\n                    \"couponCode\": \"\",\n                    \"couponValue\": \"\",\n                    \"couponType\": \"\"\n                }\n            },\n            \"receiptId\": \"r090000050000101\",\n            \"client\": \"loyalytics\",\n            \"type\": \"transaction\",\n            \"createdDate\": \"2022-06-09T12:35:52.471Z\",\n            \"transDate\": \"2022-06-09T12:35:52.471Z\",\n            \"before\": {\n                \"totalAvailablePoints\": 10,\n                \"tier\": \"Silver\",\n                \"totRedeemedPoints\": 0\n            },\n            \"CDID\": \"CTEST01-02-00000001-942263\",\n            \"loyaltyPoints\": 70,\n            \"totAvailablePoints\": 80\n        }\n    ],\n    \"error\": null\n}"},{"id":"14d7a3f0-2a69-40b8-9833-ad1b7c8b286d","name":"Add promotion transaction","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billAmt\": 66.67,\n        \"billGrossAmount\": 70,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": \"\",\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"{{billNo}}\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 5,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"{{billNo}}\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"1\",\n                \"value\": 70\n            },\n            {\n                \"payModeType\": \"LoyaltyPoints\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"appliedPromotions\": [\n        {\n            \"promotionId\": \"398424d3-27da-4286-9f6f-617a07edb6d1\",\n            \"stockNo\": \"TFS00090\",\n            \"value\": 5\n        }\n    ],\n    \"receiptId\": \"r{{billNo}}\"\n}"},"url":"{{url}}/{{client}}/create-transaction"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:35:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0KOmhYgAAAABoiOEL5RWdSLhujM3q5u7HQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=oCioq9jmf3VBGaG8Jddm2DaTmSxcrFBSn1GjLqGAWkVAL%2BhvSXBSWt43HrzzTVmS%2BTUu7g6Qa2UVrZRo88r%2FabnrPdI2n8qFoxhESuZy%2FsiVqZreACB6S3Rpx6E8W%2BLhUFmgkA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189e8dcd84184fe-BOM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"200\",\n    \"data\": [\n        {\n            \"customer\": {\n                \"customerDetails\": {\n                    \"mobile\": \"971777777777\",\n                    \"name\": \"\",\n                    \"email\": \"\",\n                    \"externalId\": \"\"\n                }\n            },\n            \"bill\": {\n                \"billNumber\": \"090000050000101\",\n                \"billAmt\": 66.67,\n                \"billGrossAmount\": 70,\n                \"billDiscount\": 0,\n                \"cashierId\": \"100979\",\n                \"companyCode\": \"AGR\",\n                \"notes\": \"\",\n                \"returnBillNum\": \"\",\n                \"billType\": \"Regular\",\n                \"storeID\": \"SPF2032\",\n                \"storeTerminalID\": \"SPF203201\",\n                \"currency\": \"AED\"\n            },\n            \"billLineItems\": {\n                \"lineItems\": [\n                    {\n                        \"stockNo\": \"TFS00091\",\n                        \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                        \"markdownFlag\": \"N\",\n                        \"quantity\": 1,\n                        \"rate\": 30,\n                        \"value\": 30,\n                        \"discount\": 0,\n                        \"amount\": 28.57,\n                        \"grossAmount\": 30,\n                        \"billNumber\": \"090000050000101\",\n                        \"points\": 30\n                    },\n                    {\n                        \"stockNo\": \"TFS00090\",\n                        \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                        \"markdownFlag\": \"N\",\n                        \"quantity\": 1,\n                        \"rate\": 40,\n                        \"value\": 40,\n                        \"discount\": 0,\n                        \"amount\": 38.1,\n                        \"grossAmount\": 40,\n                        \"billNumber\": \"090000050000101\",\n                        \"points\": 40\n                    }\n                ]\n            },\n            \"paymentMode\": {\n                \"paymentModeDetails\": [\n                    {\n                        \"payModeType\": \"1\",\n                        \"value\": 70\n                    },\n                    {\n                        \"payModeType\": \"LoyaltyPoints\",\n                        \"value\": 0\n                    }\n                ]\n            },\n            \"coupon\": {\n                \"couponDetails\": {\n                    \"couponCode\": \"\",\n                    \"couponValue\": \"\",\n                    \"couponType\": \"\"\n                }\n            },\n            \"receiptId\": \"r090000050000101\",\n            \"client\": \"loyalytics\",\n            \"type\": \"transaction\",\n            \"createdDate\": \"2022-06-09T12:35:52.471Z\",\n            \"transDate\": \"2022-06-09T12:35:52.471Z\",\n            \"before\": {\n                \"totalAvailablePoints\": 10,\n                \"tier\": \"Silver\",\n                \"totRedeemedPoints\": 0\n            },\n            \"CDID\": \"CTEST01-02-00000001-942263\",\n            \"loyaltyPoints\": 70,\n            \"totAvailablePoints\": 80\n        }\n    ],\n    \"error\": null\n}"},{"id":"3cc42d2c-76fa-4127-a264-6251143632f4","name":"Customer Not Found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}0\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billAmt\": 66.67,\n        \"billGrossAmount\": 70.0,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": [],\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"{{billNo}}\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 0,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"{{billNo}}\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"1\",\n                \"value\": 70\n            },\n            {\n                \"payModeType\": \"LoyaltyPoints\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"receiptId\": \"r{{billNo}}\",\n    \"transDate\":\"2022-08-10T00:00:00.00Z\"\n}"},"url":"{{url}}/{{client}}/create-transaction"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 10 Jul 2023 06:51:37 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=kMRs4TOJSYwewdYwVFlM%2FYH4BGESrqw%2B0PJR3y%2BhAo%2FwsEC%2F%2B9EamMl0MyKD0hZU6oUX%2BlCC%2FXlJeO9DC96x6GrpPN21JW5NbfH6Y%2FlqdAjmOT7cM%2B%2FU%2B8uNKXC1NR8mbPGKGg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7e46e115c8713de2-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Customer not found\"\n    }\n}"},{"id":"cd536cac-8027-43ea-bb3b-bbd52baa5efd","name":"Not authorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billAmt\": 66.67,\n        \"billGrossAmount\": 70.0,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": [],\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"{{billNo}}\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 0,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"{{billNo}}\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"2\",\n                \"value\": 70\n            },\n            {\n                \"payModeType\": \"1\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"receiptId\": \"r{{billNo}}\",\n    \"transDate\":\"2022-08-10T00:00:00.00Z\"\n}"},"url":"{{url}}/{{client}}/create-transaction"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 08:06:56 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=T8y1gX2Ry%2B7CILF1t0%2Bm2sx3pjsh9vFClKUEEyx3Amub%2BZdbvreL1qPudL%2BqRi7yb40BgkV7bTc1KWKsKxtzmBqbMjR26SNE762qZyF37hsEVO7Ku5KMUAByQnGOnxLjGXlS%2Bg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"87ffb6a82a3b823d-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"You are not Authorized\"\n    }\n}"},{"id":"d38bb83a-2f4e-4a2c-a44b-c453428b8509","name":"Transaction object validation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billGrossAmount\": 70.0,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": [],\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"{{billNo}}\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 0,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"{{billNo}}\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"2\",\n                \"value\": 70\n            },\n            {\n                \"payModeType\": \"1\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"receiptId\": \"r{{billNo}}\",\n    \"transDate\":\"2022-08-10T00:00:00.00Z\"\n}"},"url":"{{url}}/{{client}}/create-transaction"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 08:44:05 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=8nYzmFh%2BArUCWdMcXHm81cpK%2FpSxTmgjJyVfujooTqhNRsOiLcglG4noNRArEK%2BPQQoy4tN24rnZvQqS95KFr41VIJqo1puEgknwucoWhAKqS0Qd0LeYm1CRtgv2wjQtRTAfPA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"87ffed15eb2b601d-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"[{\\\"message\\\":\\\"\\\\\\\"bill.billAmt\\\\\\\" is required\\\",\\\"path\\\":[\\\"bill\\\",\\\"billAmt\\\"],\\\"type\\\":\\\"any.required\\\",\\\"context\\\":{\\\"label\\\":\\\"bill.billAmt\\\",\\\"key\\\":\\\"billAmt\\\"}}]\"\n    }\n}"},{"id":"b73961f3-be86-4ab5-9745-31b09a37d468","name":"Transaction Id already exists","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"090000050000101\",\n        \"billAmt\": 66.67,\n        \"billGrossAmount\": 70.0,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": [],\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"{{billNo}}\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 0,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"{{billNo}}\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"2\",\n                \"value\": 70\n            },\n            {\n                \"payModeType\": \"1\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"receiptId\": \"r{{billNo}}\",\n    \"transDate\":\"2022-08-10T00:00:00.00Z\"\n}"},"url":"{{url}}/{{client}}/create-transaction"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 08:45:30 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=jpQ1mVAS3V%2B94Ebg1FtGc8%2BnmC99WVgYjs2qze0L%2FYG3DyOWEPqPSYlz3%2BcFOZXPhfhUYQ95hZ6EzMXxJT4i%2BBEaVGf5ZFZn6GmzICjqjbe%2FjN998pTkUjcPqk6wnWK9BRe%2F6w%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"87ffef25b8b0601d-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Transaction ID already Exists\"\n    }\n}"},{"id":"e8825aa9-6d59-4646-a889-77cbed4d6a56","name":"Transaction without customer: non-loyalty","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billAmt\": 66.67,\n        \"billGrossAmount\": 70.0,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": [],\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"{{billNo}}\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 0,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"{{billNo}}\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"2\",\n                \"value\": 70\n            },\n            {\n                \"payModeType\": \"1\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"receiptId\": \"r{{billNo}}\",\n    \"transDate\":\"2022-08-10T00:00:00.00Z\"\n}"},"url":"{{url}}/{{client}}/create-transaction"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 08:48:42 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=OM0%2Bem0g5qMwZny77fNVsY37fH1BDKPPlKpLZnHGxn585Zpp2kMXhqnYH%2FwqVdAcMbXpNdseCBw0cwJfGCqKdQi25UOIlvUmAL7zzQci9hLHs0kwg%2Ff4hux7rllZYsJpkVP39g%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"87fff3b66bbb601d-SIN"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"200\",\n    \"data\": [\n        {\n            \"customer\": {\n                \"customerDetails\": {\n                    \"mobile\": \"\",\n                    \"name\": \"\",\n                    \"email\": \"\",\n                    \"externalId\": \"\"\n                }\n            },\n            \"bill\": {\n                \"billNumber\": \"000000000089108\",\n                \"billAmt\": 66.67,\n                \"billGrossAmount\": 70,\n                \"billDiscount\": 0,\n                \"cashierId\": \"100979\",\n                \"companyCode\": \"AGR\",\n                \"notes\": \"\",\n                \"returnBillNum\": [],\n                \"billType\": \"Regular\",\n                \"storeID\": \"SPF2032\",\n                \"storeTerminalID\": \"SPF203201\",\n                \"currency\": \"AED\"\n            },\n            \"billLineItems\": {\n                \"lineItems\": [\n                    {\n                        \"stockNo\": \"TFS00091\",\n                        \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                        \"markdownFlag\": \"N\",\n                        \"quantity\": 1,\n                        \"rate\": 30,\n                        \"value\": 30,\n                        \"discount\": 0,\n                        \"amount\": 28.57,\n                        \"grossAmount\": 30,\n                        \"billNumber\": \"000000000089108\"\n                    },\n                    {\n                        \"stockNo\": \"TFS00090\",\n                        \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                        \"markdownFlag\": \"N\",\n                        \"quantity\": 1,\n                        \"rate\": 40,\n                        \"value\": 40,\n                        \"discount\": 0,\n                        \"amount\": 38.1,\n                        \"grossAmount\": 40,\n                        \"billNumber\": \"000000000089108\"\n                    }\n                ]\n            },\n            \"paymentMode\": {\n                \"paymentModeDetails\": [\n                    {\n                        \"payModeType\": \"2\",\n                        \"value\": 70\n                    },\n                    {\n                        \"payModeType\": \"1\",\n                        \"value\": 0\n                    }\n                ]\n            },\n            \"coupon\": {\n                \"couponDetails\": {\n                    \"couponCode\": \"\",\n                    \"couponValue\": \"\",\n                    \"couponType\": \"\"\n                }\n            },\n            \"receiptId\": \"r000000000089108\",\n            \"transDate\": \"2022-08-10T00:00:00.000Z\",\n            \"client\": \"swan-test\",\n            \"type\": \"transaction\",\n            \"createdDate\": \"2024-05-07T08:48:37.022Z\",\n            \"CDID\": \"non-loyalty\"\n        }\n    ],\n    \"error\": null\n}"}],"_postman_id":"7eb31575-16fc-46c2-9798-51972c12ad98"},{"name":"Void Transaction","event":[{"listen":"test","script":{"exec":["","pm.environment.set(\"returnBillNumber\",pm.environment.get(\"billNo\") );","let pad='000000000000000';","let billno=(pad.toString() +(parseInt(pm.environment.get(\"billNo\"))+1).toString()).slice(-pad.length);","pm.environment.set(\"billNo\", billno);","","","",""],"type":"text/javascript"}}],"id":"b94f739f-171a-40e2-b80c-8227ab1f1df9","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"id\":\"{{returnBillNumber}}\"\n}"},"url":"{{url}}/{{client}}/void-transaction","description":"<p><strong>This API will completely void the transaction and take back any points if it were issued</strong></p>\n<p>Use case: Cancelling transactions posted by accident</p>\n","urlObject":{"path":["{{client}}","void-transaction"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"8e753152-a0cc-4047-975f-f4fac5a8c2c9","name":"Void Transaction","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"id\":\"{{returnBillNumber}}\"\n}"},"url":"{{url}}/{{client}}/void-transaction"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:38:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"02+mhYgAAAAAwxi8GxSIdRbOi45IGg8MqQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=ZFXrXAxm2BzYFIsScaXoPwcnttdSE%2B%2BqHX9cKrYv5PSxCbGQgsmPt5hBmOJJMiZHUPFMOwxxUGgosNe9Lkfe1p7HqmIAuq9wfBVgftkbfos2PSOiETNKKm3%2F3enqrMf4q%2F8v3A%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189ed398b2d84fe-BOM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"data\": [\n        {\n            \"customer\": {\n                \"customerDetails\": {\n                    \"mobile\": \"971777777777\",\n                    \"name\": \"\",\n                    \"email\": \"\",\n                    \"externalId\": \"\"\n                }\n            },\n            \"bill\": {\n                \"billNumber\": \"090000050000103-void\",\n                \"billAmt\": -66.67,\n                \"billGrossAmount\": -70,\n                \"billDiscount\": \"0\",\n                \"cashierId\": \"100979\",\n                \"companyCode\": \"AGR\",\n                \"notes\": \"\",\n                \"returnBillNum\": \"\",\n                \"billType\": \"Regular\",\n                \"storeID\": \"SPF2032\",\n                \"storeTerminalID\": \"SPF203201\",\n                \"currency\": \"AED\",\n                \"storePosId\": \"SPF203201\"\n            },\n            \"billLineItems\": {\n                \"lineItems\": [\n                    {\n                        \"stockNo\": \"TFS00091\",\n                        \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                        \"markdownFlag\": \"N\",\n                        \"quantity\": -1,\n                        \"rate\": -30,\n                        \"value\": -30,\n                        \"discount\": \"0\",\n                        \"amount\": -28.57,\n                        \"grossAmount\": -30,\n                        \"billNumber\": \"090000050000103\",\n                        \"points\": -30\n                    },\n                    {\n                        \"stockNo\": \"TFS00090\",\n                        \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                        \"markdownFlag\": \"N\",\n                        \"quantity\": -1,\n                        \"rate\": -40,\n                        \"value\": -40,\n                        \"discount\": \"0\",\n                        \"amount\": -38.1,\n                        \"grossAmount\": -40,\n                        \"billNumber\": \"090000050000103\",\n                        \"points\": -40\n                    }\n                ]\n            },\n            \"paymentMode\": {\n                \"paymentModeDetails\": [\n                    {\n                        \"payModeType\": \"1\",\n                        \"value\": -70\n                    },\n                    {\n                        \"payModeType\": \"LoyaltyPoints\",\n                        \"value\": 0\n                    }\n                ]\n            },\n            \"coupon\": {\n                \"couponDetails\": {\n                    \"couponCode\": \"\",\n                    \"couponValue\": \"\",\n                    \"couponType\": \"\"\n                }\n            },\n            \"receiptId\": \"r090000050000103-void\",\n            \"client\": \"loyalytics\",\n            \"type\": \"transaction\",\n            \"createdDate\": \"2022-06-09T12:38:51.215Z\",\n            \"transDate\": \"2022-06-09T12:38:51.215Z\",\n            \"before\": {\n                \"totalAvailablePoints\": 80,\n                \"tier\": \"Silver\",\n                \"totRedeemedPoints\": 0\n            },\n            \"CDID\": \"CTEST01-02-00000001-942263\",\n            \"loyaltyPoints\": -70,\n            \"totAvailablePoints\": 10\n        }\n    ]\n}"},{"id":"b63c4588-e206-4344-bd4d-65652589acf0","name":"Not authorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n   \"id\":\"{{returnBillNumber}}\"\n}"},"url":"{{url}}/{{client}}/void-transaction"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 08:07:44 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=Pb0L17i1vHTXGuRBMAH6Y4yTEp0fsu9Hjr5orKJ4ay%2Fr%2BR3IvXD0cysenczgqrH64B1oWn%2BCpbmppgxblAikpdOVYRKOiNCnI2%2BJ2o%2Fzx0gkeOxPy8RKcZVTyoMqdxN8f%2Fs5sw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"87ffb7ca6db8823d-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"You are not Authorized\"\n    }\n}"}],"_postman_id":"b94f739f-171a-40e2-b80c-8227ab1f1df9"},{"name":"Bad Transaction","event":[{"listen":"test","script":{"exec":["","pm.environment.set(\"returnBillNumber\",pm.environment.get(\"billNo\") );","let pad='000000000000000';","let billno=(pad.toString() +(parseInt(pm.environment.get(\"billNo\"))+1).toString()).slice(-pad.length);","pm.environment.set(\"billNo\", billno);","","","",""],"type":"text/javascript"}}],"id":"dbc4dcc3-9d31-473a-ab15-26de9415ce89","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billAmt\": 66.67,\n        \"billGrossAmount\": 70.0,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": [],\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"{{billNo}}\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 0,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"{{billNo}}\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"1\",\n                \"value\": 70\n            },\n            {\n                \"payModeType\": \"LoyaltyPoints\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"receiptId\": \"r{{billNo}}\"\n}"},"url":"{{url}}/{{client}}/create-bad-transaction","description":"<p><strong>This API is to be used when transactions are rejected or failed during sending.</strong></p>\n","urlObject":{"path":["{{client}}","create-bad-transaction"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"12a4022c-f277-4e54-8b8f-558e64687bb6","name":"Not authorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billAmt\": 66.67,\n        \"billGrossAmount\": 70.0,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": [],\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"{{billNo}}\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 0,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"{{billNo}}\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"1\",\n                \"value\": 70\n            },\n            {\n                \"payModeType\": \"LoyaltyPoints\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"receiptId\": \"r{{billNo}}\"\n}"},"url":"{{url}}/{{client}}/create-bad-transaction"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 08:15:55 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=2vB9aDY4tXAglk0VKCelC50Rhsf60t8PASYKU7XHARBMCgFy2%2BMc6df2aiBqzT60iZ5B30sdoKLf2BpQnL%2Fj8YWzDy%2Biv%2FvvOhZAkLPx5TEHa43GLL5m0kVdTS%2FQJp1MqesfdQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"87ffc3cf4dca823d-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"You are not Authorized\"\n    }\n}"},{"id":"6279329c-bc82-4147-b418-3b6bb7bc799b","name":"Send to bad transaction","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billAmt\": 66.67,\n        \"billGrossAmount\": 70.0,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": [],\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"{{billNo}}\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 0,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"{{billNo}}\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"1\",\n                \"value\": 70\n            },\n            {\n                \"payModeType\": \"LoyaltyPoints\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"receiptId\": \"r{{billNo}}\"\n}"},"url":"{{url}}/{{client}}/create-bad-transaction"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 09:15:17 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=gKDbTqrkfDV85YN%2BQnkfCTkaF2cj4%2BJmJAwAOeyEmcSLcoYQxC7e4T8M1wLqTB0N3VmfgVapnetkUVm8fyBrTpTVdH7G8ncdShPKUbfseY1epD8IBLWbrynI8Bj%2FCq34lOlkPw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"88001abf5d473aa3-FRA"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"200\",\n    \"data\": [\n        {\n            \"customer\": {\n                \"customerDetails\": {\n                    \"mobile\": \"919873772219\",\n                    \"name\": \"\",\n                    \"email\": \"\",\n                    \"externalId\": \"\"\n                }\n            },\n            \"bill\": {\n                \"billNumber\": \"000000000089112\",\n                \"billAmt\": 66.67,\n                \"billGrossAmount\": 70,\n                \"billDiscount\": 0,\n                \"cashierId\": \"100979\",\n                \"companyCode\": \"AGR\",\n                \"notes\": \"\",\n                \"returnBillNum\": [],\n                \"billType\": \"Regular\",\n                \"storeID\": \"SPF2032\",\n                \"storeTerminalID\": \"SPF203201\",\n                \"currency\": \"AED\"\n            },\n            \"billLineItems\": {\n                \"lineItems\": [\n                    {\n                        \"stockNo\": \"TFS00091\",\n                        \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                        \"markdownFlag\": \"N\",\n                        \"quantity\": 1,\n                        \"rate\": 30,\n                        \"value\": 30,\n                        \"discount\": 0,\n                        \"amount\": 28.57,\n                        \"grossAmount\": 30,\n                        \"billNumber\": \"000000000089112\"\n                    },\n                    {\n                        \"stockNo\": \"TFS00090\",\n                        \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                        \"markdownFlag\": \"N\",\n                        \"quantity\": 1,\n                        \"rate\": 40,\n                        \"value\": 40,\n                        \"discount\": 0,\n                        \"amount\": 38.1,\n                        \"grossAmount\": 40,\n                        \"billNumber\": \"000000000089112\"\n                    }\n                ]\n            },\n            \"paymentMode\": {\n                \"paymentModeDetails\": [\n                    {\n                        \"payModeType\": \"1\",\n                        \"value\": 70\n                    },\n                    {\n                        \"payModeType\": \"LoyaltyPoints\",\n                        \"value\": 0\n                    }\n                ]\n            },\n            \"coupon\": {\n                \"couponDetails\": {\n                    \"couponCode\": \"\",\n                    \"couponValue\": \"\",\n                    \"couponType\": \"\"\n                }\n            },\n            \"receiptId\": \"r000000000089112\",\n            \"client\": \"swan-test\",\n            \"type\": \"badTransaction\",\n            \"CDID\": \"bad-non-loyalty\"\n        }\n    ],\n    \"error\": null\n}"}],"_postman_id":"dbc4dcc3-9d31-473a-ab15-26de9415ce89"}],"id":"d19b3360-babf-4a46-b4a7-71c589ce368e","_postman_id":"d19b3360-babf-4a46-b4a7-71c589ce368e","description":""},{"name":"Points","item":[{"name":"Generate Redemption OTP","id":"84e5d1b9-4b09-4baa-84b1-723716ec6a04","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 100\n}"},"url":"{{url}}/{{client}}/post-generate-otp","description":"<p><strong>This HTTP POST API handles the generation and sending of an OTP to the customer's mobile number for redemption of points.</strong></p>\n<p>It's triggered based on the availability of points. A transaction ID is necessary for tracking points redeemed for specific transactions.</p>\n<p><strong>API Workflow:</strong></p>\n<img src=\"https://content.pstmn.io/4ccd0d38-1a5b-406d-a8b6-2d846be909b3/VmFsaWRhdGVPVFAuZHJhd2lvICgxKS5wbmc=\" width=\"758\" height=\"480\" />\n\n<p><strong>POS Workflow:</strong></p>\n<img src=\"https://content.pstmn.io/56da0684-91f9-4678-bd28-a7ecf412512f/UE9TR2VuZXJhdGVPVFAuZHJhd2lvLnBuZw==\" alt height=\"467\" width=\"782\" />\n\n<p><strong>Fields accepted by API:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Description</th>\n<th>Data Type</th>\n<th>Mandatory</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>mobile</td>\n<td>Mobile number with country code, no +</td>\n<td>String</td>\n<td>Mandatory</td>\n</tr>\n<tr>\n<td>transactionId</td>\n<td>Bill number of the transaction for which points has to be redeemed</td>\n<td>String</td>\n<td>Mandatory</td>\n</tr>\n<tr>\n<td>storeID</td>\n<td>Store ID from which the transaction is made</td>\n<td>String</td>\n<td>-</td>\n</tr>\n<tr>\n<td>points</td>\n<td>The number of points the customer wants to redeem</td>\n<td>Number</td>\n<td>Mandatory</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Sample Request Body:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"mobile\": \"971xxxxxxxxx\",\n    \"transactionId\": \"00000xxxxxxxxxx\",\n    \"storeID\": \"123xx\",\n    \"points\": 100,\n}\n\n</code></pre>\n<p><strong>Error Details:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status Code</strong></th>\n<th><strong>Message</strong></th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>404</td>\n<td>You are not Authorized</td>\n<td>Token in headers has expired. Generate a token using the Get Auth Token API.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>The 'To' number +971777777777 is not a valid phone number</td>\n<td>Enter an active and valid mobile number for sending OTP</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Cannot Generate OTP, OTP Based Points Redemption is Disabled</td>\n<td>OTP Based Points Redemption is Disabled. Use /redeem-points API</td>\n</tr>\n<tr>\n<td>404</td>\n<td>OTP Failed,You do not have enough points. Available Points: <code>points</code> and minimum points needed for redemption: <code>points</code></td>\n<td>The mentioned points are more than the customer's balance points</td>\n</tr>\n<tr>\n<td>404</td>\n<td>OTP Failed,The customer is blocked by the administrator. Please contact the admin or log into interakt app for more details.</td>\n<td>Customer is blocked by the administrator</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Customer do not have enough points, Max Redeemable points <code>points</code></td>\n<td>The mentioned points are more than the customer's balance points</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Minimum Points Redemption value is <code>points</code></td>\n<td>The minimum points that can be redeemed is as mentioned.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Maximum Points Redemption value is <code>points</code></td>\n<td>The maximum points that can be redeemed is as mentioned.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Points can only be redeemed in multiples of <code>multiplier</code></td>\n<td>Points can only be redeemed in the multiples mentioned.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>OTP Failed,OTP Already Sent to your registered mobile number</td>\n<td>The previous OTP has not expired. Retry after 1 minute.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["{{client}}","post-generate-otp"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"3040c7df-934a-4976-be09-ec77b4e2dd62","name":"200 - OTP Sent","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 100\n}"},"url":"{{url}}/{{client}}/post-generate-otp"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:16:28 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0m+ShYgAAAAB3HV8r3jsZTpxXDDlHVu8lQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=AA59KjQdDMrG2o3TjcAx3pJVfCoMSKmszM%2FGl1B%2FqQRa%2BOUJpKVU3nFDE2VBho4E4uiqPyXzHOSA9Nhmr7nqBG9njRbbXTpUOprKPHko%2FLXZ308bKDp2OaGKCOvFAkio%2FUe5rw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189cc6948a084fe-BOM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"message\": \"OTP successfully sent\"\n        }\n    ],\n    \"error\": null,\n    \"status\": 200\n}"},{"id":"02366e3e-498f-4e0b-8b6a-32f084bb4e6e","name":"404 - Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 10\n}"},"url":"{{url}}/{{client}}/post-generate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 May 2024 11:19:02 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=%2FZNJpskpwfIWGmc8gac4fsm8ecVlt0EyfYIRm%2Bmph%2BWLSWgHiuXIreX2b6TbfDo9gVY1XwQWybj4n98BI%2F5aOxewS%2Fmi9Q8YgfCcFUoRKAdohoEDJYGmht3EVanTurd0YhDQ%2FA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"887c68a9ac010407-CDG"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"You are not Authorized\"\n    }\n}"},{"id":"8c53a388-b9fd-4edb-9f7b-bfbc8344b0b5","name":"400 - Not a valid phone number","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 10\n}"},"url":"{{url}}/{{client}}/post-generate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:15:47 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"141"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0buShYgAAAACRf/0GMwK0QJV79HJcjYwgQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=anekVWsWTbQLE%2FTkVf0c2Ciq6%2FXNOUCuXEE%2FazGAOwJL8sb5PFSFZ9OThb0Co%2Bn8KFuzu1sQBhWjW3ysBw6a%2FkF9E7qQ70OKP%2F6VZ%2B4kAMWrWfkgdhNj%2FshPeYKfBDEqZe0LwQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189cb4ffd7d84fe-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": null,\n    \"error\": {\n        \"message\": \"400 - {\\\"message\\\":\\\"The 'To' number +971777777777 is not a valid phone number.\\\"}\"\n    }\n}"},{"id":"d788f94e-7566-4bb9-815f-4907811e741f","name":"404 - OTP based redemption is disabled","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 10\n}"},"url":"{{url}}/{{client}}/post-generate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 11:34:25 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=rgq9R6cIpmP9OHjg3DoeSttmk1%2BwQXL1bdpB2K3OW4llqQIixAgnk%2FZGeKmNWp%2BIi0Wh5YtEeeiLbz5VheJ2tFadPVrhnd8XoFymLJeW0a7Y%2F5LCEhQY5sgGeqfe9nrn8VDTYg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8800e68cac52a8f2-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Cannot Generate OTP, OTP Based Points Redemption is Disabled\"\n    }\n}"},{"id":"68f4238d-788c-4318-bc27-0c23ffb4f631","name":"404 - OTP Failed, Insufficient Points","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 10\n}"},"url":"{{url}}/{{client}}/post-generate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:05:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"182"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0DeKhYgAAAADzRx94YV8eQ5mgJ0ne09bpQk9NMDFFREdFMDUwOQA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=0LMGm9IorrGOn%2BpU7%2FzRzfxd0YWh6zm9tSxwVwqjA4C1KkAWQyA9BvGXEWGyYDrz%2F5VItmbXkiphka%2BBHIbaKwpt7ZFUYtDL4AuY6vtMINl87i4jpsuGwg5uOUrmLSjekATvjQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189bc71ca6a859b-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"OTP Failed,You do not have enough points. Available Points: 0 and minimum points needed for redemption: 0\"\n    }\n}"},{"id":"1535ce63-38c8-405b-844b-fad54ae68aa4","name":"404 - OTP Failed, Blocked Customer","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 10\n}"},"url":"{{url}}/{{client}}/post-generate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:05:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"182"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0DeKhYgAAAADzRx94YV8eQ5mgJ0ne09bpQk9NMDFFREdFMDUwOQA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=0LMGm9IorrGOn%2BpU7%2FzRzfxd0YWh6zm9tSxwVwqjA4C1KkAWQyA9BvGXEWGyYDrz%2F5VItmbXkiphka%2BBHIbaKwpt7ZFUYtDL4AuY6vtMINl87i4jpsuGwg5uOUrmLSjekATvjQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189bc71ca6a859b-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"OTP Failed,You do not have enough points. Available Points: 0 and minimum points needed for redemption: 0\"\n    }\n}"},{"id":"e9e05cf3-7995-44a2-b062-59dd0b76b5b2","name":"404 - Not enough points","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 100\n}"},"url":"{{url}}/{{client}}/post-generate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:05:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"182"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0DeKhYgAAAADzRx94YV8eQ5mgJ0ne09bpQk9NMDFFREdFMDUwOQA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=0LMGm9IorrGOn%2BpU7%2FzRzfxd0YWh6zm9tSxwVwqjA4C1KkAWQyA9BvGXEWGyYDrz%2F5VItmbXkiphka%2BBHIbaKwpt7ZFUYtDL4AuY6vtMINl87i4jpsuGwg5uOUrmLSjekATvjQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189bc71ca6a859b-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Customer do not have enough points, Max Redeemable points 10\"\n    }\n}"},{"id":"1ce1a4e5-b333-46dd-b9b2-789c59ee74c6","name":"404 - Minimum Points Redemption value","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 5\n}"},"url":"{{url}}/{{client}}/post-generate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:05:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"182"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0DeKhYgAAAADzRx94YV8eQ5mgJ0ne09bpQk9NMDFFREdFMDUwOQA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=0LMGm9IorrGOn%2BpU7%2FzRzfxd0YWh6zm9tSxwVwqjA4C1KkAWQyA9BvGXEWGyYDrz%2F5VItmbXkiphka%2BBHIbaKwpt7ZFUYtDL4AuY6vtMINl87i4jpsuGwg5uOUrmLSjekATvjQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189bc71ca6a859b-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Minimum Points Redemption value is 10\"\n    }\n}"},{"id":"70bbe035-fbbd-4f9a-aec9-cfb01117f97f","name":"404 - Minimum Points Redemption value Copy","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 1000\n}"},"url":"{{url}}/{{client}}/post-generate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:05:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"182"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0DeKhYgAAAADzRx94YV8eQ5mgJ0ne09bpQk9NMDFFREdFMDUwOQA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=0LMGm9IorrGOn%2BpU7%2FzRzfxd0YWh6zm9tSxwVwqjA4C1KkAWQyA9BvGXEWGyYDrz%2F5VItmbXkiphka%2BBHIbaKwpt7ZFUYtDL4AuY6vtMINl87i4jpsuGwg5uOUrmLSjekATvjQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189bc71ca6a859b-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Maximum Points Redemption value is 500\"\n    }\n}"},{"id":"51b64fff-eff0-40b8-9964-d6b165290b52","name":"404 - Points Multiplier Config","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 111\n}"},"url":"{{url}}/{{client}}/post-generate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:05:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"182"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0DeKhYgAAAADzRx94YV8eQ5mgJ0ne09bpQk9NMDFFREdFMDUwOQA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=0LMGm9IorrGOn%2BpU7%2FzRzfxd0YWh6zm9tSxwVwqjA4C1KkAWQyA9BvGXEWGyYDrz%2F5VItmbXkiphka%2BBHIbaKwpt7ZFUYtDL4AuY6vtMINl87i4jpsuGwg5uOUrmLSjekATvjQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189bc71ca6a859b-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Points can only be redeemed in multiples of 2\"\n    }\n}"},{"id":"14a92078-c50f-4217-b62f-d8b54ad3dee4","name":"404 - Points Multiplier Config Copy","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 111\n}"},"url":"{{url}}/{{client}}/post-generate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:05:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"182"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0DeKhYgAAAADzRx94YV8eQ5mgJ0ne09bpQk9NMDFFREdFMDUwOQA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=0LMGm9IorrGOn%2BpU7%2FzRzfxd0YWh6zm9tSxwVwqjA4C1KkAWQyA9BvGXEWGyYDrz%2F5VItmbXkiphka%2BBHIbaKwpt7ZFUYtDL4AuY6vtMINl87i4jpsuGwg5uOUrmLSjekATvjQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189bc71ca6a859b-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"OTP Failed,OTP Already Sent to your registered mobile number\"\n    }\n}"},{"id":"98284480-e35d-403e-82a1-1840ed642c6c","name":"Generate Redemption OTP","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 100\n}"},"url":"{{url}}/{{client}}/post-generate-otp"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"84e5d1b9-4b09-4baa-84b1-723716ec6a04"},{"name":"Validate Redemption OTP","id":"309a7fdf-f23f-466e-a6dd-73b3802a921c","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 100,\n    \"OTP\": \"698650\",\n    \"lineItems\": [\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxCREAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 30,\n            \"value\": 30,\n            \"discount\": 0,\n            \"amount\": 28.57,\n            \"grossAmount\": 30,\n            \"billNumber\": \"{{billNo}}\"\n        },\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxFOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 70,\n            \"value\": 70,\n            \"discount\": 0,\n            \"amount\": 68.1,\n            \"grossAmount\": 70,\n            \"billNumber\": \"{{billNo}}\"\n        }\n    ]\n}"},"url":"{{url}}/{{client}}/post-validate-otp","description":"<p><strong>This HTTP POST API validates the OTP provided by the customer and facilitates the redemption of points from their profile.</strong></p>\n<p>We enforce a backend check to ensure that customers cannot attempt to redeem more points than they have available, preventing discrepancies such as attempting to redeem 1000 points when only 100 points are available.</p>\n<p><strong>API Workflow:</strong></p>\n<img src=\"https://content.pstmn.io/74995dbb-faa0-41e2-bc88-8cf35017b2b4/R2VuZXJhdGVPVFAgKDEpLnBuZw==\" width=\"850\" height=\"653\" />\n\n<p><strong>POS Workflow:</strong></p>\n<img src=\"https://content.pstmn.io/db3f0d72-28da-4ffe-bea1-15301c867175/Q29weSBvZiBQT1NXb3JrZmxvd1dpdGhvdXRPVFAuZHJhd2lvLnBuZw==\" alt height=\"548\" width=\"531\" />\n\n<p><strong>Fields accepted by API:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Description</th>\n<th>Data Type</th>\n<th>Mandatory</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>mobile</td>\n<td>Mobile number with country code, no +</td>\n<td>String</td>\n<td>Mandatory</td>\n</tr>\n<tr>\n<td>transactionId</td>\n<td>Bill number of the transaction for which points has to be redeemed</td>\n<td>String</td>\n<td>Mandatory</td>\n</tr>\n<tr>\n<td>storeID</td>\n<td>Store ID from which the transaction is made</td>\n<td>String</td>\n<td>-</td>\n</tr>\n<tr>\n<td>points</td>\n<td>The number of points the customer wants to redeem</td>\n<td>Number</td>\n<td>Mandatory</td>\n</tr>\n<tr>\n<td>OTP</td>\n<td>OTP received by customer</td>\n<td>String</td>\n<td>Mandatory</td>\n</tr>\n<tr>\n<td>lineItems</td>\n<td>A list of line items representing the products or services purchased in the transaction.</td>\n<td>Array</td>\n<td>-</td>\n</tr>\n<tr>\n<td>- stockNo</td>\n<td>The unique SKU (stock-keeping unit) or the variant Id of the item.</td>\n<td>String</td>\n<td>Mandatory</td>\n</tr>\n<tr>\n<td>- description</td>\n<td>A description of the product purchased.</td>\n<td>String</td>\n<td>-</td>\n</tr>\n<tr>\n<td>- markdownFlag</td>\n<td>Indicates whether the item was on sale (Y/N).</td>\n<td>String</td>\n<td>-</td>\n</tr>\n<tr>\n<td>- quantity</td>\n<td>The quantity of the item purchased.</td>\n<td>Float</td>\n<td>Mandatory</td>\n</tr>\n<tr>\n<td>- rate</td>\n<td>The price of one unit of the item, including taxes.</td>\n<td>Float</td>\n<td>Mandatory</td>\n</tr>\n<tr>\n<td>- value</td>\n<td>The price of one unit of the item, excluding taxes.</td>\n<td>Float</td>\n<td>Mandatory</td>\n</tr>\n<tr>\n<td>- discount</td>\n<td>The total discount applied to the item.</td>\n<td>Float</td>\n<td>-</td>\n</tr>\n<tr>\n<td>- amount</td>\n<td>The total amount for the item, excluding taxes.</td>\n<td>Float</td>\n<td>Mandatory</td>\n</tr>\n<tr>\n<td>- grossAmount</td>\n<td>The total amount for the item, including taxes.</td>\n<td>Float</td>\n<td>Mandatory</td>\n</tr>\n<tr>\n<td>- category</td>\n<td>The category or type of the item, if applicable.</td>\n<td>String</td>\n<td>-</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Sample Request Body:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"mobile\": \"971xxxxxxxxx\",\n    \"transactionId\": \"00000xxxxxxxxxx\",\n    \"storeID\": \"123xx\",\n    \"points\": 100,\n    \"OTP\":\"720172\",\n    \"lineItems\": [\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxCREAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 30,\n            \"value\": 30,\n            \"discount\": 0,\n            \"amount\": 28.57,\n            \"grossAmount\": 30,\n            \"billNumber\": \"{{billNo}}\"\n        },\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxFOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 70,\n            \"value\": 70,\n            \"discount\": 0,\n            \"amount\": 68.1,\n            \"grossAmount\": 70,\n            \"billNumber\": \"{{billNo}}\"\n        }\n      ]\n    }\n}\n\n</code></pre>\n<p><strong>Error Details:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status Code</strong></th>\n<th><strong>Message</strong></th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>404</td>\n<td>You are not Authorized</td>\n<td>Token in headers has expired. Generate a token using the Get Auth Token API.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>OTP Failed,Invalid Code or or code expired. Please request again for OTP</td>\n<td>Code is invalid or has expired. If expired, try after 1 minute.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>OTP Failed,Incorrect points to redeem entered. This code is valid to redeem 100 points</td>\n<td>The points mentioned while generating OTP and while entering OTP do not match.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Redemption points cannot be 0.</td>\n<td>Points to be redeemed should be more than 0</td>\n</tr>\n<tr>\n<td>404</td>\n<td>No Customer Found</td>\n<td>Customer does not exist in SWAN</td>\n</tr>\n<tr>\n<td>404</td>\n<td>OTP Based Points Redemption is Enabled. Please generate OTPs and Redeem Points</td>\n<td>Customer can redeem points only after validation of OTP. Please use /post-generate-otp API to generate OTP</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Points Redemption disabled, Customer Profile is not active please contact admin</td>\n<td>Customer Profile is deactivated.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Points Redemption disabled, Customer Profile is marked as fraud please contact admin</td>\n<td>Customer Profile is marked as fraud.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Points Redemption disabled, Customer loyalty membership expired please contact admin</td>\n<td>Customer Membership has expired.</td>\n</tr>\n<tr>\n<td>400</td>\n<td><code>Fields</code> are required to Redeem Points! Please update the customer details in Customer Profile Page</td>\n<td>Customer Profile has to be updated with the mentioned fields</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Points Redemption for individual items is \"enabled\". Please ensure include the billLineItems with items for redemption.</td>\n<td>To include the billLineItems in the request body, if there is redemption excluded for particular items enabled.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>All items are ineligible for Points Redemption.</td>\n<td>Items are not eligible for redemption, if there is redemption excluded for particular items enabled.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>You can only redeem a maximum of <code>points</code> points for this transaction</td>\n<td>Points include value for ineligible items and cannot be redeemed more than the maximum points mentioned</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Customer do not have enough points, Max Redeemable points <code>points</code></td>\n<td>The mentioned points are more than the customer's balance points</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Cannot redeem points since points have already been redeemed for transaction with id <code>transaction_id</code></td>\n<td>Points have already been redeemed for the transaction id</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Minimum Points Redemption value is <code>points</code></td>\n<td>The minimum points that can be redeemed is as mentioned.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Maximum Points Redemption value is <code>points</code></td>\n<td>The maximum points that can be redeemed is as mentioned.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Points can only be redeemed in multiples of <code>multiplier</code></td>\n<td>Points can only be redeemed in the multiples mentioned.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["{{client}}","post-validate-otp"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"daceb93b-e425-4832-85e9-d643272430dc","name":"200 - Points Redeemed","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 100,\n    \"OTP\": \"698650\",\n    \"lineItems\": [\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxCREAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 30,\n            \"value\": 30,\n            \"discount\": 0,\n            \"amount\": 28.57,\n            \"grossAmount\": 30,\n            \"billNumber\": \"{{billNo}}\"\n        },\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxFOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 70,\n            \"value\": 70,\n            \"discount\": 0,\n            \"amount\": 68.1,\n            \"grossAmount\": 70,\n            \"billNumber\": \"{{billNo}}\"\n        }\n    ]\n}"},"url":"{{url}}/{{client}}/post-validate-otp"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:19:21 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0SOWhYgAAAAAp/LUf2qeWTJK7dGXq06nqQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=DauI0yZMqF6JTwlx0Sy21WNquMwpGppSksvjsJKxYwuRV4g6VcODLMIKZ7QZNSuV73e2RQ6pGGuq1jZzd8CwDKjKwlRo1%2F0O4MCY18I%2BYFM%2FyByKONHDiIS7gdfpn%2BWRiOwKzQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189d0a80f6784fe-BOM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"points\": 100,\n            \"conversion\": 0.02,\n            \"mobile\": \"919810970618\",\n            \"transactionId\": \"3771313131-313131312\",\n            \"value\": 2,\n            \"validProducts\": [\n                {\n                    \"stockNo\": \"00xxx\",\n                    \"redeemedPoints\": 30,\n                    \"redeemedPointsPerQuantity\": 30\n                },\n                {\n                    \"stockNo\": \"00xxx\",\n                    \"redeemedPoints\": 70,\n                    \"redeemedPointsPerQuantity\": 70\n                }\n            ]\n        }\n    ],\n    \"error\": null,\n    \"status\": 200\n}"},{"id":"a25e8c50-e52e-47d7-8eda-18ca50843218","name":"404 - Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 10,\n    \"OTP\":\"541353\",\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"00xxx\",\n                \"description\": \"xxxCREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"090000050000115\"\n            },\n            {\n                \"stockNo\": \"00xxx\",\n                \"description\": \"xxxFOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 70,\n                \"value\": 70,\n                \"discount\": 0,\n                \"amount\": 68.1,\n                \"grossAmount\": 70,\n                \"billNumber\": \"090000050000115\"\n            }\n        ]\n    }\n}"},"url":"{{url}}/{{client}}/redeem-points"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 May 2024 11:16:29 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=1BfcsT%2FjLgmFpBfjUb%2BcJ6%2BHUSFxnrvTdg2Vc3eMbXemRq9sVZbwzLfkOFuCNdJoZIr417fZkY9K0i17zgF8cGANWrKXUT1U7oAerUZHE1wT1PMFvZr4JwmGn%2B9J0cMYwnAaNA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"887c64f348520407-CDG"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"You are not Authorized\"\n    }\n}"},{"id":"7e94ca8d-8da4-4b7f-976d-74b5cb2e686d","name":"404 - Invalid Code","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnQiOiJzaGFkZXNvZmluZGlhIiwicHVycG9zZSI6ImFwaS1hdXRoIiwiaWF0IjoxNjIxNDMzOTExLCJleHAiOjE2MjE1...","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"917676594984\",\n    \"transactionId\": \"000000000000000118\",\n    \"storeID\": \"TEST\",\n    \"points\": 10,\n    \"OTP\":\"720172\",\n    \"lineItems\": [\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxCREAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 30,\n            \"value\": 30,\n            \"discount\": 0,\n            \"amount\": 28.57,\n            \"grossAmount\": 30,\n            \"billNumber\": \"{{billNo}}\"\n        },\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxFOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 70,\n            \"value\": 70,\n            \"discount\": 0,\n            \"amount\": 68.1,\n            \"grossAmount\": 70,\n            \"billNumber\": \"{{billNo}}\"\n        }\n    ]\n}"},"url":"{{url}}/{{client}}/post-validate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:18:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"149"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0KeWhYgAAAACL5WEOUsGfR7PchRT6sRW5Qk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=JO5Oh2KqfBvdcyNufArK9fBdBfA2m95wcl0VWTIcRoQTIKuVU2caULkoscchB6oCsYko9H%2F%2Bkqvxx65lXReVwfXupBK8ntUFhSYCxnMloBZsghaLIE4PmHHMqCcnr9AgT2ADtQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189cfe10e1e84fe-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"OTP Failed,Invalid Code or or code expired. Please request again for OTP\"\n    }\n}"},{"id":"44c17c9c-6c3e-42e8-b6f8-61da23170242","name":"404 - Incorrect Points","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 10,\n    \"OTP\":\"541353\",\n    \"lineItems\": [\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxCREAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 30,\n            \"value\": 30,\n            \"discount\": 0,\n            \"amount\": 28.57,\n            \"grossAmount\": 30,\n            \"billNumber\": \"{{billNo}}\"\n        },\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxFOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 70,\n            \"value\": 70,\n            \"discount\": 0,\n            \"amount\": 68.1,\n            \"grossAmount\": 70,\n            \"billNumber\": \"{{billNo}}\"\n        }\n    ]\n}"},"url":"{{url}}/{{client}}/post-validate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 11:42:22 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=WCV1%2Fi08l5ZDLt3xQDLFElIlBVBfIifhvDcJqms1dQHJ00jg2l3aL1RkO3kQ%2BYA%2Fh9bnKSMwuQN18cF36vaztaLnmINYJKlWwtvqdi8D%2Br608E1FbUk1x1zVlvG0ed5d3wpH9g%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8800f23e5cb9a8f2-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"OTP Failed,Incorrect points to redeem entered. This code is valid to redeem 100 points\"\n    }\n}"},{"id":"0db1ef5a-53c0-48df-b4c3-ca93d7a0c0e8","name":"400 - 0 Points Redeemed","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnQiOiJzd2FuLXRlc3QiLCJwdXJwb3NlIjoiYXBpLWF1dGgiLCJpYXQiOjE3MTYzNzQ5OTQsImV4cCI6MTcxNjQ2MTM5NH0.E0whFNyTrmAQ2kxmXVjlewhaQDMb62CxUvAYkZ7taVU"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 0,\n    \"OTP\":\"541353\",\n    \"lineItems\": [\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxCREAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 30,\n            \"value\": 30,\n            \"discount\": 0,\n            \"amount\": 28.57,\n            \"grossAmount\": 30,\n            \"billNumber\": \"{{billNo}}\"\n        },\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxFOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 70,\n            \"value\": 70,\n            \"discount\": 0,\n            \"amount\": 68.1,\n            \"grossAmount\": 70,\n            \"billNumber\": \"{{billNo}}\"\n        }\n    ]\n}"},"url":"{{url}}/{{client}}/post-validate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 May 2024 10:50:21 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=oSNGwV27GQgc4uOmGbSI5oZPV3LacCn5rMG88MYWZkUXJcTsVsEb6laSmYJrTNLcI42eYHooAtOWsDvGwlMSZ44pdoBx%2BN0uSlV91VKWxo2UqGzidTEJWeV8PnkBTk4F0pe8VA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"887c3ea978523cdb-CDG"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 400,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Redemption points cannot be 0.\"\n    }\n}"},{"id":"6f0d7e24-4c78-429c-a8bb-75cafe829168","name":"404 - No Customer Found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnQiOiJzd2FuLXRlc3QiLCJwdXJwb3NlIjoiYXBpLWF1dGgiLCJpYXQiOjE3MTYzNzQ5OTQsImV4cCI6MTcxNjQ2MTM5NH0.E0whFNyTrmAQ2kxmXVjlewhaQDMb62CxUvAYkZ7taVU"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"91987377221911\",\n    \"transactionId\": \"090000050000115\",\n    \"storeID\": \"TEST\",\n    \"points\": 10,\n    \"OTP\":\"541353\",\n    \"lineItems\": [\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxCREAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 30,\n            \"value\": 30,\n            \"discount\": 0,\n            \"amount\": 28.57,\n            \"grossAmount\": 30,\n            \"billNumber\": \"{{billNo}}\"\n        },\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxFOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 70,\n            \"value\": 70,\n            \"discount\": 0,\n            \"amount\": 68.1,\n            \"grossAmount\": 70,\n            \"billNumber\": \"{{billNo}}\"\n        }\n    ]\n}"},"url":"{{url}}/{{client}}/post-validate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 May 2024 10:51:33 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=yFGAiJRTIvN8t%2F6Nn6QhCknZj3Gcf3h7ZBVwULGxTlpJGA96sZH1al3boBd7VJMSIaMPhq36SM2gzew5C9OWSXYc8QD9rMuAgqIDLhgs9o4E5rXZwyPwXjigrwhuDETfiqL8Bw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"887c40680d4d3cdb-CDG"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"No Customer Found\"\n    }\n}"},{"id":"c1274e70-2ca2-4515-955d-7ce978501657","name":"404 - Loyalty Validate Redemption OTP - OTP redemption is enabled in Swan AI","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnQiOiJzaGFkZXNvZmluZGlhIiwicHVycG9zZSI6ImFwaS1hdXRoIiwiaWF0IjoxNjIxNDMzOTExLCJleHAiOjE2MjE1...","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"000000000000000118\",\n    \"storeID\": \"TEST\",\n    \"points\": 10,\n    \"OTP\":\"541353\",\n    \"lineItems\": [\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxCREAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 30,\n            \"value\": 30,\n            \"discount\": 0,\n            \"amount\": 28.57,\n            \"grossAmount\": 30,\n            \"billNumber\": \"{{billNo}}\"\n        },\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxFOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 70,\n            \"value\": 70,\n            \"discount\": 0,\n            \"amount\": 68.1,\n            \"grossAmount\": 70,\n            \"billNumber\": \"{{billNo}}\"\n        }\n    ]\n}"},"url":"{{url}}/{{client}}/post-validate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 14 Jun 2022 09:49:09 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=6RiWkyXLVCboYuQVzFnxZ3oDq6fkfPqyOFH%2BHndub0ByQpUQh82fQ%2B7VJ1933ARdKWA49cHgu3UAuUQrKox7YJjF5v1z6%2FoQDOJXq5tXCjyfgK13Ar6byZ3S%2BmLf4uKEa8Zd2g%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"71b22786fecd8600-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"OTP Based Points Redemption is Disabled. Please reach out to Admin to Enable OTPs!\"\n    }\n}"},{"id":"32a17729-08eb-46a1-9ae2-a305de6f0955","name":"404 - OTP Based Redemption Enabled","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 10,\n    \"OTP\":\"541353\",\n    \"lineItems\": [\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxCREAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 30,\n            \"value\": 30,\n            \"discount\": 0,\n            \"amount\": 28.57,\n            \"grossAmount\": 30,\n            \"billNumber\": \"{{billNo}}\"\n        },\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxFOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 70,\n            \"value\": 70,\n            \"discount\": 0,\n            \"amount\": 68.1,\n            \"grossAmount\": 70,\n            \"billNumber\": \"{{billNo}}\"\n        }\n    ]\n}"},"url":"{{url}}/{{client}}/post-validate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 11:20:23 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=lT0t1nuhpQ3r8wmgCFlMowa6CzYs0QmUf%2FENEpZfzD7ae4N2iOxSoVbrl%2Bc1nCwBI7sBA%2FU4NDfnMO6%2Bx398U%2BmRsR1DcFkGAV3%2FAJUI%2FhAn%2F1Ikuy1Ck8RRBfb234jpa1mSkQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8800d1fa3a0b36e0-FRA"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"OTP Based Points Redemption is Enabled. Please generate OTPs and Redeem Points\"\n    }\n}"},{"id":"953ccf6e-cee4-4b39-bb75-f91ccb23b070","name":"404 - Deactivated Customer Profile","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 10,\n    \"OTP\":\"541353\",\n    \"lineItems\": [\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxCREAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 30,\n            \"value\": 30,\n            \"discount\": 0,\n            \"amount\": 28.57,\n            \"grossAmount\": 30,\n            \"billNumber\": \"{{billNo}}\"\n        },\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxFOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 70,\n            \"value\": 70,\n            \"discount\": 0,\n            \"amount\": 68.1,\n            \"grossAmount\": 70,\n            \"billNumber\": \"{{billNo}}\"\n        }\n    ]\n}"},"url":"{{url}}/{{client}}/post-validate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 11:20:23 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=lT0t1nuhpQ3r8wmgCFlMowa6CzYs0QmUf%2FENEpZfzD7ae4N2iOxSoVbrl%2Bc1nCwBI7sBA%2FU4NDfnMO6%2Bx398U%2BmRsR1DcFkGAV3%2FAJUI%2FhAn%2F1Ikuy1Ck8RRBfb234jpa1mSkQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8800d1fa3a0b36e0-FRA"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Points Redemption disabled, Customer Profile is not active please contact admin\"\n    }\n}"},{"id":"4f577b3b-55f1-4e9b-8627-20085b7ba014","name":"404 - Fraud Customer Profile","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 10,\n    \"OTP\":\"541353\",\n    \"lineItems\": [\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxCREAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 30,\n            \"value\": 30,\n            \"discount\": 0,\n            \"amount\": 28.57,\n            \"grossAmount\": 30,\n            \"billNumber\": \"{{billNo}}\"\n        },\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxFOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 70,\n            \"value\": 70,\n            \"discount\": 0,\n            \"amount\": 68.1,\n            \"grossAmount\": 70,\n            \"billNumber\": \"{{billNo}}\"\n        }\n    ]\n}"},"url":"{{url}}/{{client}}/post-validate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 11:20:23 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=lT0t1nuhpQ3r8wmgCFlMowa6CzYs0QmUf%2FENEpZfzD7ae4N2iOxSoVbrl%2Bc1nCwBI7sBA%2FU4NDfnMO6%2Bx398U%2BmRsR1DcFkGAV3%2FAJUI%2FhAn%2F1Ikuy1Ck8RRBfb234jpa1mSkQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8800d1fa3a0b36e0-FRA"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Points Redemption disabled, Customer Profile is marked as fraud please contact admin\"\n    }\n}"},{"id":"7563b81b-e854-4ea9-9b5f-87f1a9416434","name":"404 - Membership Expired","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 10,\n    \"OTP\":\"541353\",\n    \"lineItems\": [\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxCREAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 30,\n            \"value\": 30,\n            \"discount\": 0,\n            \"amount\": 28.57,\n            \"grossAmount\": 30,\n            \"billNumber\": \"{{billNo}}\"\n        },\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxFOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 70,\n            \"value\": 70,\n            \"discount\": 0,\n            \"amount\": 68.1,\n            \"grossAmount\": 70,\n            \"billNumber\": \"{{billNo}}\"\n        }\n    ]\n}"},"url":"{{url}}/{{client}}/post-validate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 11:20:23 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=lT0t1nuhpQ3r8wmgCFlMowa6CzYs0QmUf%2FENEpZfzD7ae4N2iOxSoVbrl%2Bc1nCwBI7sBA%2FU4NDfnMO6%2Bx398U%2BmRsR1DcFkGAV3%2FAJUI%2FhAn%2F1Ikuy1Ck8RRBfb234jpa1mSkQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8800d1fa3a0b36e0-FRA"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Points Redemption disabled, Customer loyalty membership expired please contact admin\"\n    }\n}"},{"id":"abd3c597-fc88-4010-afc0-3e81ea28cba4","name":"400 - Include Bill Line Items","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 10,\n    \"OTP\":\"541353\"\n}"},"url":"{{url}}/{{client}}/post-validate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 22 May 2024 09:22:06 GMT"},{"key":"Server","value":"Kestrel"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 400,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Points Redemption for individual items is \\\"enabled\\\". Please ensure include the billLineItems with items for redemption.\"\n    }\n}"},{"id":"1e8b02cd-a0bb-4069-beee-56dc602eb58e","name":"400 - Required Fields to Redeem Points","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 10,\n    \"OTP\":\"541353\",\n    \"lineItems\": [\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxCREAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 30,\n            \"value\": 30,\n            \"discount\": 0,\n            \"amount\": 28.57,\n            \"grossAmount\": 30,\n            \"billNumber\": \"{{billNo}}\"\n        },\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxFOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 70,\n            \"value\": 70,\n            \"discount\": 0,\n            \"amount\": 68.1,\n            \"grossAmount\": 70,\n            \"billNumber\": \"{{billNo}}\"\n        }\n    ]\n}"},"url":"{{url}}/{{client}}/post-validate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 22 May 2024 09:22:06 GMT"},{"key":"Server","value":"Kestrel"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 400,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Email, Card Number are required to Redeem Points! Please update the customer details in Customer Profile Page.\"\n    }\n}"},{"id":"4ba21f01-cad7-4136-99b7-81ad3b25625f","name":"400 - Items are ineligible for Redemption.","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 111,\n    \"OTP\":\"541353\",\n    \"lineItems\": [\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxCREAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 30,\n            \"value\": 30,\n            \"discount\": 0,\n            \"amount\": 28.57,\n            \"grossAmount\": 30,\n            \"billNumber\": \"{{billNo}}\"\n        },\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxFOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 70,\n            \"value\": 70,\n            \"discount\": 0,\n            \"amount\": 68.1,\n            \"grossAmount\": 70,\n            \"billNumber\": \"{{billNo}}\"\n        }\n    ]\n}"},"url":"{{url}}/{{client}}/post-validate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 11:20:23 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=lT0t1nuhpQ3r8wmgCFlMowa6CzYs0QmUf%2FENEpZfzD7ae4N2iOxSoVbrl%2Bc1nCwBI7sBA%2FU4NDfnMO6%2Bx398U%2BmRsR1DcFkGAV3%2FAJUI%2FhAn%2F1Ikuy1Ck8RRBfb234jpa1mSkQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8800d1fa3a0b36e0-FRA"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"All items are ineligible for Points Redemption.\"\n    }\n}"},{"id":"fbc73593-e92b-4aa4-a8d1-f1c7182404d4","name":"400 - Only redeem a maximum of points","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 150,\n    \"OTP\":\"541353\",\n    \"lineItems\": [\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxCREAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 30,\n            \"value\": 30,\n            \"discount\": 0,\n            \"amount\": 28.57,\n            \"grossAmount\": 30,\n            \"billNumber\": \"{{billNo}}\"\n        },\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxFOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 70,\n            \"value\": 70,\n            \"discount\": 0,\n            \"amount\": 68.1,\n            \"grossAmount\": 70,\n            \"billNumber\": \"{{billNo}}\"\n        }\n    ]\n}"},"url":"{{url}}/{{client}}/post-validate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 22 May 2024 09:22:06 GMT"},{"key":"Server","value":"Kestrel"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 400,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"You can only redeem a maximum of 100 points for this transaction\"\n    }\n}"},{"id":"1be42624-defb-4344-9d8b-d9abbb48037a","name":"404 - Existing Transaction Id","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 150,\n    \"OTP\":\"541353\",\n    \"lineItems\": [\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxCREAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 30,\n            \"value\": 30,\n            \"discount\": 0,\n            \"amount\": 28.57,\n            \"grossAmount\": 30,\n            \"billNumber\": \"{{billNo}}\"\n        },\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxFOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 70,\n            \"value\": 70,\n            \"discount\": 0,\n            \"amount\": 68.1,\n            \"grossAmount\": 70,\n            \"billNumber\": \"{{billNo}}\"\n        }\n    ]\n}"},"url":"{{url}}/{{client}}/post-validate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 May 2024 09:36:32 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=j6RZlAkhjh2lo6Mwz0z%2BoR6KENp%2BAjA97mt562WJWVtH%2B2BruTmPAXiFApGea1%2Bx2ADofJ%2FbRjzfOsHS4bwZDdkzoZ%2Fil6NS9LMou5XscYTAzTNn4TB1IzCE8q51bD2RBZBiBw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"887bd27d3d0e99f1-CDG"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Cannot redeem points since points have already been redeemed for transaction with id 090000050000585\"\n    }\n}"},{"id":"290d2c4e-db1b-4b39-8797-59107f067516","name":"404 - Minimum Points Redemption","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnQiOiJzd2FuLXRlc3QiLCJwdXJwb3NlIjoiYXBpLWF1dGgiLCJpYXQiOjE3MTYzNjk0NzQsImV4cCI6MTcxNjQ1NTg3NH0.r8HaTUFFmXAwvwuerm4dgbyD1pgRVvxNobzNh0k1xD0"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 10,\n    \"OTP\":\"541353\",\n    \"lineItems\": [\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxCREAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 30,\n            \"value\": 30,\n            \"discount\": 0,\n            \"amount\": 28.57,\n            \"grossAmount\": 30,\n            \"billNumber\": \"{{billNo}}\"\n        },\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxFOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 70,\n            \"value\": 70,\n            \"discount\": 0,\n            \"amount\": 68.1,\n            \"grossAmount\": 70,\n            \"billNumber\": \"{{billNo}}\"\n        }\n    ]\n}"},"url":"{{url}}/{{client}}/post-validate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 May 2024 09:18:21 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=zSIVbiJKEqToQjOwSIz%2B3A151aecsa7T39K99H0mj46MTsFXj42QEh8PC5gcU2jHSgPoDQhJ6%2BXn9H1IAnGgMKrDtPzvjINREIIBA0iID4sWKMBnQPZdfW%2Bv7LIMwYMe2BWdTQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"887bb7e5ac219990-CDG"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Minimum Points Redemption value is 100\"\n    }\n}"},{"id":"e90ec357-9c61-4b25-a5fc-58845fbdf241","name":"404 - Maximum Points Redemption Copy","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnQiOiJzd2FuLXRlc3QiLCJwdXJwb3NlIjoiYXBpLWF1dGgiLCJpYXQiOjE3MTYzNjk0NzQsImV4cCI6MTcxNjQ1NTg3NH0.r8HaTUFFmXAwvwuerm4dgbyD1pgRVvxNobzNh0k1xD0"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 1000,\n    \"OTP\":\"541353\",\n    \"lineItems\": [\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxCREAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 30,\n            \"value\": 30,\n            \"discount\": 0,\n            \"amount\": 28.57,\n            \"grossAmount\": 30,\n            \"billNumber\": \"{{billNo}}\"\n        },\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxFOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 70,\n            \"value\": 70,\n            \"discount\": 0,\n            \"amount\": 68.1,\n            \"grossAmount\": 70,\n            \"billNumber\": \"{{billNo}}\"\n        }\n    ]\n}"},"url":"{{url}}/{{client}}/post-validate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 May 2024 09:18:21 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=zSIVbiJKEqToQjOwSIz%2B3A151aecsa7T39K99H0mj46MTsFXj42QEh8PC5gcU2jHSgPoDQhJ6%2BXn9H1IAnGgMKrDtPzvjINREIIBA0iID4sWKMBnQPZdfW%2Bv7LIMwYMe2BWdTQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"887bb7e5ac219990-CDG"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Maximum Points Redemption value is 500\"\n    }\n}"},{"id":"6dc0a6cb-15e7-4f5a-be02-a0a1e090e14d","name":"404 - Points Multiplier configuration","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 111,\n    \"OTP\":\"541353\",\n    \"lineItems\": [\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxCREAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 30,\n            \"value\": 30,\n            \"discount\": 0,\n            \"amount\": 28.57,\n            \"grossAmount\": 30,\n            \"billNumber\": \"{{billNo}}\"\n        },\n        {\n            \"stockNo\": \"00xxx\",\n            \"description\": \"xxxFOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 70,\n            \"value\": 70,\n            \"discount\": 0,\n            \"amount\": 68.1,\n            \"grossAmount\": 70,\n            \"billNumber\": \"{{billNo}}\"\n        }\n    ]\n}"},"url":"{{url}}/{{client}}/post-validate-otp"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 11:20:23 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=lT0t1nuhpQ3r8wmgCFlMowa6CzYs0QmUf%2FENEpZfzD7ae4N2iOxSoVbrl%2Bc1nCwBI7sBA%2FU4NDfnMO6%2Bx398U%2BmRsR1DcFkGAV3%2FAJUI%2FhAn%2F1Ikuy1Ck8RRBfb234jpa1mSkQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8800d1fa3a0b36e0-FRA"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Points can only be redeemed in multiples of 2\"\n    }\n}"}],"_postman_id":"309a7fdf-f23f-466e-a6dd-73b3802a921c"},{"name":"Reinstate Points","id":"19a4ea3f-b129-4539-9f3b-54af3fce770a","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"points\": 100,\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\"\n}"},"url":"{{url}}/{{client}}/reinstate-points","description":"<p><strong>This HTTP POST API is to be used to reinstate the points to the customer.</strong></p>\n<p>This case is automatically handled in the case of return transactions but <strong>it needs to be handled exclusively for cases when the customer redeems the points on a transaction but the transaction</strong> was cancelled or Loyalty points were not used as a payment mode.</p>\n<p><strong>API Workflow:</strong></p>\n<img src=\"https://content.pstmn.io/423541f1-c8a7-454e-a742-dfa5dbbd30ae/UmVpbnN0YXRlbWVudC5kcmF3aW8ucG5n\" width=\"477\" height=\"688\" />\n\n<p><strong>POS Workflow:</strong></p>\n<img src=\"https://content.pstmn.io/8fd5bd3b-96d1-40c4-be5f-55a6d13e8f11/UE9TUmVpbnN0YXRlLmRyYXdpby5wbmc=\" width=\"549\" height=\"262\" />\n\n<p><strong>Fields accepted by API:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Description</th>\n<th>Data Type</th>\n<th>Mandatory</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>mobile</td>\n<td>Mobile number with country code, no +</td>\n<td>String</td>\n<td>Mandatory</td>\n</tr>\n<tr>\n<td>transactionId</td>\n<td>Bill number of the transaction for which points has to be reinstated</td>\n<td>String</td>\n<td>Mandatory</td>\n</tr>\n<tr>\n<td>storeID</td>\n<td>Store ID from which the reinstatement is made</td>\n<td>String</td>\n<td>-</td>\n</tr>\n<tr>\n<td>points</td>\n<td>The number of points that has to be reinstated for the customer</td>\n<td>Number</td>\n<td>Mandatory</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Sample Request Body:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"mobile\": \"971xxxxxxxxx\",\n    \"transactionId\": \"00000xxxxxxxxxx\",\n    \"storeID\": \"123xx\",\n    \"points\": 100,\n}\n\n</code></pre>\n<p><strong>Error Details:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status Code</strong></th>\n<th><strong>Message</strong></th>\n<th>Meaning</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>404</td>\n<td>You are not Authorized</td>\n<td>Token in headers has expired. Generate a token using the Get Auth Token API.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Reinstate points cannot be 0.</td>\n<td>Points to be reinstated should be more than 0</td>\n</tr>\n<tr>\n<td>404</td>\n<td>No Customer Found</td>\n<td>Customer does not exist in SWAN. Recheck the number.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Redeemed points not found or points dont match.</td>\n<td>Points have not been not redeemed or do not match the LoyaltyPoints value for the particular transaction.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["{{client}}","reinstate-points"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"913b2599-45d9-453b-a7cb-b36d6c9ec3f9","name":"200 - Points Reinstated","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"points\": 100,\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\"\n}"},"url":"{{url}}/{{client}}/reinstate-points"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:20:28 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0jOWhYgAAAADpN9Vr2dAxQLAOPV7/0KGnQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=jmGXhLq%2Fk1sSPt8QctQCWUyp0nICGfH4PQsgFE07ByR3LaszYq8gwjBalinNxho0lP8Y9ktMFxlndustaaJLZnW9fvPGQhvSKPwMZMnTxDC%2BCU1mcJolKeLyog4mwSaV%2FI9nag%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189d24d2e7284fe-BOM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"200\",\n    \"data\": [\n        {\n            \"message\": \"Reinstated 100 Points\"\n        }\n    ],\n    \"error\": null\n}"},{"id":"9e945fc2-6ee4-4afb-b8a8-53153d970d81","name":"404 - Unauthorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"points\": 10,\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\"\n}"},"url":"{{url}}/{{client}}/reinstate-points"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 23 May 2024 06:44:28 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=iigyhTkcYPurxf8sjjFXF2hjVZMZKzNr32eswKnIxrky5V5Q%2BP1mBE4mSB1JXcmHkKs%2F5MvdMY8oap%2FNQYxDxRsDk07z7algcxcybvSVTtVIMIKnIs9uj6aNFx5ytfpgDIKNkw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"888313d85a6299c2-CDG"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"You are not Authorized\"\n    }\n}"},{"id":"6fe985ea-f7b2-4b8b-8851-54a50d010deb","name":"400 - 0 Reinstate Points","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"points\": 0,\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\"\n}"},"url":"{{url}}/{{client}}/reinstate-points"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 23 May 2024 07:04:09 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=ux4Xk%2FhbjmTc0CorOJ92XPMRLvc%2FHH1c24OjS%2Ftom8KCMP5mhdRK2Z2Ovd0yIHbSR5nhYw183EbLebEK2gq8NJzkfrHheAe7I7G0eQi7QJ7F7xQS9hZSL1qwfYY0UJftkXOzoQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"888330a9d9d7f13c-CDG"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 400,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Reinstate points cannot be 0.\"\n    }\n}"},{"id":"78eaa339-619f-475c-809b-8aa881484ebd","name":"404 - Customer not found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"points\": 10,\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\"\n}"},"url":"{{url}}/{{client}}/reinstate-points"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 23 May 2024 07:49:15 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=lrBx1NNHtKAIKRuQgSFguDX8usvWzSk7j8PQvXAGJKYjmLP6rPy%2BPRxjpYv9djVMWGiVwRkgYiTuy3D5%2BAg%2FN1Y6oKbfwP3qgzLjd8nXwlNOz860XOAubtGKcWFdU6RKg59jPw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"888372b36a805437-YYZ"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"No Customer Found\"\n    }\n}"},{"id":"6a5198f8-1324-4b4f-a1af-ccd8bf9bb75d","name":"404 - Redeemed Points not found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"points\": 10,\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"090001050000585\"\n}"},"url":"{{url}}/{{client}}/reinstate-points"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 23 May 2024 06:58:07 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=t928nhPmysvgK0c82qawkhJf6POn0OT7WT6ehNKoxJfS7uw2mOlfLsBJqW0ranDart7zEj%2BP5LDzVJAn7gT7yjMlrAKAAWm8J02DcIT2wWdJHtUCulS5WSVxakG1pcaSqGpoCQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"888327dbdb68f13c-CDG"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Redeemed points not found or points dont match.\"\n    }\n}"},{"id":"06a06578-99f2-4eed-a0f7-31a36ed5f316","name":"404 - No Points to reinstate","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnQiOiJsb3lhbHl0aWNzIiwicHVycG9zZSI6ImFwaS1hdXRoIiwiaWF0IjoxNjEwMTEwMDUwLCJleHAiOjE2MTAxOTY0...","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"points\": 10,\n    \"mobile\": \"919620539938\",\n    \"transactionId\": \"090000050000091\"\n}"},"url":"{{url}}/{{client}}/reinstate-points"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:20:10 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"131"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0euWhYgAAAACPfc4axiquTKtS/6EdIbFQQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=mhmtoxVmQDNlF%2BCQyJgdsDFj5QeXJc3WfiZLCh97v169FNHTuGnJ%2FWo5tUNSNhsc877HMNLvH8QlbEzKNrCZwJKl45Y53IwOBXL53cYKbObhQoiWQGT5GTRarMv62uPlL%2BeUhw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189d1db2bb784fe-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"No Points to be reinstated / Points Already Reinstated\"\n    }\n}"}],"_postman_id":"19a4ea3f-b129-4539-9f3b-54af3fce770a"},{"name":"Loyalty Fetch Points Ledgers Details","id":"71c7f30e-3de3-4a6a-9b49-70ddd30d616c","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"{{url}}/{{client}}/get-points-ledgers-details?mobile={{mobile}}","description":"<p>View the customer’s issued and redeemed loyalty points history using mobile or email.</p>\n","urlObject":{"path":["{{client}}","get-points-ledgers-details"],"host":["{{url}}"],"query":[{"key":"mobile","value":"{{mobile}}"},{"disabled":true,"key":"email","value":"{{email}}"}],"variable":[]}},"response":[{"id":"cb4b764c-1627-4740-a17c-3215350ef2f1","name":"Loyalty Fetch Points Ledgers Details - Cusomer not found","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnQiOiJzaGFkZXNvZmluZGlhIiwicHVycG9zZSI6ImFwaS1hdXRoIiwiaWF0IjoxNjIxNDMzOTExLCJleHAiOjE2MjE1...","type":"text"}],"url":{"raw":"https://api.loyalytics.ai/swan/dev;rev=3/alkhayyat/get-points-ledgers-details?email=nikita@loyalytics.in","protocol":"https","host":["api","loyalytics","ai"],"path":["swan","dev;rev=3","alkhayyat","get-points-ledgers-details"],"query":[{"key":"mobile","value":"919133406360","disabled":true},{"key":"email","value":"nikita@loyalytics.in"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"data\": [\n        {\n            \"conversion\": 8,\n            \"points\": 100,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"e5b0b514-451e-4c3a-9d07-0b10dbc02fd5\",\n            \"date\": \"2025-05-16T11:58:48.251Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_e5b0b514-451e-4c3a-9d07-0b10dbc02fd5_b023ed5f-ae5b-41b7-9701-a0892e347394\",\n            \"expiryDate\": \"2025-05-24T13:16:55Z\",\n            \"uid\": \"49b7eab0-b07c-46e2-8d5f-64411bfc0d7b\",\n            \"stepID\": \"03d3900b-9720-467c-80ba-8cbbf35c04a1\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 100,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"3275243d-bc77-4381-86c6-125e4b07e33a\",\n            \"date\": \"2025-05-16T12:05:37.996Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_3275243d-bc77-4381-86c6-125e4b07e33a_53d29e22-7efc-4d20-ae90-a5c9c0224286\",\n            \"expiryDate\": \"2025-04-07T05:48:35Z\",\n            \"uid\": \"c5cb3de0-6c0b-4601-813a-d7807aa749ec\",\n            \"stepID\": \"da1d1543-39e3-4cd4-8636-b71dc8e2dfcf\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 200,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2022-08-10T00:00:00.000Z\",\n            \"transactionId\": \"425752197709871\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"100979\",\n            \"expiryDate\": \"2022-08-17T00:00:00.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 200,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2022-08-10T00:00:00.000Z\",\n            \"transactionId\": \"425752197709872\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"100979\",\n            \"expiryDate\": \"2022-08-17T00:00:00.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 200,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2022-08-10T00:00:00.000Z\",\n            \"transactionId\": \"425752197709870\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"100979\",\n            \"expiryDate\": \"2022-08-17T00:00:00.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 200,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2022-08-10T00:00:00.000Z\",\n            \"transactionId\": \"425752197709875\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"100979\",\n            \"expiryDate\": \"2022-08-17T00:00:00.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 227.3,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-05-22T19:41:31.320Z\",\n            \"transactionId\": \"090000050000395p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-05-29T19:41:31.320Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 227.3,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-05-22T19:43:02.245Z\",\n            \"transactionId\": \"090000050000396p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-05-29T19:43:02.245Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 227.3,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-05-22T19:47:31.521Z\",\n            \"transactionId\": \"090000050000397p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-05-29T19:47:31.521Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 227.3,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-05-22T19:51:29.988Z\",\n            \"transactionId\": \"090000050000398p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-05-29T19:51:29.988Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 227.3,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-05-22T19:52:45.389Z\",\n            \"transactionId\": \"090000050000399p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-05-29T19:52:45.389Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 227.3,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-05-22T19:56:09.454Z\",\n            \"transactionId\": \"090000050000400p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-05-29T19:56:09.454Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 227.3,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-05-22T19:57:04.446Z\",\n            \"transactionId\": \"090000050000401p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-05-29T19:57:04.446Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 227.3,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-09T08:44:44.940Z\",\n            \"transactionId\": \"090000050000499p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-06-16T08:44:44.940Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 227.3,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-09T08:47:39.674Z\",\n            \"transactionId\": \"090000050000500p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-06-16T08:47:39.674Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 227.3,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-10T19:07:02.630Z\",\n            \"transactionId\": \"090000050000501p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-06-17T19:07:02.630Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 227.3,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-10T19:09:38.561Z\",\n            \"transactionId\": \"090000050000502p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-06-17T19:09:38.561Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 227.3,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-10T19:11:12.698Z\",\n            \"transactionId\": \"090000050000503p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-06-17T19:11:12.698Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 227.3,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-10T19:21:09.139Z\",\n            \"transactionId\": \"090000050000504p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-06-17T19:21:09.139Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 227.3,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-23T10:51:29.038Z\",\n            \"transactionId\": \"090000050000505p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-06-30T10:51:29.038Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 200.72000000000003,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-23T10:52:49.101Z\",\n            \"transactionId\": \"090000050000506p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-06-30T10:52:49.101Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 26.58,\n                    \"date\": \"2025-06-23T11:38:15.324Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 200.72000000000003,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-23T11:41:12.256Z\",\n            \"transactionId\": \"090000050000508p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-06-30T11:41:12.256Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 26.58,\n                    \"date\": \"2025-06-23T11:43:22.550Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 200.72000000000003,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-23T12:11:51.987Z\",\n            \"transactionId\": \"090000050000510p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-06-30T12:11:51.987Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 26.58,\n                    \"date\": \"2025-06-23T12:15:24.495Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 200.72000000000003,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-23T12:28:10.868Z\",\n            \"transactionId\": \"090000050000512p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-06-30T12:28:10.868Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 26.58,\n                    \"date\": \"2025-06-23T12:30:03.470Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 2600,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-23T12:34:10.110Z\",\n            \"transactionId\": \"090000050000550p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-06-30T12:34:10.110Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 600,\n                    \"date\": \"2025-06-23T12:37:18.507Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 200.72000000000003,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-23T14:42:03.717Z\",\n            \"transactionId\": \"090000050000560p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-06-30T14:42:03.717Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 26.58,\n                    \"date\": \"2025-06-23T14:44:01.783Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 200.72000000000003,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-24T09:20:00.803Z\",\n            \"transactionId\": \"090000050000565p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-07-01T09:20:00.803Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 26.58,\n                    \"date\": \"2025-06-24T09:34:09.934Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 200.72000000000003,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-24T09:35:05.424Z\",\n            \"transactionId\": \"090000050000567p\",\n            \"storeID\": \"11605\",\n            \"storeTerminalID\": \"102\",\n            \"cashierId\": \"10412749\",\n            \"expiryDate\": \"2025-07-01T09:35:05.424Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 26.58,\n                    \"date\": \"2025-06-24T09:36:21.091Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 3200,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-25T11:09:32.388Z\",\n            \"transactionId\": \"090000050000590p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-02T11:09:32.388Z\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 500,\n            \"pointsOnHold\": null,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"09874f51-826b-4c2e-bd6c-d86a80ecdc41\",\n            \"date\": \"2025-06-25T11:09:52.003Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"090000050000590p\",\n            \"expiryDate\": \"2025-06-26T09:49:35Z\",\n            \"uid\": \"bb605f17-e202-4534-a207-c1b0d1194998\",\n            \"stepID\": \"d683f742-b2c0-4726-997e-2a88d176eec3\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 2600,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-25T11:13:51.844Z\",\n            \"transactionId\": \"090000050000591p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-02T11:13:51.844Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 600,\n                    \"date\": \"2025-06-25T11:26:16.350Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 400,\n            \"pointsOnHold\": null,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"09874f51-826b-4c2e-bd6c-d86a80ecdc41\",\n            \"date\": \"2025-06-25T11:14:03.532Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"090000050000591p\",\n            \"expiryDate\": \"2025-06-26T09:49:35Z\",\n            \"uid\": \"d7af845d-8c59-4de0-b92e-e95ffac01add\",\n            \"stepID\": \"d683f742-b2c0-4726-997e-2a88d176eec3\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 100,\n                    \"date\": \"2025-06-25T11:26:16.350Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 500,\n            \"pointsOnHold\": null,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"09874f51-826b-4c2e-bd6c-d86a80ecdc41\",\n            \"date\": \"2025-06-25T11:16:14.753Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"090000050000592p\",\n            \"expiryDate\": \"2025-06-26T09:49:35Z\",\n            \"uid\": \"56f5fadd-1fa3-498a-a27e-2784f3c60525\",\n            \"stepID\": \"d683f742-b2c0-4726-997e-2a88d176eec3\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 100,\n            \"pointsOnHold\": null,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"09874f51-826b-4c2e-bd6c-d86a80ecdc41\",\n            \"date\": \"2025-06-25T11:21:01.060Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"090000050000593p\",\n            \"expiryDate\": \"2025-06-26T09:49:35Z\",\n            \"uid\": \"92e9d21b-ad9c-4abe-8125-d04de396eeee\",\n            \"stepID\": \"d683f742-b2c0-4726-997e-2a88d176eec3\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 500,\n            \"pointsOnHold\": null,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"09874f51-826b-4c2e-bd6c-d86a80ecdc41\",\n            \"date\": \"2025-06-25T11:22:54.066Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"090000050000594p\",\n            \"expiryDate\": \"2025-06-26T09:49:35Z\",\n            \"uid\": \"92b7b177-8295-4105-81e1-ca684154d620\",\n            \"stepID\": \"d683f742-b2c0-4726-997e-2a88d176eec3\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 500,\n            \"pointsOnHold\": null,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"09874f51-826b-4c2e-bd6c-d86a80ecdc41\",\n            \"date\": \"2025-06-25T11:32:01.110Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"090000050000600p\",\n            \"expiryDate\": \"2025-06-26T09:49:35Z\",\n            \"uid\": \"53183208-d2d8-43d6-a73b-f53d03e445dd\",\n            \"stepID\": \"d683f742-b2c0-4726-997e-2a88d176eec3\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"redeemed\",\n            \"purpose\": \"transaction\",\n            \"points\": 500,\n            \"CDID\": \"CING-00000167-885777\",\n            \"client\": \"swan-test\",\n            \"storeID\": \"TEST\",\n            \"transactionId\": \"090000050000600p\",\n            \"currency\": \"AED\",\n            \"value\": 4000,\n            \"date\": \"2025-06-25T11:40:31.585Z\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 500,\n            \"pointsOnHold\": null,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"09874f51-826b-4c2e-bd6c-d86a80ecdc41\",\n            \"date\": \"2025-06-25T11:42:46.031Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"090000050000601p\",\n            \"expiryDate\": \"2025-06-26T09:49:35Z\",\n            \"uid\": \"1b401d9d-1e26-4403-af8f-0e859c593647\",\n            \"stepID\": \"d683f742-b2c0-4726-997e-2a88d176eec3\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"redeemed\",\n            \"purpose\": \"transaction\",\n            \"points\": 200,\n            \"CDID\": \"CING-00000167-885777\",\n            \"client\": \"swan-test\",\n            \"storeID\": \"TEST\",\n            \"transactionId\": \"090000050000601p\",\n            \"currency\": \"AED\",\n            \"value\": 3200,\n            \"date\": \"2025-06-25T11:43:58.027Z\",\n            \"reinstatedPoints\": [\n                {\n                    \"points\": 200,\n                    \"date\": \"2025-06-25T11:45:01.930Z\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"eventName\": \"Test Event Name\",\n            \"points\": 600,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-25T11:53:34.142Z\",\n            \"transactionId\": \"bonusPoints_7c739693-9d9d-4d6f-ac00-b54b7f08be22\",\n            \"storeID\": \"online\",\n            \"storeTerminalID\": \"online\",\n            \"cashierId\": \"online\",\n            \"expiryDate\": \"2025-07-02T11:53:34.143Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 6400,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-25T11:57:38.579Z\",\n            \"transactionId\": \"090000050000605p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-02T11:57:38.579Z\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 500,\n            \"pointsOnHold\": null,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"09874f51-826b-4c2e-bd6c-d86a80ecdc41\",\n            \"date\": \"2025-06-25T11:57:55.037Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"090000050000605p\",\n            \"expiryDate\": \"2025-06-26T09:49:35Z\",\n            \"uid\": \"d34caf57-604a-4c90-b3f0-9a1f2663ef61\",\n            \"stepID\": \"d683f742-b2c0-4726-997e-2a88d176eec3\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"referralBonus\",\n            \"points\": 20,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-28T19:46:44.633Z\",\n            \"transactionId\": \"referralBonus_af23e7e4-9bed-495c-bd53-1973bc003706\",\n            \"storeID\": \"swan\",\n            \"storeTerminalID\": \"referral\",\n            \"cashierId\": \"sourashis@loyalytics.in\",\n            \"expiryDate\": \"2025-07-08T19:46:44.633Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"referralBonus\",\n            \"points\": 20,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-28T19:49:47.265Z\",\n            \"transactionId\": \"referralBonus_ac6f5bd8-60a0-4b82-99ec-f9d2484f0779\",\n            \"storeID\": \"swan\",\n            \"storeTerminalID\": \"referral\",\n            \"cashierId\": \"sourashis@loyalytics.in\",\n            \"expiryDate\": \"2025-07-08T19:49:47.265Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 4800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-30T09:50:45.403Z\",\n            \"transactionId\": \"090000050000611p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-07T09:50:45.403Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 4800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-30T11:15:04.193Z\",\n            \"transactionId\": \"090000050000620p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-07T11:15:04.193Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"redeemed\",\n            \"purpose\": \"transaction\",\n            \"points\": 87.5,\n            \"CDID\": \"CING-00000167-885777\",\n            \"client\": \"swan-test\",\n            \"storeID\": \"TEST\",\n            \"transactionId\": \"090000050000620p\",\n            \"currency\": \"AED\",\n            \"value\": 800,\n            \"date\": \"2025-06-30T11:17:27.015Z\",\n            \"reinstatedPoints\": [\n                {\n                    \"points\": 12.5,\n                    \"date\": \"2025-06-30T11:18:44.470Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 4800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-30T18:03:26.721Z\",\n            \"transactionId\": \"090000050000621p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-07T18:03:26.721Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 4800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-30T18:05:12.225Z\",\n            \"transactionId\": \"090000050000622p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-07T18:05:12.225Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"redeemed\",\n            \"purpose\": \"transaction\",\n            \"points\": 75,\n            \"CDID\": \"CING-00000167-885777\",\n            \"client\": \"swan-test\",\n            \"storeID\": \"TEST\",\n            \"transactionId\": \"090000050000622p\",\n            \"currency\": \"AED\",\n            \"value\": 800,\n            \"date\": \"2025-06-30T18:06:34.007Z\",\n            \"reinstatedPoints\": [\n                {\n                    \"points\": 12.5,\n                    \"date\": \"2025-06-30T18:06:59.340Z\",\n                    \"storeID\": \"SPF2032\"\n                },\n                {\n                    \"points\": 12.5,\n                    \"date\": \"2025-06-30T18:12:22.723Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-30T18:29:31.305Z\",\n            \"transactionId\": \"090000050000623p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-07T18:29:31.305Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 4800,\n                    \"date\": \"2025-06-30T18:31:27.598Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"redeemed\",\n            \"purpose\": \"transaction\",\n            \"points\": 187.5,\n            \"CDID\": \"CING-00000167-885777\",\n            \"client\": \"swan-test\",\n            \"storeID\": \"TEST\",\n            \"transactionId\": \"090000050000623p\",\n            \"currency\": \"AED\",\n            \"value\": 1600,\n            \"date\": \"2025-06-30T18:31:02.350Z\",\n            \"reinstatedPoints\": [\n                {\n                    \"points\": 12.5,\n                    \"date\": \"2025-06-30T18:31:25.765Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-06-30T18:48:48.474Z\",\n            \"transactionId\": \"090000050000624p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-07T18:48:48.474Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 4800,\n                    \"date\": \"2025-06-30T18:52:23.614Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"redeemed\",\n            \"purpose\": \"transaction\",\n            \"points\": 187.5,\n            \"CDID\": \"CING-00000167-885777\",\n            \"client\": \"swan-test\",\n            \"storeID\": \"TEST\",\n            \"transactionId\": \"090000050000624p\",\n            \"currency\": \"AED\",\n            \"value\": 1600,\n            \"date\": \"2025-06-30T18:50:34.778Z\",\n            \"reinstatedPoints\": [\n                {\n                    \"points\": 12.5,\n                    \"date\": \"2025-06-30T18:52:22.300Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 4800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-07-01T07:19:57.191Z\",\n            \"transactionId\": \"090000050000625p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-08T07:19:57.191Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 4800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-07-01T07:35:02.958Z\",\n            \"transactionId\": \"090000050000626p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-08T07:35:02.958Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"referralBonus\",\n            \"points\": 20,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-07-01T10:43:24.534Z\",\n            \"transactionId\": \"referralBonus_accf472f-dc45-4389-b373-923d0159cfd0\",\n            \"storeID\": \"swan\",\n            \"storeTerminalID\": \"referral\",\n            \"cashierId\": \"sourashis@loyalytics.in\",\n            \"expiryDate\": \"2025-07-11T10:43:24.534Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 4800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-07-01T11:12:44.425Z\",\n            \"transactionId\": \"090000050000630p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-08T11:12:44.425Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"redeemed\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"client\": \"swan-test\",\n            \"storeID\": \"TEST\",\n            \"transactionId\": \"090000050000630p\",\n            \"currency\": \"AED\",\n            \"value\": 800,\n            \"date\": \"2025-07-01T11:18:02.959Z\",\n            \"reinstatedPoints\": [\n                {\n                    \"points\": 100,\n                    \"date\": \"2025-07-01T11:22:41.099Z\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 4800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-07-01T11:32:12.506Z\",\n            \"transactionId\": \"090000050000631p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-08T11:32:12.506Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-07-01T11:33:07.509Z\",\n            \"transactionId\": \"090000050000632p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-08T11:33:07.509Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 6400,\n                    \"date\": \"2025-07-01T11:41:43.726Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"referralBonus\",\n            \"points\": 20,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-07-07T07:35:31.134Z\",\n            \"transactionId\": \"referralBonus_871c2a07-e4a4-4c48-8d4b-063f5a0b91af\",\n            \"storeID\": \"swan\",\n            \"storeTerminalID\": \"referral\",\n            \"cashierId\": \"sourashis@loyalytics.in\",\n            \"expiryDate\": \"2025-07-17T07:35:31.134Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 6400,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-07-07T08:10:10.953Z\",\n            \"transactionId\": \"090000050000635p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-14T08:10:10.953Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 6400,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-07-07T09:10:04.166Z\",\n            \"transactionId\": \"090000050000637p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-14T09:10:04.166Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 5200,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-07-07T09:14:13.184Z\",\n            \"transactionId\": \"090000050000639p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-14T09:14:13.184Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 1200,\n                    \"date\": \"2025-07-07T10:00:05.475Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 6400,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-07-07T10:17:57.135Z\",\n            \"transactionId\": \"090000050000641p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-14T10:17:57.135Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 6400,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-07-07T10:51:22.789Z\",\n            \"transactionId\": \"090000050000645p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-14T10:51:22.789Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 5200,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-07-07T11:09:48.487Z\",\n            \"transactionId\": \"090000050000650p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-14T11:09:48.487Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 1200,\n                    \"date\": \"2025-07-07T11:10:56.419Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 5200,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-07-07T11:36:45.569Z\",\n            \"transactionId\": \"090000050000660p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-07-14T11:36:45.569Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 1200,\n                    \"date\": \"2025-07-07T11:38:57.152Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"referralBonus\",\n            \"points\": 20,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-07-08T07:33:53.202Z\",\n            \"transactionId\": \"referralBonus_a1b043ca-eb21-41cb-8140-729104b38971\",\n            \"storeID\": \"swan\",\n            \"storeTerminalID\": \"referral\",\n            \"cashierId\": \"sourashis@loyalytics.in\",\n            \"expiryDate\": \"2025-07-18T07:33:53.202Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"referralBonus\",\n            \"points\": 20,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-07-21T09:22:43.706Z\",\n            \"transactionId\": \"referralBonus_e68d0bd2-0482-4ad0-890b-d84999b86164\",\n            \"storeID\": \"swan\",\n            \"storeTerminalID\": \"referral\",\n            \"cashierId\": \"sourashis@loyalytics.in\",\n            \"expiryDate\": \"2025-07-31T09:22:43.706Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"remarks\": \"Test Enhancement\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-13T14:46:49.602Z\",\n            \"transactionId\": \"bonusPoints_2e494945-dd07-4e32-a886-0767992c9234\",\n            \"storeID\": \"TTZTAM\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"bonusPointsId\": \"TEST0001\",\n            \"source\": \"Pharmacy\",\n            \"cashierId\": \"online\",\n            \"expiryDate\": \"2025-08-20T14:46:49.602Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"remarks\": \"Test Enhancement\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-13T14:49:48.190Z\",\n            \"transactionId\": \"transaction_2a9a31e8-e384-4fb8-bd89-d34b0679eaae\",\n            \"storeID\": \"TTZTAM\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"bonusPointsId\": \"TEST0002\",\n            \"source\": \"Pharmacy\",\n            \"cashierId\": \"online\",\n            \"expiryDate\": \"2025-08-20T14:49:48.190Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"remarks\": \"Test Enhancement\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-14T08:44:36.006Z\",\n            \"transactionId\": \"transaction_TEST0002\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": \"Pharmacy\",\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"online\",\n            \"expiryDate\": \"2025-08-21T08:44:36.006Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"remarks\": \"Test Enhancement\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-14T09:07:21.821Z\",\n            \"transactionId\": \"transaction_TEST0003\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": \"Pharmacy\",\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"online\",\n            \"expiryDate\": \"2025-08-21T09:07:21.821Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"remarks\": \"Test Enhancement\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-14T09:13:00.935Z\",\n            \"transactionId\": \"transaction_TEST0004\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": \"Pharmacy\",\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-21T09:13:00.935Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"remarks\": \"Test Enhancement\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-14T09:26:57.873Z\",\n            \"transactionId\": \"transaction_TEST0005\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": \"Pharmacy\",\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-21T09:26:57.873Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"remarks\": \"Test Enhancement\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-19T08:08:27.646Z\",\n            \"transactionId\": \"bonusPoints_d11691cf-6008-48b6-a284-ac406dce205d\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": \"Pharmacy\",\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-26T08:08:27.646Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"remarks\": \"Test Enhancement\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-19T08:12:52.539Z\",\n            \"transactionId\": \"bonusPoints_4e4f19bb-0c07-46b0-9c98-50db3d3ba8bc\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": \"Pharmacy\",\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-26T08:12:52.539Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"remarks\": \"Test Enhancement\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-19T08:21:22.759Z\",\n            \"transactionId\": \"bonusPoints_436137af-27a6-4aa9-970f-bed413f1a87a\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": \"Pharmacy\",\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-26T08:21:22.759Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"remarks\": \"Test Enhancement\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-19T08:27:04.065Z\",\n            \"transactionId\": \"bonusPoints_07549158-6eb7-4085-909c-7467dc80730d\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": \"Pharmacy\",\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-26T08:27:04.066Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"remarks\": \"Test Enhancement\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-19T08:28:50.443Z\",\n            \"transactionId\": \"bonusPoints_TEST0007\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": \"Pharmacy\",\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-26T08:28:50.443Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"remarks\": \"Test Enhancement\",\n            \"points\": 200,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-20T07:25:32.707Z\",\n            \"transactionId\": \"bonusPoints_TEST0008\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": \"Pharmacy\",\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-27T07:25:32.707Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"remarks\": \"Test Enhancement\",\n            \"points\": 200,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-20T08:23:02.842Z\",\n            \"transactionId\": \"bonusPoints_TEST0009\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": \"Pharmacy\",\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-27T08:23:02.842Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"\",\n            \"points\": 200,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-20T08:27:11.395Z\",\n            \"transactionId\": \"bonusPoints_TEST0010\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": \"Pharmacy\",\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-27T08:27:11.395Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 200,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-20T08:27:44.216Z\",\n            \"transactionId\": \"bonusPoints_TEST0011\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": \"Pharmacy\",\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-27T08:27:44.216Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.81,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-22T06:46:52.430Z\",\n            \"transactionId\": \"bonusPoints_fa0aae88-eeed-419c-9a70-81fd072a97c4\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-29T06:46:52.430Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.81,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-22T06:47:00.146Z\",\n            \"transactionId\": \"bonusPoints_3574b818-27e4-4957-81c2-bf97c32b8c72\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-29T06:47:00.146Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.81,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-22T06:47:38.875Z\",\n            \"transactionId\": \"bonusPoints_HHIK12311P\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-29T06:47:38.875Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.81,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-22T06:47:51.945Z\",\n            \"transactionId\": \"bonusPoints_HHIK12312P\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-29T06:47:51.945Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.81,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-22T06:48:01.548Z\",\n            \"transactionId\": \"bonusPoints_HHIK12318P\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-29T06:48:01.548Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.81,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-22T06:48:22.071Z\",\n            \"transactionId\": \"bonusPoints_TEST_POINTS_000001\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-29T06:48:22.071Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.81,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-22T06:48:29.144Z\",\n            \"transactionId\": \"bonusPoints_TEST_POINTS_000002\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-29T06:48:29.144Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.81,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-22T06:48:36.841Z\",\n            \"transactionId\": \"bonusPoints_TEST_POINTS_000003\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-29T06:48:36.841Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.81,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-22T06:49:23.270Z\",\n            \"transactionId\": \"bonusPoints_e6a4b018-9fc8-48a2-8fe0-3755ed6d13de\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-29T06:49:23.270Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.81,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-22T06:49:28.294Z\",\n            \"transactionId\": \"bonusPoints_2f3c5410-67ef-4955-a507-2f19c12d1472\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-08-29T06:49:28.294Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.81,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-25T06:15:10.623Z\",\n            \"transactionId\": \"bonusPoints_TEST_POINTS_0000090\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-09-01T06:15:10.623Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.81,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-25T06:18:09.727Z\",\n            \"transactionId\": \"bonusPoints_TEST_POINTS_0000091\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-09-01T06:18:09.727Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.81,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-25T06:18:38.374Z\",\n            \"transactionId\": \"bonusPoints_bb9afe91-0518-499a-9227-b380d0d8b303\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-09-01T06:18:38.374Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.81,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-25T06:21:09.678Z\",\n            \"transactionId\": \"bonusPoints_TEST_POINTS_0000092\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"storeName\": \"Test Store\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-09-01T06:21:09.678Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 101.81,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-26T08:33:49.110Z\",\n            \"transactionId\": \"bonusPoints_TEST_POINTS_0000093\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-09-02T08:33:49.110Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.21,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-26T08:55:21.181Z\",\n            \"transactionId\": \"bonusPoints_TEST0015\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-09-02T08:55:21.181Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.21,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-26T08:56:12.780Z\",\n            \"transactionId\": \"bonusPoints_8fe3a689-1a39-42c5-b89e-3a5383b86e1d\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-09-02T08:56:12.780Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 160.00799999999998,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-29T11:55:13.520Z\",\n            \"transactionId\": \"0900000500010138p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-09-05T11:55:13.520Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 266.68,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-29T11:56:18.923Z\",\n            \"transactionId\": \"0900000500010139p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-09-05T11:56:18.923Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 266.68,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-29T16:02:59.125Z\",\n            \"transactionId\": \"0900000500010140p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-09-05T16:02:59.125Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 266.68,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-29T16:19:30.453Z\",\n            \"transactionId\": \"0900000500010141p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-09-05T16:19:30.453Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 266.68,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-29T16:24:01.637Z\",\n            \"transactionId\": \"0900000500010142p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-09-05T16:24:01.637Z\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 533.3600000000001,\n            \"pointsOnHold\": null,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"f21cfaa8-64a7-45ad-9d14-246a67b18f05\",\n            \"date\": \"2025-08-29T16:25:02.730Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"0900000500010142p\",\n            \"expiryDate\": \"2025-08-31T16:22:22Z\",\n            \"uid\": \"7e90c49a-7813-45e5-88e1-1663e060aaea\",\n            \"stepID\": \"88775f9f-60b7-43b2-a48b-fc202fb0ec4e\",\n            \"pointsMultiplier\": 3,\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 266.68,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-29T16:25:13.759Z\",\n            \"transactionId\": \"0900000500010143p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-09-05T16:25:13.759Z\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 533.3600000000001,\n            \"pointsOnHold\": null,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"f21cfaa8-64a7-45ad-9d14-246a67b18f05\",\n            \"date\": \"2025-08-29T16:25:20.892Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"0900000500010143p\",\n            \"expiryDate\": \"2025-08-31T16:22:22Z\",\n            \"uid\": \"826e3239-c399-4187-9b66-6ecba084a67b\",\n            \"stepID\": \"88775f9f-60b7-43b2-a48b-fc202fb0ec4e\",\n            \"pointsMultiplier\": 3,\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 266.68,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-29T16:56:31.107Z\",\n            \"transactionId\": \"0900000500010144p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-09-05T16:56:31.107Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 266.68,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-29T17:02:10.873Z\",\n            \"transactionId\": \"0900000500010145p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-09-05T17:02:10.873Z\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 26.66800000000002,\n            \"pointsOnHold\": null,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"efec210c-276e-430c-b62b-e83d41b60c2d\",\n            \"date\": \"2025-08-29T17:03:02.842Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"0900000500010145p\",\n            \"expiryDate\": \"2025-08-31T17:01:06Z\",\n            \"uid\": \"d09f98a2-1ec7-4747-b625-4af756f68033\",\n            \"stepID\": \"4a0d98fb-2881-4d7f-8fd5-f6c0743cd228\",\n            \"pointsMultiplier\": 1.1,\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 266.68,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-08-29T18:49:56.095Z\",\n            \"transactionId\": \"0900000500010146p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-09-05T18:49:56.095Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 266.68,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-01T10:43:32.945Z\",\n            \"transactionId\": \"0900000500010147p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-09-08T10:43:32.945Z\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 26.66800000000002,\n            \"pointsOnHold\": null,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"5dfc8c76-3f32-436e-abe9-67210765d3a4\",\n            \"date\": \"2025-09-01T10:43:55.552Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"0900000500010147p\",\n            \"expiryDate\": \"2025-09-30T10:40:44Z\",\n            \"uid\": \"7ed4e897-d2ac-42a1-95ed-b5aba040c6a5\",\n            \"stepID\": \"14abe0fa-e796-4366-b255-8c2971a0f2e2\",\n            \"pointsMultiplier\": 1.1,\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 266.68,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-01T11:15:59.164Z\",\n            \"transactionId\": \"0900000500010148p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-09-08T11:15:59.164Z\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 53.335999999999984,\n            \"pointsOnHold\": null,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"27e42e12-afcb-456c-9aae-b06f2e171886\",\n            \"date\": \"2025-09-01T11:16:20.046Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"0900000500010148p\",\n            \"expiryDate\": \"2025-09-30T11:14:14Z\",\n            \"uid\": \"795973ff-1c9f-4e3b-8ccd-edd1fa88117f\",\n            \"stepID\": \"78a1558a-6390-46d6-bf1a-7a25d35eaf55\",\n            \"pointsMultiplier\": 1.2,\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.22,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-08T08:01:49.468Z\",\n            \"transactionId\": \"bonusPoints_TEST0016\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-09-18T08:01:49.469Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.22,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-08T08:03:33.687Z\",\n            \"transactionId\": \"bonusPoints_a1e27cd2-5838-483b-b884-4472f3cf23db\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-09-15T08:03:33.687Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.22,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-08T08:04:14.047Z\",\n            \"transactionId\": \"bonusPoints_TEST0017\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-09-15T08:04:14.047Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"notes\": \"Test Enhancement\",\n            \"points\": 10.22,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-08T08:06:20.302Z\",\n            \"transactionId\": \"bonusPoints_TEST0018\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"0121213KKKA\",\n            \"source\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Pharmacy\"\n            },\n            \"storeBuTagging\": {\n                \"storeAttr\": \"Store_category\",\n                \"storeAttrValue\": \"Grocery\"\n            },\n            \"cashierId\": \"TEST_CASHIER1\",\n            \"expiryDate\": \"2025-09-18T08:06:20.302Z\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 200,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"a4993942-a615-4e0e-a153-d1a78230e751\",\n            \"date\": \"2025-09-10T09:25:58.705Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_a4993942-a615-4e0e-a153-d1a78230e751_2ace6c52-2570-4287-9840-05e166f71773\",\n            \"expiryDate\": \"2025-09-30T09:01:29Z\",\n            \"uid\": \"3a3eff8c-c11e-4b72-b222-202d5dcf0f5e\",\n            \"stepID\": \"2548cc7e-abd3-4a79-83a9-7344c8707d1f\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 200,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"a4993942-a615-4e0e-a153-d1a78230e751\",\n            \"date\": \"2025-09-10T09:26:01.782Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_a4993942-a615-4e0e-a153-d1a78230e751_cf8d88df-b00a-4afa-a12c-9555200a9dc3\",\n            \"expiryDate\": \"2025-09-30T09:01:29Z\",\n            \"uid\": \"27ca2ec0-bed0-476b-a253-3d9a192fd2e4\",\n            \"stepID\": \"2548cc7e-abd3-4a79-83a9-7344c8707d1f\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 200,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"a4993942-a615-4e0e-a153-d1a78230e751\",\n            \"date\": \"2025-09-10T09:26:05.203Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_a4993942-a615-4e0e-a153-d1a78230e751_04752e70-8b74-43fe-a308-d30cc4041b46\",\n            \"expiryDate\": \"2025-09-30T09:01:29Z\",\n            \"uid\": \"f555d922-b5e3-4870-bb7f-366b5c8a0227\",\n            \"stepID\": \"2548cc7e-abd3-4a79-83a9-7344c8707d1f\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 200,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"a4993942-a615-4e0e-a153-d1a78230e751\",\n            \"date\": \"2025-09-10T09:26:08.919Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_a4993942-a615-4e0e-a153-d1a78230e751_166e8b9d-85fd-4b86-9ef9-a3894637cfb8\",\n            \"expiryDate\": \"2025-09-30T09:01:29Z\",\n            \"uid\": \"b6e2d8e7-4c35-4566-bc1a-6e286abe485f\",\n            \"stepID\": \"2548cc7e-abd3-4a79-83a9-7344c8707d1f\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 200,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"a4993942-a615-4e0e-a153-d1a78230e751\",\n            \"date\": \"2025-09-10T09:26:12.294Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_a4993942-a615-4e0e-a153-d1a78230e751_b8f72468-e904-4837-aa8e-204e03ac150e\",\n            \"expiryDate\": \"2025-09-30T09:01:29Z\",\n            \"uid\": \"51f9a604-dc7d-46ed-a020-78ac1d6d62b4\",\n            \"stepID\": \"2548cc7e-abd3-4a79-83a9-7344c8707d1f\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 200,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"a4993942-a615-4e0e-a153-d1a78230e751\",\n            \"date\": \"2025-09-10T09:26:33.318Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_a4993942-a615-4e0e-a153-d1a78230e751_a331ba60-c300-49ea-88c2-077a6f0caa6f\",\n            \"expiryDate\": \"2025-09-30T09:01:29Z\",\n            \"uid\": \"b24ac4d0-1737-43ac-b0b5-e9b58364587c\",\n            \"stepID\": \"2548cc7e-abd3-4a79-83a9-7344c8707d1f\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 200,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"a4993942-a615-4e0e-a153-d1a78230e751\",\n            \"date\": \"2025-09-10T09:29:24.153Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_a4993942-a615-4e0e-a153-d1a78230e751_72bf7d55-af2a-41ce-84fe-39a15dd88d8e\",\n            \"expiryDate\": \"2025-09-30T09:01:29Z\",\n            \"uid\": \"5e43d749-7a4e-4038-8056-d9732fd2715b\",\n            \"stepID\": \"2548cc7e-abd3-4a79-83a9-7344c8707d1f\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 200,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"0cde2cae-2d28-48a2-9947-dc56fb47d4ac\",\n            \"date\": \"2025-09-10T10:19:03.049Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_0cde2cae-2d28-48a2-9947-dc56fb47d4ac_f954e724-f134-45b8-b88e-38bb651f6f1c\",\n            \"expiryDate\": \"2025-09-30T09:01:29Z\",\n            \"uid\": \"5e1f59e0-bcb7-4c50-925a-580602ba1a27\",\n            \"stepID\": \"2548cc7e-abd3-4a79-83a9-7344c8707d1f\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 200,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"0cde2cae-2d28-48a2-9947-dc56fb47d4ac\",\n            \"date\": \"2025-09-10T10:19:06.720Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_0cde2cae-2d28-48a2-9947-dc56fb47d4ac_c25d3019-5365-47d3-bae5-91a1ba413fd7\",\n            \"expiryDate\": \"2025-09-30T09:01:29Z\",\n            \"uid\": \"bb7ca3e2-6ff9-4df4-9c75-8b2bbb1d5fb0\",\n            \"stepID\": \"2548cc7e-abd3-4a79-83a9-7344c8707d1f\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 200,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"0cde2cae-2d28-48a2-9947-dc56fb47d4ac\",\n            \"date\": \"2025-09-10T11:48:28.862Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_0cde2cae-2d28-48a2-9947-dc56fb47d4ac_8b756b93-249e-4ef0-8894-e7519f601ac6\",\n            \"expiryDate\": \"2025-09-30T09:01:29Z\",\n            \"uid\": \"229dde74-04c4-4a1f-8e91-d1c862f1432b\",\n            \"stepID\": \"2548cc7e-abd3-4a79-83a9-7344c8707d1f\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 200,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"0cde2cae-2d28-48a2-9947-dc56fb47d4ac\",\n            \"date\": \"2025-09-10T11:48:32.169Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_0cde2cae-2d28-48a2-9947-dc56fb47d4ac_20807fa1-9645-4bf5-a9e1-45a739011a9b\",\n            \"expiryDate\": \"2025-09-30T09:01:29Z\",\n            \"uid\": \"56668dbe-f268-4490-a3e6-6655e4b10709\",\n            \"stepID\": \"2548cc7e-abd3-4a79-83a9-7344c8707d1f\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"conversion\": 8,\n            \"points\": 200,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"0cde2cae-2d28-48a2-9947-dc56fb47d4ac\",\n            \"date\": \"2025-09-10T11:50:18.493Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_0cde2cae-2d28-48a2-9947-dc56fb47d4ac_13bb06e6-7f9f-49e7-ac55-5d926dc288e6\",\n            \"expiryDate\": \"2025-09-30T09:01:29Z\",\n            \"uid\": \"7e14d815-fc10-4bfa-b026-15cebbac7927\",\n            \"stepID\": \"2548cc7e-abd3-4a79-83a9-7344c8707d1f\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-24T11:29:23.741Z\",\n            \"transactionId\": \"0900000500010200p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-01T11:29:23.741Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-24T11:29:23.743Z\",\n            \"transactionId\": \"0900000500010200p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-01T11:29:23.743Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-24T11:29:23.739Z\",\n            \"transactionId\": \"0900000500010200p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-01T11:29:23.739Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-24T11:29:23.736Z\",\n            \"transactionId\": \"0900000500010200p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-01T11:29:23.736Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-24T11:29:23.737Z\",\n            \"transactionId\": \"0900000500010200p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-01T11:29:23.737Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-24T11:29:23.738Z\",\n            \"transactionId\": \"0900000500010200p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-01T11:29:23.738Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-24T11:29:23.743Z\",\n            \"transactionId\": \"0900000500010200p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-01T11:29:23.743Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-24T11:29:23.745Z\",\n            \"transactionId\": \"0900000500010200p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-01T11:29:23.745Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-24T11:29:23.746Z\",\n            \"transactionId\": \"0900000500010200p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-01T11:29:23.746Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-24T11:29:23.728Z\",\n            \"transactionId\": \"0900000500010200p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-01T11:29:23.728Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-24T11:33:48.616Z\",\n            \"transactionId\": \"0900000500010201p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-01T11:33:48.616Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-25T11:24:12.088Z\",\n            \"transactionId\": \"0900000500010202p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-02T11:24:12.088Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-25T11:30:23.252Z\",\n            \"transactionId\": \"0900000500010203p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-02T11:30:23.252Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-25T11:31:47.930Z\",\n            \"transactionId\": \"0900000500010204p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-02T11:31:47.930Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-25T11:31:47.892Z\",\n            \"transactionId\": \"0900000500010204p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-02T11:31:47.892Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-25T11:33:52.897Z\",\n            \"transactionId\": \"0900000500010205p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-02T11:33:52.897Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-25T11:33:52.781Z\",\n            \"transactionId\": \"0900000500010205p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-02T11:33:52.781Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-25T11:34:44.843Z\",\n            \"transactionId\": \"0900000500010206p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-02T11:34:44.843Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-25T11:35:03.694Z\",\n            \"transactionId\": \"0900000500010207p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-02T11:35:03.694Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-25T11:35:03.692Z\",\n            \"transactionId\": \"0900000500010207p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-02T11:35:03.692Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-25T11:35:54.217Z\",\n            \"transactionId\": \"0900000500010208p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-02T11:35:54.217Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-25T11:36:23.754Z\",\n            \"transactionId\": \"0900000500010209p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-02T11:36:23.754Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-25T11:38:34.085Z\",\n            \"transactionId\": \"0900000500010211p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-02T11:38:34.085Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"redeemed\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"client\": \"swan-test\",\n            \"storeID\": \"TEST\",\n            \"transactionId\": \"0900000500010212p\",\n            \"currency\": \"AED\",\n            \"value\": 10,\n            \"date\": \"2025-09-25T11:53:51.681Z\",\n            \"validProducts\": [\n                {\n                    \"stockNo\": \"59871\",\n                    \"redeemedPoints\": 20,\n                    \"redeemedPointsPerQuantity\": 20\n                },\n                {\n                    \"stockNo\": \"98711\",\n                    \"redeemedPoints\": 55,\n                    \"redeemedPointsPerQuantity\": 11\n                },\n                {\n                    \"stockNo\": \"12321245677\",\n                    \"redeemedPoints\": 25,\n                    \"redeemedPointsPerQuantity\": 25\n                }\n            ],\n            \"reinstatedPoints\": [\n                {\n                    \"points\": 100,\n                    \"date\": \"2025-09-25T12:03:20.188Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-25T11:59:12.500Z\",\n            \"transactionId\": \"0900000500010212p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-02T11:59:12.500Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 796,\n                    \"date\": \"2025-09-25T12:03:20.053Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"conversion\": 0.1,\n            \"points\": 50,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"b2160e69-e77e-41f2-a070-50b297da3701\",\n            \"date\": \"2025-09-25T11:59:22.698Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_b2160e69-e77e-41f2-a070-50b297da3701_5ec61e2e-529f-40d5-84a8-f7d6c81f00e9\",\n            \"expiryDate\": \"2025-09-30T11:40:49Z\",\n            \"uid\": \"0f76d97c-4cc9-4d90-a9ae-425d0ca0f8d7\",\n            \"stepID\": \"01d2d3b2-d974-469e-9c86-6689c2dea777\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"redeemed\",\n            \"purpose\": \"transaction\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"client\": \"swan-test\",\n            \"storeID\": \"TEST\",\n            \"transactionId\": \"0900000500010213p\",\n            \"currency\": \"AED\",\n            \"value\": 10,\n            \"date\": \"2025-09-25T12:07:22.981Z\",\n            \"validProducts\": [\n                {\n                    \"stockNo\": \"59871\",\n                    \"redeemedPoints\": 20,\n                    \"redeemedPointsPerQuantity\": 20\n                },\n                {\n                    \"stockNo\": \"98711\",\n                    \"redeemedPoints\": 55,\n                    \"redeemedPointsPerQuantity\": 11\n                },\n                {\n                    \"stockNo\": \"12321245677\",\n                    \"redeemedPoints\": 25,\n                    \"redeemedPointsPerQuantity\": 25\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"redeemed\",\n            \"purpose\": \"transaction\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"client\": \"swan-test\",\n            \"storeID\": \"TEST\",\n            \"transactionId\": \"0900000500010214p\",\n            \"currency\": \"AED\",\n            \"value\": 10,\n            \"date\": \"2025-09-25T12:08:12.984Z\",\n            \"validProducts\": [\n                {\n                    \"stockNo\": \"59871\",\n                    \"redeemedPoints\": 20,\n                    \"redeemedPointsPerQuantity\": 20\n                },\n                {\n                    \"stockNo\": \"98711\",\n                    \"redeemedPoints\": 55,\n                    \"redeemedPointsPerQuantity\": 11\n                },\n                {\n                    \"stockNo\": \"12321245677\",\n                    \"redeemedPoints\": 25,\n                    \"redeemedPointsPerQuantity\": 25\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 796,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-25T12:08:28.673Z\",\n            \"transactionId\": \"0900000500010214p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-02T12:08:28.673Z\"\n        },\n        {\n            \"conversion\": 0.1,\n            \"points\": 50,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"b2160e69-e77e-41f2-a070-50b297da3701\",\n            \"date\": \"2025-09-25T12:08:36.777Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_b2160e69-e77e-41f2-a070-50b297da3701_b1d64760-9c75-40a6-98f9-33f859137eb2\",\n            \"expiryDate\": \"2025-09-30T11:40:49Z\",\n            \"uid\": \"cbd45785-d7a4-4a22-b622-8136d3b918fb\",\n            \"stepID\": \"01d2d3b2-d974-469e-9c86-6689c2dea777\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"redeemed\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"client\": \"swan-test\",\n            \"storeID\": \"TEST\",\n            \"transactionId\": \"0900000500010215p\",\n            \"currency\": \"AED\",\n            \"value\": 10,\n            \"date\": \"2025-09-25T12:17:32.521Z\",\n            \"validProducts\": [\n                {\n                    \"stockNo\": \"59871\",\n                    \"redeemedPoints\": 20,\n                    \"redeemedPointsPerQuantity\": 20\n                },\n                {\n                    \"stockNo\": \"98711\",\n                    \"redeemedPoints\": 55,\n                    \"redeemedPointsPerQuantity\": 11\n                },\n                {\n                    \"stockNo\": \"12321245677\",\n                    \"redeemedPoints\": 25,\n                    \"redeemedPointsPerQuantity\": 25\n                }\n            ],\n            \"reinstatedPoints\": [\n                {\n                    \"points\": 100,\n                    \"date\": \"2025-09-25T12:20:32.784Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-25T12:17:45.982Z\",\n            \"transactionId\": \"0900000500010215p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-02T12:17:45.982Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 796,\n                    \"date\": \"2025-09-25T12:20:29.485Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"conversion\": 0.1,\n            \"points\": 0,\n            \"pointsOnHold\": null,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"7b371d89-d9d7-4961-acd2-8bbc4ee135d1\",\n            \"date\": \"2025-09-25T12:18:00.433Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"0900000500010215p\",\n            \"expiryDate\": \"2025-09-30T11:40:49Z\",\n            \"uid\": \"f73e0dc0-3e2b-4f86-ace8-540564646d7d\",\n            \"stepID\": \"01d2d3b2-d974-469e-9c86-6689c2dea777\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 150,\n                    \"date\": \"2025-09-25T12:20:29.485Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 33.335,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-25T12:22:09.516Z\",\n            \"transactionId\": \"0900000500010217p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-02T12:22:09.516Z\"\n        },\n        {\n            \"conversion\": 0.1,\n            \"points\": 100,\n            \"pointsOnHold\": null,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"7b371d89-d9d7-4961-acd2-8bbc4ee135d1\",\n            \"date\": \"2025-09-25T12:22:56.021Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"0900000500010217p\",\n            \"expiryDate\": \"2025-09-30T11:40:49Z\",\n            \"uid\": \"78d4f81c-e462-415e-b9d7-254f7500c306\",\n            \"stepID\": \"01d2d3b2-d974-469e-9c86-6689c2dea777\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 816,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-25T12:59:58.525Z\",\n            \"transactionId\": \"0900000500010219p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-09-30T12:47:00.481Z\",\n            \"loyaltyRewardId\": \"cb719fff-818b-465d-91f4-c803acc0f69d\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 1592,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-09-25T13:09:41.423Z\",\n            \"transactionId\": \"0900000500010220p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-02T13:09:41.423Z\"\n        },\n        {\n            \"conversion\": 0.1,\n            \"points\": 150,\n            \"pointsOnHold\": null,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"7b371d89-d9d7-4961-acd2-8bbc4ee135d1\",\n            \"date\": \"2025-09-25T13:10:26.081Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"0900000500010220p\",\n            \"expiryDate\": \"2025-09-30T11:40:49Z\",\n            \"uid\": \"ebdaf8fd-cf57-4a5f-a1bd-5eb5658029a4\",\n            \"stepID\": \"01d2d3b2-d974-469e-9c86-6689c2dea777\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 960,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-10-03T10:25:39.354Z\",\n            \"transactionId\": \"0900000500010151p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-10T10:25:39.354Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-10-06T08:06:22.784Z\",\n            \"transactionId\": \"0900000500010152p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-13T08:06:22.784Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 1600,\n                    \"date\": \"2025-10-06T08:10:12.566Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-10-06T08:21:30.270Z\",\n            \"transactionId\": \"0900000500010223p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-13T08:21:30.270Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 1600,\n                    \"date\": \"2025-10-06T08:23:20.471Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"redeemed\",\n            \"purpose\": \"transaction\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"client\": \"swan-test\",\n            \"storeID\": \"TEST\",\n            \"transactionId\": \"0900000500010260p\",\n            \"currency\": \"AED\",\n            \"value\": 10,\n            \"date\": \"2025-10-08T13:24:59.631Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"redeemed\",\n            \"purpose\": \"transaction\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"client\": \"swan-test\",\n            \"storeID\": \"TEST\",\n            \"transactionId\": \"0900000500010261p\",\n            \"currency\": \"AED\",\n            \"value\": 10,\n            \"date\": \"2025-10-08T13:27:16.210Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"redeemed\",\n            \"purpose\": \"transaction\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"client\": \"swan-test\",\n            \"storeID\": \"TEST\",\n            \"transactionId\": \"0900000500010262p\",\n            \"currency\": \"AED\",\n            \"value\": 10,\n            \"date\": \"2025-10-08T13:28:26.092Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"redeemed\",\n            \"purpose\": \"transaction\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"client\": \"swan-test\",\n            \"storeID\": \"TEST\",\n            \"transactionId\": \"0900000500010263p\",\n            \"currency\": \"AED\",\n            \"value\": 10,\n            \"date\": \"2025-10-08T13:31:02.738Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"redeemed\",\n            \"purpose\": \"transaction\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"client\": \"swan-test\",\n            \"storeID\": \"TEST\",\n            \"transactionId\": \"0900000500010264p\",\n            \"currency\": \"AED\",\n            \"value\": 10,\n            \"date\": \"2025-10-08T13:32:08.988Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"redeemed\",\n            \"purpose\": \"transaction\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"client\": \"swan-test\",\n            \"storeID\": \"TEST\",\n            \"transactionId\": \"0900000500010265p\",\n            \"currency\": \"AED\",\n            \"value\": 10,\n            \"date\": \"2025-10-08T13:39:46.718Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-10-16T11:34:08.598Z\",\n            \"transactionId\": \"0900000500010266p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-23T11:34:08.598Z\"\n        },\n        {\n            \"conversion\": 0.1,\n            \"points\": 100,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"43451ba0-b83c-4146-928d-1ca4c1387a34\",\n            \"date\": \"2025-10-16T13:51:27.266Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_43451ba0-b83c-4146-928d-1ca4c1387a34_08bd06bf-6d45-4e14-ab8c-43f400edcbcb\",\n            \"expiryDate\": \"2025-10-31T13:48:19Z\",\n            \"uid\": \"6397e095-4325-4fe9-bf55-a7927cf83676\",\n            \"stepID\": \"f371a100-46a0-4483-a96c-45c2e4d69e91\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-10-16T14:05:41.141Z\",\n            \"transactionId\": \"0900000500010275p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-23T14:05:41.141Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-10-16T14:08:35.725Z\",\n            \"transactionId\": \"0900000500010276p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-23T14:08:35.725Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 800,\n                    \"date\": \"2025-10-16T14:10:12.389Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-10-17T07:02:41.992Z\",\n            \"transactionId\": \"0900000500010280p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-24T07:02:41.992Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 800,\n                    \"date\": \"2025-10-17T07:22:02.077Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-10-21T10:34:46.137Z\",\n            \"transactionId\": \"0900000500010300p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-28T10:34:46.137Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 800,\n                    \"date\": \"2025-10-21T10:37:36.244Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-10-21T11:56:34.978Z\",\n            \"transactionId\": \"0900000500010306p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-28T11:56:34.978Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 800,\n                    \"date\": \"2025-10-21T11:57:40.732Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-10-22T05:49:33.506Z\",\n            \"transactionId\": \"0900000500010317p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-29T05:49:33.506Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-10-22T05:51:58.034Z\",\n            \"transactionId\": \"0900000500010318p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-29T05:51:58.034Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-10-23T07:18:43.139Z\",\n            \"transactionId\": \"0900000500010330p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-30T07:18:43.139Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-10-23T13:26:15.009Z\",\n            \"transactionId\": \"0900000500010335p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-30T13:26:15.009Z\"\n        },\n        {\n            \"conversion\": 0.01,\n            \"points\": 200,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"f1640b8e-cfca-423d-8fc0-fa19bf017a08\",\n            \"date\": \"2025-10-24T11:19:47.224Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_f1640b8e-cfca-423d-8fc0-fa19bf017a08_5dd31ee8-ff36-4d28-9e55-08c111da3948\",\n            \"expiryDate\": \"2025-10-31T10:13:21Z\",\n            \"uid\": \"6dd2e4b9-f47a-4c92-8cc8-ba552c21de8d\",\n            \"stepID\": \"76e6c908-ed21-4b00-8ec1-29ccb5264107\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"conversion\": 0.01,\n            \"points\": 0,\n            \"pointsOnHold\": null,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"f13c04b9-26c6-4077-940b-6a41f01fb5c9\",\n            \"date\": \"2025-10-24T11:42:22.488Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"0900000500010355p\",\n            \"expiryDate\": \"2025-10-31T10:13:21Z\",\n            \"uid\": \"5f09023f-49d7-455d-aa4d-66363fe27afb\",\n            \"stepID\": \"76e6c908-ed21-4b00-8ec1-29ccb5264107\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 200,\n                    \"date\": \"2025-10-24T11:45:49.293Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-10-24T12:11:39.619Z\",\n            \"transactionId\": \"0900000500010360p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-10-31T12:11:39.619Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 800,\n                    \"date\": \"2025-10-24T12:14:59.732Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"conversion\": 0.01,\n            \"points\": 0,\n            \"pointsOnHold\": null,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"f13c04b9-26c6-4077-940b-6a41f01fb5c9\",\n            \"date\": \"2025-10-24T12:12:03.458Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"0900000500010360p\",\n            \"expiryDate\": \"2025-10-31T10:13:21Z\",\n            \"uid\": \"fb5f3aa2-0a88-446a-a080-a90bd32b0d85\",\n            \"stepID\": \"76e6c908-ed21-4b00-8ec1-29ccb5264107\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 200,\n                    \"date\": \"2025-10-24T12:14:59.732Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"conversion\": 0.01,\n            \"points\": 100,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"608a91d9-fe76-4264-b3d7-06454feaebc1\",\n            \"date\": \"2025-10-31T09:53:41.464Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_608a91d9-fe76-4264-b3d7-06454feaebc1_39d79425-472c-42b2-aaf9-6fd7a8fc9682\",\n            \"expiryDate\": \"2025-11-01T09:44:26Z\",\n            \"uid\": \"c33cd96a-0353-4381-b347-a643594c4cf1\",\n            \"stepID\": \"0f9f0588-e20e-4ce3-932c-f1328873dec0\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"conversion\": 0.01,\n            \"points\": 200,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"24dd20dc-39f8-4d85-b3d6-3302db6b56e0\",\n            \"date\": \"2025-10-31T11:59:10.182Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_24dd20dc-39f8-4d85-b3d6-3302db6b56e0_8bb4f9b5-9518-4167-a873-eb5a28c9fe84\",\n            \"expiryDate\": \"2025-11-30T11:54:38Z\",\n            \"uid\": \"462c9141-b4ad-4e25-9200-7422a3fe849e\",\n            \"stepID\": \"50801b27-faa4-4161-822e-5bff84fd1acc\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"conversion\": 0.01,\n            \"points\": 200,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"4b383600-5fa7-4882-b5bc-c6fe6bfd0035\",\n            \"date\": \"2025-10-31T19:13:40.843Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_4b383600-5fa7-4882-b5bc-c6fe6bfd0035_76dccc1c-7acd-4e16-a95d-9b03ca8335ef\",\n            \"expiryDate\": \"2025-11-29T19:10:08Z\",\n            \"uid\": \"ce8f8395-a06a-42ef-b025-31f92c61b14d\",\n            \"stepID\": \"c7a32220-37f4-404a-90ed-6fbc5a1c82e1\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-03T08:39:15.817Z\",\n            \"transactionId\": \"0900000500010382p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-11-10T08:39:15.817Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-03T08:41:04.445Z\",\n            \"transactionId\": \"0900000500010383p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-11-10T08:41:04.445Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-03T08:41:29.516Z\",\n            \"transactionId\": \"0900000500010385p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-11-10T08:41:29.516Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-03T11:18:29.761Z\",\n            \"transactionId\": \"0900000500010393p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-11-10T11:18:29.761Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 800,\n                    \"date\": \"2025-11-03T11:20:54.859Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-03T12:46:11.496Z\",\n            \"transactionId\": \"0900000500010395p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-11-10T12:46:11.496Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-04T08:42:56.704Z\",\n            \"transactionId\": \"0900000500010404p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-11-11T08:42:56.704Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 800,\n                    \"date\": \"2025-11-04T08:44:56.195Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-04T08:48:37.892Z\",\n            \"transactionId\": \"0900000500010407p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-11-11T08:48:37.892Z\"\n        },\n        {\n            \"conversion\": 0.01,\n            \"points\": 10,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"e2a3db19-5aa3-4d82-bf6e-64a1e180265c\",\n            \"date\": \"2025-11-07T05:08:22.881Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_e2a3db19-5aa3-4d82-bf6e-64a1e180265c_b8c18e4e-d209-4c8d-b51b-b3496cf70cad\",\n            \"expiryDate\": \"2025-11-05T05:25:14Z\",\n            \"uid\": \"ffddd711-f951-4a74-9ea9-824359e92593\",\n            \"stepID\": \"e90bd55c-52c4-4aa3-8af9-47e37582b77a\",\n            \"variation\": \"\",\n            \"loyaltyProgramId\": \"Loyalytics-id1\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-12T06:16:47.336Z\",\n            \"transactionId\": \"0900000500010410p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-11-19T06:16:47.336Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 800,\n                    \"date\": \"2025-11-12T06:47:17.211Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-12T08:20:28.509Z\",\n            \"transactionId\": \"0900000500010412p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"1009710\",\n            \"expiryDate\": \"2025-11-19T08:20:28.509Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-13T20:54:36.781Z\",\n            \"transactionId\": \"0900000500010413p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-11-20T20:54:36.781Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-13T20:57:11.177Z\",\n            \"transactionId\": \"0900000500010414p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-11-20T20:57:11.177Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T20:54:00.185Z\",\n            \"transactionId\": \"0900000500010415p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-11-24T20:54:00.185Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T20:59:10.874Z\",\n            \"transactionId\": \"0900000500010416p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-11-24T20:59:10.874Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 35.38,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-11T11:22:42.000Z\",\n            \"transactionId\": \"11701103239920251111\",\n            \"storeID\": \"11701\",\n            \"storeTerminalID\": \"103\",\n            \"cashierId\": \"10410848\",\n            \"expiryDate\": \"2025-11-18T11:22:42.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 34.38,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-11T00:59:01.000Z\",\n            \"transactionId\": \"11003104397120251111\",\n            \"storeID\": \"11003\",\n            \"storeTerminalID\": \"104\",\n            \"cashierId\": \"10414884\",\n            \"expiryDate\": \"2025-11-18T00:59:01.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 55.575,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-11T11:11:48.000Z\",\n            \"transactionId\": \"11404103366920251111\",\n            \"storeID\": \"11404\",\n            \"storeTerminalID\": \"103\",\n            \"cashierId\": \"10406720\",\n            \"expiryDate\": \"2025-11-18T11:11:48.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 94.76,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T20:13:26.706Z\",\n            \"transactionId\": \"016017A-DAN02-1763410325567\",\n            \"storeID\": \"016017A\",\n            \"storeTerminalID\": \"DAN02\",\n            \"cashierId\": \"016061\",\n            \"expiryDate\": \"2025-11-24T20:13:26.706Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 26.105,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T20:12:20.713Z\",\n            \"transactionId\": \"016020B-AKC01-1763410287743\",\n            \"storeID\": \"016020B\",\n            \"storeTerminalID\": \"AKC01\",\n            \"cashierId\": \"103353\",\n            \"expiryDate\": \"2025-11-24T20:12:20.713Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 59,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T20:12:10.156Z\",\n            \"transactionId\": \"016078A-SDF02-1763409793926\",\n            \"storeID\": \"016078A\",\n            \"storeTerminalID\": \"SDF02\",\n            \"cashierId\": \"101030\",\n            \"expiryDate\": \"2025-11-24T20:12:10.156Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 11,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T20:11:32.965Z\",\n            \"transactionId\": \"016068A-UCO02-1763410271999\",\n            \"storeID\": \"016068A\",\n            \"storeTerminalID\": \"UCO02\",\n            \"cashierId\": \"103365\",\n            \"expiryDate\": \"2025-11-24T20:11:32.965Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 37.25,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T20:09:50.385Z\",\n            \"transactionId\": \"016094A-MWZ02-1763410146024\",\n            \"storeID\": \"016094A\",\n            \"storeTerminalID\": \"MWZ02\",\n            \"cashierId\": \"010838\",\n            \"expiryDate\": \"2025-11-24T20:09:50.385Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 884400,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T10:53:44.000Z\",\n            \"transactionId\": \"000078802\",\n            \"storeID\": \"10037\",\n            \"storeTerminalID\": \"ecom\",\n            \"cashierId\": \"ecom\",\n            \"expiryDate\": \"2025-11-24T10:53:44.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 2386937,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T10:51:54.000Z\",\n            \"transactionId\": \"1007200000P0420000023132\",\n            \"storeID\": \"10072\",\n            \"storeTerminalID\": \"P0420\",\n            \"cashierId\": \"S10072-0000000010\",\n            \"expiryDate\": \"2025-11-24T10:51:54.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 207928,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T10:20:37.000Z\",\n            \"transactionId\": \"1007200000P0420000023126\",\n            \"storeID\": \"10072\",\n            \"storeTerminalID\": \"P0420\",\n            \"cashierId\": \"S10072-0000000010\",\n            \"expiryDate\": \"2025-11-24T10:20:37.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 214054,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T10:55:40.000Z\",\n            \"transactionId\": \"1007200000P0420000023133\",\n            \"storeID\": \"10072\",\n            \"storeTerminalID\": \"P0420\",\n            \"cashierId\": \"S10072-0000000010\",\n            \"expiryDate\": \"2025-11-24T10:55:40.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 83446,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T10:17:09.000Z\",\n            \"transactionId\": \"1007200000P0420000023125\",\n            \"storeID\": \"10072\",\n            \"storeTerminalID\": \"P0420\",\n            \"cashierId\": \"S10072-0000000010\",\n            \"expiryDate\": \"2025-11-24T10:17:09.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 9.52,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T11:01:28.000Z\",\n            \"transactionId\": \"202511172020011675\",\n            \"storeID\": \"E202\",\n            \"storeTerminalID\": \"001\",\n            \"cashierId\": \"0377\",\n            \"expiryDate\": \"2025-11-24T11:01:28.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 17.285,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T11:01:28.000Z\",\n            \"transactionId\": \"202511171630057882\",\n            \"storeID\": \"S163\",\n            \"storeTerminalID\": \"005\",\n            \"cashierId\": \"0027\",\n            \"expiryDate\": \"2025-11-24T11:01:28.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 84.805,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T11:01:28.000Z\",\n            \"transactionId\": \"202511171640040739\",\n            \"storeID\": \"S164\",\n            \"storeTerminalID\": \"004\",\n            \"cashierId\": \"0038\",\n            \"expiryDate\": \"2025-11-24T11:01:28.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 7.365,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T11:01:33.000Z\",\n            \"transactionId\": \"202511171100020474\",\n            \"storeID\": \"S110\",\n            \"storeTerminalID\": \"002\",\n            \"cashierId\": \"0086\",\n            \"expiryDate\": \"2025-11-24T11:01:33.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-18T10:48:46.639Z\",\n            \"transactionId\": \"0900000500010424p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-11-25T10:48:46.639Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 800,\n                    \"date\": \"2025-11-18T10:50:08.790Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 650,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-18T10:50:56.732Z\",\n            \"transactionId\": \"0900000500010426p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-11-25T10:50:56.732Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 150,\n                    \"date\": \"2025-11-18T10:54:23.555Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 650,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-18T11:07:57.745Z\",\n            \"transactionId\": \"0900000500010428p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-11-25T11:07:57.745Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 150,\n                    \"date\": \"2025-11-18T11:09:40.220Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 650,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-18T11:09:59.998Z\",\n            \"transactionId\": \"0900000500010430p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-11-25T11:09:59.998Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 150,\n                    \"date\": \"2025-11-18T11:11:53.226Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 650,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-18T11:20:49.714Z\",\n            \"transactionId\": \"0900000500010435p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-11-25T11:20:49.714Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 150,\n                    \"date\": \"2025-11-18T11:23:13.089Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 650,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-19T07:47:33.930Z\",\n            \"transactionId\": \"0900000500010440p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-11-26T07:47:33.930Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 150,\n                    \"date\": \"2025-11-19T07:50:00.512Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-19T07:50:34.578Z\",\n            \"transactionId\": \"0900000500010442p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-11-26T07:50:34.578Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 650,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-19T07:58:13.021Z\",\n            \"transactionId\": \"0900000500010450p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-11-26T07:58:13.021Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 150,\n                    \"date\": \"2025-11-19T07:59:13.439Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"bonusPoints\",\n            \"points\": 10.22,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-20T06:03:08.878Z\",\n            \"transactionId\": \"bonusPoints_3ee50ab0-8254-4303-b7a0-19c3a7995d9c\",\n            \"storeID\": \"online\",\n            \"storeTerminalID\": \"online\",\n            \"cashierId\": \"online\",\n            \"expiryDate\": \"2025-11-27T06:03:08.878Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-24T12:15:36.647Z\",\n            \"transactionId\": \"0900000500010461p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-12-01T12:15:36.647Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-24T12:49:12.680Z\",\n            \"transactionId\": \"0900000500010462p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-12-01T12:49:12.680Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-26T20:21:07.781Z\",\n            \"transactionId\": \"0900000500010465p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": null\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-27T08:47:36.624Z\",\n            \"transactionId\": \"0900000500010467p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-12-04T08:47:36.624Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-27T20:28:39.938Z\",\n            \"transactionId\": \"0900000500010468p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-12-04T20:28:39.938Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-27T20:31:14.087Z\",\n            \"transactionId\": \"0900000500010469p\",\n            \"storeID\": \"SPF2032\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-12-04T20:31:14.087Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-27T20:31:46.217Z\",\n            \"transactionId\": \"0900000500010470p\",\n            \"storeID\": \"\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-12-04T20:31:46.217Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-27T20:34:15.507Z\",\n            \"transactionId\": \"0900000500010471p\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-12-04T20:34:15.507Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-27T20:35:55.227Z\",\n            \"transactionId\": \"0900000500010472p\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-12-04T20:35:55.227Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 800,\n                    \"date\": \"2025-11-27T20:38:34.359Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 800,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-27T20:39:03.557Z\",\n            \"transactionId\": \"0900000500010474p\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-12-04T20:39:03.557Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 7.365,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T05:31:33.000Z\",\n            \"transactionId\": \"202511171100020777\",\n            \"storeID\": \"S110\",\n            \"storeTerminalID\": \"002\",\n            \"cashierId\": \"0086\",\n            \"expiryDate\": \"2025-11-24T05:31:33.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 84.805,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T05:31:28.000Z\",\n            \"transactionId\": \"202511171640040740\",\n            \"storeID\": \"S164\",\n            \"storeTerminalID\": \"004\",\n            \"cashierId\": \"0038\",\n            \"expiryDate\": \"2025-11-24T05:31:28.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 17.285,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T05:31:28.000Z\",\n            \"transactionId\": \"202511171630057884\",\n            \"storeID\": \"S163\",\n            \"storeTerminalID\": \"005\",\n            \"cashierId\": \"0027\",\n            \"expiryDate\": \"2025-11-24T05:31:28.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 9.52,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T05:31:28.000Z\",\n            \"transactionId\": \"202511172020011676\",\n            \"storeID\": \"E202\",\n            \"storeTerminalID\": \"001\",\n            \"cashierId\": \"0377\",\n            \"expiryDate\": \"2025-11-24T05:31:28.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 884400,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T05:23:44.000Z\",\n            \"transactionId\": \"000078804\",\n            \"storeID\": \"10037\",\n            \"storeTerminalID\": \"ecom\",\n            \"cashierId\": \"ecom\",\n            \"expiryDate\": \"2025-11-24T05:23:44.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 2386937,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T10:51:54.000Z\",\n            \"transactionId\": \"1007200000P0420000023135\",\n            \"storeID\": \"10072\",\n            \"storeTerminalID\": \"P0420\",\n            \"cashierId\": \"S10072-0000000010\",\n            \"expiryDate\": \"2025-11-24T10:51:54.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 207928,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T10:20:37.000Z\",\n            \"transactionId\": \"1007200000P0420000023127\",\n            \"storeID\": \"10072\",\n            \"storeTerminalID\": \"P0420\",\n            \"cashierId\": \"S10072-0000000010\",\n            \"expiryDate\": \"2025-11-24T10:20:37.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 214054,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T10:55:40.000Z\",\n            \"transactionId\": \"1007200000P0420000023137\",\n            \"storeID\": \"10072\",\n            \"storeTerminalID\": \"P0420\",\n            \"cashierId\": \"S10072-0000000010\",\n            \"expiryDate\": \"2025-11-24T10:55:40.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 83446,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T10:17:09.000Z\",\n            \"transactionId\": \"1007200000P04200000231299\",\n            \"storeID\": \"10072\",\n            \"storeTerminalID\": \"P0420\",\n            \"cashierId\": \"S10072-0000000010\",\n            \"expiryDate\": \"2025-11-24T10:17:09.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 94.76,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T20:13:26.706Z\",\n            \"transactionId\": \"016017A-DAN02-1763410325588\",\n            \"storeID\": \"016017A\",\n            \"storeTerminalID\": \"DAN02\",\n            \"cashierId\": \"016061\",\n            \"expiryDate\": \"2025-11-24T20:13:26.706Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 26.105,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T20:12:20.713Z\",\n            \"transactionId\": \"016020B-AKC01-1763410288888\",\n            \"storeID\": \"016020B\",\n            \"storeTerminalID\": \"AKC01\",\n            \"cashierId\": \"103353\",\n            \"expiryDate\": \"2025-11-24T20:12:20.713Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 59,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T20:12:10.156Z\",\n            \"transactionId\": \"016078A-SDF02-1763409793928882\",\n            \"storeID\": \"016078A\",\n            \"storeTerminalID\": \"SDF02\",\n            \"cashierId\": \"101030\",\n            \"expiryDate\": \"2025-11-24T20:12:10.156Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 11,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T20:11:32.965Z\",\n            \"transactionId\": \"016068A-UCO02-1763410271999u7271\",\n            \"storeID\": \"016068A\",\n            \"storeTerminalID\": \"UCO02\",\n            \"cashierId\": \"103365\",\n            \"expiryDate\": \"2025-11-24T20:11:32.965Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 37.25,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T20:09:50.385Z\",\n            \"transactionId\": \"016094A-MWZ02-17634101460241\",\n            \"storeID\": \"016094A\",\n            \"storeTerminalID\": \"MWZ02\",\n            \"cashierId\": \"010838\",\n            \"expiryDate\": \"2025-11-24T20:09:50.385Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 35.38,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-11T11:22:42.000Z\",\n            \"transactionId\": \"117011032399202511132\",\n            \"storeID\": \"11701\",\n            \"storeTerminalID\": \"103\",\n            \"cashierId\": \"10410848\",\n            \"expiryDate\": \"2025-11-18T11:22:42.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 34.38,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-11T00:59:01.000Z\",\n            \"transactionId\": \"11003104397120251112\",\n            \"storeID\": \"11003\",\n            \"storeTerminalID\": \"104\",\n            \"cashierId\": \"10414884\",\n            \"expiryDate\": \"2025-11-18T00:59:01.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 55.575,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-11T11:11:48.000Z\",\n            \"transactionId\": \"11404103366920251113\",\n            \"storeID\": \"11404\",\n            \"storeTerminalID\": \"103\",\n            \"cashierId\": \"10406720\",\n            \"expiryDate\": \"2025-11-18T11:11:48.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-27T21:13:09.692Z\",\n            \"transactionId\": \"0900000500010475p\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-12-04T21:13:09.692Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 800,\n                    \"date\": \"2025-11-27T21:13:46.579Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 650,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-27T21:14:03.415Z\",\n            \"transactionId\": \"0900000500010477p\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-12-04T21:14:03.415Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 150,\n                    \"date\": \"2025-11-27T21:15:03.339Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-28T08:22:45.116Z\",\n            \"transactionId\": \"0900000500010480p\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-12-05T08:22:45.116Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 800,\n                    \"date\": \"2025-11-28T08:23:35.412Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"conversion\": 0.01,\n            \"points\": 300,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"cc4ea903-498a-4508-aa19-6ed99a94d1b9\",\n            \"date\": \"2025-11-28T08:23:41.708Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_cc4ea903-498a-4508-aa19-6ed99a94d1b9_87ae3767-1bf5-458a-8328-bd25699df304\",\n            \"expiryDate\": \"\",\n            \"uid\": \"42d9017c-f5ce-467b-b135-187d511bd7ae\",\n            \"stepID\": \"bfe26a08-3c68-4a8a-9a84-66bf8fe235bd\",\n            \"variation\": \"\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 650,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-28T08:24:32.834Z\",\n            \"transactionId\": \"0900000500010482p\",\n            \"storeID\": \"TEST_SWAN_STORE_001\",\n            \"storeTerminalID\": \"SPF203201\",\n            \"cashierId\": \"\",\n            \"expiryDate\": \"2025-12-05T08:24:32.834Z\",\n            \"returnedPoints\": [\n                {\n                    \"points\": 150,\n                    \"date\": \"2025-11-28T08:26:24.741Z\",\n                    \"storeID\": \"SPF2032\"\n                }\n            ]\n        },\n        {\n            \"conversion\": 0.01,\n            \"points\": 300,\n            \"mobile\": \"919836892615\",\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"journeyPoints\",\n            \"journeyType\": \"masterJourney\",\n            \"journeyId\": \"cc4ea903-498a-4508-aa19-6ed99a94d1b9\",\n            \"date\": \"2025-11-28T08:26:29.673Z\",\n            \"client\": \"swan-test\",\n            \"CDID\": \"CING-00000167-885777\",\n            \"storeID\": \"Swan\",\n            \"storeTerminalID\": \"JourneyBuilder\",\n            \"transactionId\": \"JBPoints_ING_cc4ea903-498a-4508-aa19-6ed99a94d1b9_fc6e44c2-fab7-4fda-9702-b3cd579cd247\",\n            \"expiryDate\": \"\",\n            \"uid\": \"61eb5ef7-d9b5-4ca3-a04a-36a72c87683a\",\n            \"stepID\": \"bfe26a08-3c68-4a8a-9a84-66bf8fe235bd\",\n            \"variation\": \"\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 35.38,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-11T11:22:42.000Z\",\n            \"transactionId\": \"117011032399202511135\",\n            \"storeID\": \"11701\",\n            \"storeTerminalID\": \"103\",\n            \"cashierId\": \"10410848\",\n            \"expiryDate\": \"2025-11-18T11:22:42.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 94.76,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T20:13:26.706Z\",\n            \"transactionId\": \"016017A-DAN02-18882818818211\",\n            \"storeID\": \"016017A\",\n            \"storeTerminalID\": \"DAN02\",\n            \"cashierId\": \"016061\",\n            \"expiryDate\": \"2025-11-24T20:13:26.706Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 884400,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T05:23:44.000Z\",\n            \"transactionId\": \"4422113233\",\n            \"storeID\": \"10037\",\n            \"storeTerminalID\": \"ecom\",\n            \"cashierId\": \"ecom\",\n            \"expiryDate\": \"2025-11-24T05:23:44.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 9.52,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T05:31:28.000Z\",\n            \"transactionId\": \"202511172020011679\",\n            \"storeID\": \"E202\",\n            \"storeTerminalID\": \"001\",\n            \"cashierId\": \"0377\",\n            \"expiryDate\": \"2025-11-24T05:31:28.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"issued\",\n            \"purpose\": \"transaction\",\n            \"points\": 9.52,\n            \"CDID\": \"CING-00000167-885777\",\n            \"mobile\": \"919836892615\",\n            \"client\": \"swan-test\",\n            \"date\": \"2025-11-17T05:31:28.000Z\",\n            \"transactionId\": \"202511172020011680\",\n            \"storeID\": \"E202\",\n            \"storeTerminalID\": \"001\",\n            \"cashierId\": \"0377\",\n            \"expiryDate\": \"2025-11-24T05:31:28.000Z\"\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"redeemed\",\n            \"purpose\": \"transaction\",\n            \"points\": 0,\n            \"CDID\": \"CING-00000167-885777\",\n            \"client\": \"swan-test\",\n            \"storeID\": \"TEST\",\n            \"transactionId\": \"132424341-1342414\",\n            \"currency\": \"AED\",\n            \"value\": 1,\n            \"date\": \"2025-12-04T08:03:17.110Z\",\n            \"validProducts\": [\n                {\n                    \"stockNo\": \"59871\",\n                    \"redeemedPoints\": 20,\n                    \"redeemedPointsPerQuantity\": 20\n                },\n                {\n                    \"stockNo\": \"98711\",\n                    \"redeemedPoints\": 55,\n                    \"redeemedPointsPerQuantity\": 11\n                },\n                {\n                    \"stockNo\": \"12321245677\",\n                    \"redeemedPoints\": 25,\n                    \"redeemedPointsPerQuantity\": 25\n                }\n            ],\n            \"reinstatedPoints\": [\n                {\n                    \"points\": 100,\n                    \"date\": \"2025-12-04T08:06:13.119Z\"\n                }\n            ]\n        },\n        {\n            \"type\": \"pointsLedger\",\n            \"action\": \"redeemed\",\n            \"purpose\": \"transaction\",\n            \"points\": 100,\n            \"CDID\": \"CING-00000167-885777\",\n            \"client\": \"swan-test\",\n            \"storeID\": \"TEST\",\n            \"transactionId\": \"132424341-1342414\",\n            \"currency\": \"AED\",\n            \"value\": 1,\n            \"date\": \"2025-12-04T13:50:01.868Z\",\n            \"validProducts\": [\n                {\n                    \"stockNo\": \"59871\",\n                    \"redeemedPoints\": 20,\n                    \"redeemedPointsPerQuantity\": 20\n                },\n                {\n                    \"stockNo\": \"98711\",\n                    \"redeemedPoints\": 55,\n                    \"redeemedPointsPerQuantity\": 11\n                },\n                {\n                    \"stockNo\": \"12321245677\",\n                    \"redeemedPoints\": 25,\n                    \"redeemedPointsPerQuantity\": 25\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"71c7f30e-3de3-4a6a-9b49-70ddd30d616c"},{"name":"Post Check Eligible Points For Transaction","id":"ff3326a8-cadf-4692-988c-faa3deb9f372","request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billAmt\": 66.67,\n        \"billGrossAmount\": 70.0,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": [],\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"{{billNo}}\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 0,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"{{billNo}}\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"1\",\n                \"value\": 70\n            },\n            {\n                \"payModeType\": \"1\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"receiptId\": \"r{{billNo}}\",\n    \"transDate\":\"2022-08-10T00:00:00.00Z\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{client}}/post-check-eligible-points-for-transaction","urlObject":{"path":["{{client}}","post-check-eligible-points-for-transaction"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"ce95876f-4b91-45e4-b706-18a50bafbe6f","name":"Post Check Eligible Points For Transaction","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billAmt\": 66.67,\n        \"billGrossAmount\": 70.0,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": [],\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"{{billNo}}\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 0,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"{{billNo}}\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"1\",\n                \"value\": 70\n            },\n            {\n                \"payModeType\": \"1\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"receiptId\": \"r{{billNo}}\",\n    \"transDate\":\"2022-08-10T00:00:00.00Z\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{client}}/post-check-eligible-points-for-transaction"},"_postman_previewlanguage":"Text","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"status\": \"200\",\n    \"data\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"12143131-1341414\",\n                \"points\": 14.285,\n                \"pointsRatio\": 0.5,\n                \"pointsRatioAttribute\": \"amount\",\n                \"pointsEarningConfig\": \"c9236b55-e64a-4013-92c6-3709af6bfd2c\",\n                \"isPointsRedeemable\": true\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 0,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"12143131-1341414\",\n                \"points\": 19.05,\n                \"pointsRatio\": 0.5,\n                \"pointsRatioAttribute\": \"amount\",\n                \"pointsEarningConfig\": \"c9236b55-e64a-4013-92c6-3709af6bfd2c\",\n                \"isPointsRedeemable\": true\n            }\n        ],\n        \"points\": 33.335\n    },\n    \"error\": null\n}"}],"_postman_id":"ff3326a8-cadf-4692-988c-faa3deb9f372"},{"name":"Post Check Eligible Items For Points Redemption","id":"be65736a-260c-4064-9fb0-0a80df07485a","request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billAmt\": 66.67,\n        \"billGrossAmount\": 70.0,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": [],\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"{{billNo}}\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 0,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"{{billNo}}\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"1\",\n                \"value\": 70\n            },\n            {\n                \"payModeType\": \"1\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"receiptId\": \"r{{billNo}}\",\n    \"transDate\":\"2022-08-10T00:00:00.00Z\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{client}}/post-check-eligible-items-for-points-redemption","urlObject":{"path":["{{client}}","post-check-eligible-items-for-points-redemption"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"f692b378-cfdd-4df7-9e60-9da40b979902","name":"Post Check Eligible Items For Points Redemption","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billAmt\": 66.67,\n        \"billGrossAmount\": 70.0,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": [],\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"{{billNo}}\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 0,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"{{billNo}}\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"1\",\n                \"value\": 70\n            },\n            {\n                \"payModeType\": \"1\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"receiptId\": \"r{{billNo}}\",\n    \"transDate\":\"2022-08-10T00:00:00.00Z\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{client}}/post-check-eligible-items-for-points-redemption"},"_postman_previewlanguage":"Text","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"status\": \"200\",\n    \"data\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"3771313131-313131311\",\n                \"isPointsRedeemable\": true\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 0,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"3771313131-313131311\",\n                \"isPointsRedeemable\": true\n            }\n        ]\n    },\n    \"error\": null\n}"}],"_postman_id":"be65736a-260c-4064-9fb0-0a80df07485a"},{"name":"Post Check Eligible Items For Points Redemption with Redeem Points","id":"87c37922-fbfb-4672-a6dc-aaf4ccd2aebf","request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billAmt\": 66.67,\n        \"billGrossAmount\": 70.0,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": [],\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"{{billNo}}\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 0,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"{{billNo}}\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"1\",\n                \"value\": 70\n            },\n            {\n                \"payModeType\": \"1\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"receiptId\": \"r{{billNo}}\",\n    \"transDate\":\"2022-08-10T00:00:00.00Z\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{client}}/post-check-eligible-items-for-points-redemption?redeemPoints=500","urlObject":{"path":["{{client}}","post-check-eligible-items-for-points-redemption"],"host":["{{url}}"],"query":[{"key":"redeemPoints","value":"500"}],"variable":[]}},"response":[{"id":"3d78214b-dd18-452f-927f-4b0eaf26200f","name":"Post Check Eligible Items For Points Redemption with Redeem Points","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer\": {\n        \"customerDetails\": {\n            \"mobile\": \"{{mobile}}\",\n            \"name\": \"\",\n            \"email\": \"\",\n            \"externalId\": \"\"\n        }\n    },\n    \"bill\": {\n        \"billNumber\": \"{{billNo}}\",\n        \"billAmt\": 66.67,\n        \"billGrossAmount\": 70.0,\n        \"billDiscount\": 0,\n        \"cashierId\": \"100979\",\n        \"companyCode\": \"AGR\",\n        \"notes\": \"\",\n        \"returnBillNum\": [],\n        \"billType\": \"Regular\",\n        \"storeID\": \"SPF2032\",\n        \"storeTerminalID\": \"SPF203201\",\n        \"currency\": \"AED\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"{{billNo}}\"\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 0,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"{{billNo}}\"\n            }\n        ]\n    },\n    \"paymentMode\": {\n        \"paymentModeDetails\": [\n            {\n                \"payModeType\": \"1\",\n                \"value\": 70\n            },\n            {\n                \"payModeType\": \"1\",\n                \"value\": 0\n            }\n        ]\n    },\n    \"coupon\": {\n        \"couponDetails\": {\n            \"couponCode\": \"\",\n            \"couponValue\": \"\",\n            \"couponType\": \"\"\n        }\n    },\n    \"receiptId\": \"r{{billNo}}\",\n    \"transDate\":\"2022-08-10T00:00:00.00Z\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{url}}/{{client}}/post-check-eligible-items-for-points-redemption?redeemPoints=500","host":["{{url}}"],"path":["{{client}}","post-check-eligible-items-for-points-redemption"],"query":[{"key":"redeemPoints","value":"500"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"status\": \"200\",\n    \"data\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"TFS00091\",\n                \"description\": \"PURE SPA WATER LIQUID CLEANSING CREAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 30,\n                \"value\": 30,\n                \"discount\": 0,\n                \"amount\": 28.57,\n                \"grossAmount\": 30,\n                \"billNumber\": \"3771313131-313131311\",\n                \"isPointsRedeemable\": true,\n                \"pointsRedeemed\": 2142.86\n            },\n            {\n                \"stockNo\": \"TFS00090\",\n                \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n                \"markdownFlag\": \"N\",\n                \"quantity\": 1,\n                \"rate\": 40,\n                \"value\": 40,\n                \"discount\": 0,\n                \"amount\": 38.1,\n                \"grossAmount\": 40,\n                \"billNumber\": \"3771313131-313131311\",\n                \"isPointsRedeemable\": true,\n                \"pointsRedeemed\": 2857.14\n            }\n        ]\n    },\n    \"error\": null\n}"}],"_postman_id":"87c37922-fbfb-4672-a6dc-aaf4ccd2aebf"},{"name":"Points Redemption Without OTP","id":"dd6c0a65-c9fd-4774-aa05-32868396a668","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 100,\n    \"lineItems\": [\n        {\n            \"stockNo\": \"59871\",\n            \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 300,\n            \"value\": 300,\n            \"discount\": 0,\n            \"amount\": 300,\n            \"grossAmount\": 400,\n            \"billNumber\": \"0900000500010215p\",\n            \"category\": \"pharma\"\n        },\n        {\n            \"stockNo\": \"98711\",\n            \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 5,\n            \"rate\": 200,\n            \"value\": 200,\n            \"discount\": 0,\n            \"amount\": 1000,\n            \"grossAmount\": 1100,\n            \"billNumber\": \"0900000500010215p\",\n            \"category\": \"pharma\"\n        },\n        {\n            \"stockNo\": \"12321245677\",\n            \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 300,\n            \"value\": 300,\n            \"discount\": 0,\n            \"amount\": 300,\n            \"grossAmount\": 500,\n            \"billNumber\": \"0900000500010215p\",\n            \"category\": \"pharma\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{client}}/redeem-points","urlObject":{"path":["{{client}}","redeem-points"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"9894196a-cf41-49ef-af05-6c2c989c40d7","name":"Points Redemption Without OTP","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\",\n    \"transactionId\": \"{{billNo}}\",\n    \"storeID\": \"TEST\",\n    \"points\": 100,\n    \"lineItems\": [\n        {\n            \"stockNo\": \"59871\",\n            \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 300,\n            \"value\": 300,\n            \"discount\": 0,\n            \"amount\": 300,\n            \"grossAmount\": 400,\n            \"billNumber\": \"0900000500010215p\",\n            \"category\": \"pharma\"\n        },\n        {\n            \"stockNo\": \"98711\",\n            \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 5,\n            \"rate\": 200,\n            \"value\": 200,\n            \"discount\": 0,\n            \"amount\": 1000,\n            \"grossAmount\": 1100,\n            \"billNumber\": \"0900000500010215p\",\n            \"category\": \"pharma\"\n        },\n        {\n            \"stockNo\": \"12321245677\",\n            \"description\": \"PURE SPA WATER BUBBLE CLEANSING FOAM\",\n            \"markdownFlag\": \"N\",\n            \"quantity\": 1,\n            \"rate\": 300,\n            \"value\": 300,\n            \"discount\": 0,\n            \"amount\": 300,\n            \"grossAmount\": 500,\n            \"billNumber\": \"0900000500010215p\",\n            \"category\": \"pharma\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{client}}/redeem-points"},"_postman_previewlanguage":"Text","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"points\": 100,\n            \"conversion\": 0.01,\n            \"mobile\": \"919836892615\",\n            \"transactionId\": \"132424341-1342414\",\n            \"value\": 1,\n            \"validProducts\": [\n                {\n                    \"stockNo\": \"59871\",\n                    \"redeemedPoints\": 20,\n                    \"redeemedPointsPerQuantity\": 20\n                },\n                {\n                    \"stockNo\": \"98711\",\n                    \"redeemedPoints\": 55,\n                    \"redeemedPointsPerQuantity\": 11\n                },\n                {\n                    \"stockNo\": \"12321245677\",\n                    \"redeemedPoints\": 25,\n                    \"redeemedPointsPerQuantity\": 25\n                }\n            ]\n        }\n    ],\n    \"error\": null,\n    \"status\": 200\n}"}],"_postman_id":"dd6c0a65-c9fd-4774-aa05-32868396a668"},{"name":"Bonus Points","id":"7fa6cbb5-3e73-4e84-b21e-d95c630db431","request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\", // uniqueKey is required\n    \"notes\": \"Test Enhancement\", // required field\n    \"points\": 100.22, // required field\n    \"storeID\": \"TEST_SWAN_STORE_002\", // required field\n    \"storeTerminalID\": \"0121213KKKA\", // required field\n    \"source\": {\n        \"storeAttr\": \"Store_category\",\n        \"storeAttrValue\": \"Pharmacy\"\n    },//optional field\n    \"cashierId\": \"TEST_CASHIER1\", //optional field\n    \"bonusPointsId\": \"TEST001668\"//optional field\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{client}}/give-points","description":"<h3 id=\"description\">Description</h3>\n<ul>\n<li><p><strong>Route &amp; Method</strong><br />  <code>POST /{client}/give-points</code> — standard HTTP endpoint with JWT-based access control</p>\n</li>\n<li><p><strong>Purpose</strong><br />  Issues bonus points to a customer, recording the pointsLedger and updating the customer's points data.</p>\n</li>\n</ul>\n<h3 id=\"validation-rules\">Validation Rules</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required</th>\n<th>Rules / Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>mobile</code> / <code>email</code> / <code>membershipId</code></td>\n<td>String</td>\n<td>This is the unique key.</td>\n<td><strong>Yes</strong></td>\n<td><strong>One of these is required.</strong> The field name must match the client's configured <code>uniqueSearchKey</code>.- <code>mobile, email, membershipId</code></td>\n</tr>\n<tr>\n<td><code>points</code></td>\n<td>Number</td>\n<td>Number of points to be assigned to the customer (must be ≥ 1).</td>\n<td><strong>Yes</strong></td>\n<td>Minimum Value 1</td>\n</tr>\n<tr>\n<td><code>notes</code></td>\n<td>String</td>\n<td>Statement or reference on which the points are being issued.</td>\n<td><strong>Yes</strong></td>\n<td>Maximum Length is 255</td>\n</tr>\n<tr>\n<td><code>storeID</code></td>\n<td>String</td>\n<td>Identifier of the store where the transaction occurred.</td>\n<td><strong>Yes</strong></td>\n<td>Standard string validation</td>\n</tr>\n<tr>\n<td><code>storeTerminalID</code></td>\n<td>String</td>\n<td>This field will contain the store terminal Id</td>\n<td><strong>Yes</strong></td>\n<td>Standard string validation</td>\n</tr>\n<tr>\n<td><code>bonusPointsId</code></td>\n<td>String</td>\n<td>Unique identifier for the bonus points transaction. If not provided, the system generates and assigns a unique ID automatically.</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><strong>It is advised to pass this to prevent the duplicate issuance of points.</strong></td>\n<td>No</td>\n<td>Unique ID for the bonus point transaction.</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td><code>cashierId</code></td>\n<td>String</td>\n<td>Identifier of the cashier who processed the transaction.</td>\n<td>No</td>\n<td>Standard string validation</td>\n</tr>\n<tr>\n<td><code>source</code></td>\n<td>Object</td>\n<td>BU tagging information. If <code>storeMaster</code> does not contain BU details, this field is used to map BU data.</td>\n<td>No</td>\n<td></td>\n</tr>\n<tr>\n<td><code>source.storeAttr</code></td>\n<td>String</td>\n<td>Attribute to look up store config</td>\n<td>Yes (if source used)</td>\n<td>Standard string validation</td>\n</tr>\n<tr>\n<td><code>source.storeAttrValue</code></td>\n<td>String</td>\n<td>Value for the specified attribute.</td>\n<td>Yes (if source used)</td>\n<td>Standard string validation</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["{{client}}","give-points"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"340ee790-f2b2-4999-bf2d-525ae85aac86","name":"Bonus Points","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"mobile\": \"{{mobile}}\", // uniqueKey is required\n    \"notes\": \"Test Enhancement\", // required field\n    \"points\": 100.22, // required field\n    \"storeID\": \"TEST_SWAN_STORE_002\", // required field\n    \"storeTerminalID\": \"0121213KKKA\", // required field\n    \"source\": {\n        \"storeAttr\": \"Store_category\",\n        \"storeAttrValue\": \"Pharmacy\"\n    },//optional field\n    \"cashierId\": \"TEST_CASHIER1\", //optional field\n    \"bonusPointsId\": \"TEST001669\"//optional field\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{client}}/give-points"},"_postman_previewlanguage":"Text","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"data\": [\n        {\n            \"message\": \"Successfully Issued 100.22 Points!\"\n        }\n    ]\n}"}],"_postman_id":"7fa6cbb5-3e73-4e84-b21e-d95c630db431"}],"id":"9a7c6234-9a32-4320-a259-60db25cf6bd2","description":"<p><strong>This API collection is used when a customer wants to redeem points for a transaction and for reinstating points to a customer. This collection contains APIs for:</strong></p>\n<ul>\n<li><strong>Points Redemption without OTP:</strong> Redemption of points without the need for OTP Validation</li>\n<li><strong>Points Redemption with OTP:</strong> Redemption of points with OTP Validation. The process for this is as follows:<ul>\n<li>Generate an OTP for redeeming points</li>\n<li>Validate the OTP for redeeming points</li>\n</ul>\n</li>\n<li><strong>Reinstate Points:</strong> Reinstating points to customers incase of transactions being cancelled or LoyaltyPoints not used as paymentMode</li>\n</ul>\n<h3 id=\"authentication\">Authentication</h3>\n<p>Authentication is required for all API requests. Authentication credentials must be included in the headers of each request.</p>\n<h3 id=\"workflow\">Workflow</h3>\n<img src=\"https://content.pstmn.io/7952d935-bb4b-446c-b1e6-ae654f2d7755/UG9pbnRzIEZsb3cucG5n\" />","_postman_id":"9a7c6234-9a32-4320-a259-60db25cf6bd2"},{"name":"Coupons","item":[{"name":"Reinstate Coupon","id":"22bdaaa4-2599-4e04-b2f1-1ffd84fe8e0f","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"couponCode\": \"FWQZX\",\n    \"mobile\": \"{{mobile}}\",\n    \"storeID\": \"SPF ADM\",\n    \"transactionId\": \"{{billNo}}\"\n}"},"url":"{{url}}/{{client}}/post-coupon-reinstate","description":"<p>This API will will give the coupon back to the customer if called in case the transaction is cancelled or revoked</p>\n","urlObject":{"path":["{{client}}","post-coupon-reinstate"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"10097b7c-2b70-43c3-bcd8-1867803e2194","name":"Reinstate Coupon","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"couponCode\": \"FWQZX\",\n    \"mobile\": \"{{mobile}}\",\n    \"storeID\": \"SPF ADM\",\n    \"transactionId\": \"{{billNo}}\"\n}"},"url":"{{url}}/{{client}}/post-coupon-reinstate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:29:56 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0w+ehYgAAAACy0e7Bj4KQQKqDnGwJYNixQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=7%2BmXCWlJ7LVANcwSxW75KenKpANOsEt7NnVr%2BYhFMnmddsg51FmWsm9sZ5NShSAlzeoCa%2FnYHooXNBQmxwz%2BVdvMH1EwGyPA4NwsbEVdN3jd4D1fHnJ78V5R8UJk1DEYA7m42w%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189e025cbab84fe-BOM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"message\": \"Success\"\n        }\n    ],\n    \"error\": null,\n    \"status\": \"200\"\n}"},{"id":"77bb65d8-e4e2-455e-b5ed-1d7b1c776cd7","name":"Reinstate Coupon - Coupon not found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"couponCode\": \"FWQZX\",\n    \"mobile\": \"{{mobile}}\",\n    \"storeID\": \"SPF ADM\",\n    \"transactionId\": \"{{billNo}}\"\n}"},"url":"{{url}}/{{client}}/post-coupon-reinstate"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 10 Jul 2023 06:49:55 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=SddT8LMgfDAvyqUY%2FQ6KlMu3ZDtNETMNd9fStJ4IvWlMMF4BmMdKlmtES0arxI5EiHpeR7xuKAe9KUJ6z9QsWseDeToNa6s7BNvNHAT6nlej2qBSliuyT60CQprfV%2Fj%2BIP%2Fdwg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7e46de944afe3de2-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"No Coupon Found\"\n    }\n}"},{"id":"b4cad61f-9098-4c4f-a2d7-74237223b160","name":"Not authorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n    \"couponCode\": \"FWQZX\",\n    \"mobile\": \"{{mobile}}\",\n    \"storeID\": \"SPF ADM\",\n    \"transactionId\": \"{{billNo}}\"\n}"},"url":"{{url}}/{{client}}/post-coupon-reinstate"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 08:08:48 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=Z8tUtIioXCceiC9Bg2bbYpvNFU4IqSk2hkCI5HvFyCyT2r%2B4qy%2BJn4iiH3llGjcCmrGNkU%2B97%2F%2BGFSZ%2BbOQusvPsfKD1LQP3%2FtC3uPqUFIGt6GOKKMkjXPbu%2B%2FK8wIKCIeyzag%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"87ffb9665877823d-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"You are not Authorized\"\n    }\n}"}],"_postman_id":"22bdaaa4-2599-4e04-b2f1-1ffd84fe8e0f"},{"name":"Get Coupon","id":"a86c3569-47c1-48ca-add2-1241f6f3541a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":""},"url":"{{url}}/{{client}}/get-coupon?mobile={{mobile}}&couponCode={{couponCode}]","description":"<p>This API retrieves coupon details based on the provided coupon code and mobile number.</p>\n","urlObject":{"path":["{{client}}","get-coupon"],"host":["{{url}}"],"query":[{"key":"mobile","value":"{{mobile}}"},{"disabled":true,"key":"storeID","value":""},{"key":"couponCode","value":"{{couponCode}]"}],"variable":[]}},"response":[{"id":"cc635256-dd73-43d1-8f0a-93f55f512a0f","name":"Get Coupon Amount","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{url}}/{{client}}/get-coupon?couponCode=FWQZX&mobile={{mobile}}","host":["{{url}}"],"path":["{{client}}","get-coupon"],"query":[{"key":"couponCode","value":"FWQZX"},{"key":"mobile","value":"{{mobile}}"},{"key":"storeID","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:22:45 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0FeahYgAAAACTTcy9bvAITajNG6q/1YdkQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=hE7BYT1kJVOj4Pzlj19iQIJ8cfEI8EoXvT2ly6tqE02trpOCoB1EGLo3X8cAomAGY%2B0vQ3763P6UhRt3H6fvwPjxyhCjGtgNJdv1lsbrqYevfVVyxIqzjWPbFIc2LdUhE1MhJQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189d5a8ad6284fe-BOM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"data\": [\n        {\n            \"CDID\": \"CTEST01-02-00000001-942263\",\n            \"couponCode\": \"FWQZX\",\n            \"mobile\": \"971777777777\",\n            \"validFrom\": \"2021-07-14T18:30:00.000Z\",\n            \"validTo\": \"2021-07-17T18:29:59.000Z\",\n            \"client\": \"loyalytics\",\n            \"type\": \"coupon\",\n            \"redeemed\": false,\n            \"createdAt\": \"2022-06-09T12:22:32.721Z\",\n            \"redeemedOn\": false,\n            \"createdFrom\": \"ingage\",\n            \"createdBy\": \"tejash@loyalytics.in\",\n            \"channel\": \"ingage-AD\",\n            \"value\": 200000,\n            \"campaignId\": \"cfbdaf41-c1ae-4f5c-893a-2d7e041b1283\",\n            \"campaignName\": \"Promotional campaign\",\n            \"couponType\": \"amount\",\n            \"threshold\": \"1000000\",\n            \"maxDiscount\": 200000,\n            \"currency\": null,\n            \"campaignDesc\": null,\n            \"label\": null,\n            \"id\": \"d70a2c14-3f59-45f7-ac63-a2611e6cdba5\",\n            \"_rid\": \"iAZiAJY2KzUYJBUCAAAABw==\",\n            \"_self\": \"dbs/iAZiAA==/colls/iAZiAJY2KzU=/docs/iAZiAJY2KzUYJBUCAAAABw==/\",\n            \"_etag\": \"\\\"6601dcfb-0000-2100-0000-62a1e6080000\\\"\",\n            \"_attachments\": \"attachments/\",\n            \"_ts\": 1654777352,\n            \"name\": \"Promotional campaign\"\n        }\n    ],\n    \"error\": null\n}"},{"id":"c6eca45c-228e-44f4-bc92-0a93198d6673","name":"Get Coupon - Invalid Coupon","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}","type":"text"}],"url":{"raw":"{{url}}/{{client}}/get-coupon?mobile={{mobile}}&couponCode=FWQZX","host":["{{url}}"],"path":["{{client}}","get-coupon"],"query":[{"key":"mobile","value":"{{mobile}}"},{"key":"storeID","value":"","disabled":true},{"key":"couponCode","value":"FWQZX"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:23:02 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"92"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0JuahYgAAAABKkjAEWKXjSpNQHNZ5imSDQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=7LPAW7BBD%2F4b%2FJySYMIglyFqrMY70PxK0eH1NQDUNaI3Ly7UYmtu4ansinK3QOodx9yJ%2Bp5ZmNNV1ZoHJCU5DPCGph9OIjKejr44lfPjutfHBqaAnB45x53aSPmsVv%2FKy47z5g%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189d6117a8e84fe-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"No Coupon Found\"\n    }\n}"},{"id":"ad8b695b-e686-4bd9-b2c0-3efd55c29d0e","name":"Not authorized","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"url":{"raw":"{{url}}/{{client}}/get-coupon?couponCode=FWQZX&mobile={{mobile}}","host":["{{url}}"],"path":["{{client}}","get-coupon"],"query":[{"key":"couponCode","value":"FWQZX"},{"key":"mobile","value":"{{mobile}}"},{"key":"storeID","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 07 May 2024 08:09:45 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=uSS5nSJkSa192N9yLQpnKcNScpeMxWPLLHHviKtTb2fQYJ0qNu46IOCDL%2FfoXdRSf36rrnDlnricwFd7Z5L3t1h8jHmdkYa%2BuKBmKooWpQ6w4RlaBV1OHYynotn2cYoM66R7zQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"87ffbac3ee1d823d-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"You are not Authorized\"\n    }\n}"},{"id":"fe86bcbd-eab3-40fc-aa0b-692641812566","name":"Get Coupon Percent","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"url":{"raw":"{{url}}/{{client}}/get-coupon?mobile={{mobile}}&couponCode={{couponCode}]","host":["{{url}}"],"path":["{{client}}","get-coupon"],"query":[{"key":"mobile","value":"{{mobile}}"},{"key":"storeID","value":"","disabled":true},{"key":"couponCode","value":"{{couponCode}]"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"8e1b35a2-53dd-4e24-8b4f-6697bb3695a3","name":"Get Coupon","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"url":{"raw":"{{url}}/{{client}}/get-coupon?mobile={{mobile}}&couponCode=SCRBBE4I","host":["{{url}}"],"path":["{{client}}","get-coupon"],"query":[{"key":"mobile","value":"{{mobile}}"},{"key":"storeID","value":"","disabled":true},{"key":"couponCode","value":"SCRBBE4I"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 14 Jun 2024 06:13:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Encoding","value":"gzip"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=rclvK4OlkTfZkII4HNybGkMNRAQPOtEhK2qso%2FM4NvCBiOuPZT8CUMn2%2FYaa4szFLWtFzZxCWmiX%2B4FaAdnk%2B4sY%2B8eCLJxCTv%2Fr87ya1Ir1nKM8kFbVPx2OHQeWBMDojG0W2g%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"89382cdd7d806ecc-CDG"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 200,\n    \"data\": [\n        {\n            \"CDID\": \"CHOUSTON-17-00000005-863958\",\n            \"couponCode\": \"SCRBBE4I\",\n            \"mobile\": \"919873772210\",\n            \"validFrom\": \"2024-06-14T17:00:00.000Z\",\n            \"validTo\": \"2024-07-14T16:59:59.000Z\",\n            \"client\": \"swan-test\",\n            \"type\": \"coupon\",\n            \"redeemed\": false,\n            \"createdAt\": \"2024-06-14T06:12:08.542Z\",\n            \"redeemedOn\": false,\n            \"createdFrom\": \"swan\",\n            \"createdBy\": \"nikita@loyalytics.in\",\n            \"channel\": \"swan-AD\",\n            \"value\": 25,\n            \"campaignId\": \"021c9e93-c029-44b7-96ca-f92859dae43f\",\n            \"campaignName\": \"25% GV AUG ON 150 Dhs\",\n            \"couponType\": \"percent\",\n            \"threshold\": \"0\",\n            \"maxDiscount\": \"1000\",\n            \"currency\": \"INR\",\n            \"campaignDesc\": \"25% GV AUG ON 150 Dhs\",\n            \"label\": \"5564\",\n            \"id\": \"7f0f614f-ae28-4c8b-afdf-7e1d5a3d807a\",\n            \"_rid\": \"8KZ1AL+na7TXYBoCAAAACg==\",\n            \"_self\": \"dbs/8KZ1AA==/colls/8KZ1AL+na7Q=/docs/8KZ1AL+na7TXYBoCAAAACg==/\",\n            \"_etag\": \"\\\"2401e2ce-0000-0500-0000-666bdf380000\\\"\",\n            \"_attachments\": \"attachments/\",\n            \"_ts\": 1718345528,\n            \"name\": \"25% GV AUG ON 150 Dhs\"\n        }\n    ],\n    \"error\": null\n}"}],"_postman_id":"a86c3569-47c1-48ca-add2-1241f6f3541a"},{"name":"Coupon check","id":"e0825acc-f560-4a88-af53-3c48893f7eff","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n   \"couponCode\": \"FWQZX\",\n   \"mobile\": \"{{mobile}}\",\n   \"storeID\": \"ECOM\",\n   \"transactionId\": \"{{billNo}}\",\n   \"billAmt\": 1000000,\n   \"transDate\": \"2021-07-16T13:39:00.8138947Z\",\n   \"billLineItems\": {\n       \"lineItems\": [\n              {\n                  \"stockNo\": \"0100000001\",\n                  \"description\": \"HERB DAY 365 CLEANSING FOAM PEACH\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 1000000,\n                  \"value\": 1000000,\n                  \"discount\": 0,\n                  \"amount\": 1000000,\n                  \"grossAmount\": 1000000,\n                  \"billNumber\": \"TFS3025010000215233\"\n              },\n              {\n                  \"stockNo\": \"1000285\",\n                  \"description\": \"REAL NATURE MASK SHEET SNOW SHEA BUTTER.2017\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 16,\n                  \"value\": 16,\n                  \"discount\": 0,\n                  \"amount\": 15.24,\n                  \"grossAmount\": 16,\n                  \"billNumber\": \"TFS3025010000215233\"\n              },\n              {\n                  \"stockNo\": \"1502492\",\n                  \"description\": \"REAL NATURE MASK SHEET SNOW SHEA BUTTER.2017\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 16,\n                  \"value\": 16,\n                  \"discount\": 0,\n                  \"amount\": 15.24,\n                  \"grossAmount\": 16,\n                  \"billNumber\": \"TFS3025010000215233\"\n              }\n          ]\n   }\n}"},"url":"{{url}}/{{client}}/post-coupon-validate","description":"<p>This API will validate and redeem the coupon from the customer if all the configured criteria is met.</p>\n","urlObject":{"path":["{{client}}","post-coupon-validate"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"9d504515-dfc2-4994-91b9-aa6d063afade","name":"Coupon check - Invalid Coupon","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n   \"couponCode\": \"FWQZX\",\n   \"mobile\": \"{{mobile}}\",\n   \"storeID\": \"1105\",\n   \"transactionId\": \"{{billNo}}\",\n   \"billAmt\": 45.72,\n   \"transDate\": \"2019-05-14T13:39:00.8138947Z\",\n   \"billLineItems\": {\n       \"lineItems\": [\n              {\n                  \"stockNo\": \"1008619\",\n                  \"description\": \"HERB DAY 365 CLEANSING FOAM PEACH\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 32,\n                  \"value\": 32,\n                  \"discount\": 0,\n                  \"amount\": 30.48,\n                  \"grossAmount\": 32,\n                  \"billNumber\": \"TFS3025010000215233\"\n              },\n              {\n                  \"stockNo\": \"1000285\",\n                  \"description\": \"REAL NATURE MASK SHEET SNOW SHEA BUTTER.2017\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 16,\n                  \"value\": 16,\n                  \"discount\": 0,\n                  \"amount\": 15.24,\n                  \"grossAmount\": 16,\n                  \"billNumber\": \"TFS3025010000215233\"\n              },\n              {\n                  \"stockNo\": \"1502492\",\n                  \"description\": \"REAL NATURE MASK SHEET SNOW SHEA BUTTER.2017\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 16,\n                  \"value\": 16,\n                  \"discount\": 0,\n                  \"amount\": 15.24,\n                  \"grossAmount\": 16,\n                  \"billNumber\": \"TFS3025010000215233\"\n              }\n          ]\n   }\n}"},"url":"{{url}}/{{client}}/post-coupon-validate"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:23:37 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"120"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0SeahYgAAAABv7F+AiRYBS5lSR4vYhHVGQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=htbuLJPDpVELC6SqUpRMGRSDAa3U4F6%2FKW24qKgDOeBpQXXU5BcPnoRIlkGSnvbyQk8oewEQWD4OJq49viLc%2BZFvU3cHmeWURZSOzONSHnUzS4Y%2Bmjs8EZjnnmND4eImJJRx2Q%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189d6ea3afd84fe-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Coupon doesn't qualify for this transaction\"\n    }\n}"},{"id":"dbc494de-8dbf-43c3-b518-365d16f1f075","name":"Coupon check - Expired","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n   \"couponCode\": \"FWQZX\",\n   \"mobile\": \"{{mobile}}\",\n   \"storeID\": \"ECOM\",\n   \"transactionId\": \"{{billNo}}\",\n   \"billAmt\": 1000000,\n   \"transDate\": \"2022-07-16T13:39:00.8138947Z\",\n   \"billLineItems\": {\n       \"lineItems\": [\n              {\n                  \"stockNo\": \"1008619\",\n                  \"description\": \"HERB DAY 365 CLEANSING FOAM PEACH\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 32,\n                  \"value\": 32,\n                  \"discount\": 0,\n                  \"amount\": 30.48,\n                  \"grossAmount\": 32,\n                  \"billNumber\": \"TFS3025010000215233\"\n              },\n              {\n                  \"stockNo\": \"1000285\",\n                  \"description\": \"REAL NATURE MASK SHEET SNOW SHEA BUTTER.2017\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 16,\n                  \"value\": 16,\n                  \"discount\": 0,\n                  \"amount\": 15.24,\n                  \"grossAmount\": 16,\n                  \"billNumber\": \"TFS3025010000215233\"\n              },\n              {\n                  \"stockNo\": \"1502492\",\n                  \"description\": \"REAL NATURE MASK SHEET SNOW SHEA BUTTER.2017\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 16,\n                  \"value\": 16,\n                  \"discount\": 0,\n                  \"amount\": 15.24,\n                  \"grossAmount\": 16,\n                  \"billNumber\": \"TFS3025010000215233\"\n              }\n          ]\n   }\n}"},"url":"{{url}}/{{client}}/post-coupon-validate"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:26:18 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"143"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"06uahYgAAAAAdDIx7ZEzJQ6/H9npN3xSdQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=ONwRF4p4q4M5TFfCp2ASH8%2FByzjFghfr%2F52uhyKWy1tR5hBXGxfvNl%2FKY0pWIC3ZaB%2B5VfkS2wSjjb7SMUcZJHL5jyx11KThrkotgJcnNHaIkQRCc7GkJIZAPv5j2nsmupw0Lw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189dad7c87c84fe-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Coupon code has expired. Coupon code was valid before : 07/17/2021\"\n    }\n}"},{"id":"2c7afe3f-68df-40b7-98e7-a3305dae2282","name":"Coupon check","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n   \"couponCode\": \"FWQZX\",\n   \"mobile\": \"{{mobile}}\",\n   \"storeID\": \"ECOM\",\n   \"transactionId\": \"{{billNo}}\",\n   \"billAmt\": 1000000,\n   \"transDate\": \"2021-07-16T13:39:00.8138947Z\",\n   \"billLineItems\": {\n       \"lineItems\": [\n              {\n                  \"stockNo\": \"1008619\",\n                  \"description\": \"HERB DAY 365 CLEANSING FOAM PEACH\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 32,\n                  \"value\": 32,\n                  \"discount\": 0,\n                  \"amount\": 30.48,\n                  \"grossAmount\": 32,\n                  \"billNumber\": \"TFS3025010000215233\"\n              },\n              {\n                  \"stockNo\": \"1000285\",\n                  \"description\": \"REAL NATURE MASK SHEET SNOW SHEA BUTTER.2017\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 16,\n                  \"value\": 16,\n                  \"discount\": 0,\n                  \"amount\": 15.24,\n                  \"grossAmount\": 16,\n                  \"billNumber\": \"TFS3025010000215233\"\n              },\n              {\n                  \"stockNo\": \"1502492\",\n                  \"description\": \"REAL NATURE MASK SHEET SNOW SHEA BUTTER.2017\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 16,\n                  \"value\": 16,\n                  \"discount\": 0,\n                  \"amount\": 15.24,\n                  \"grossAmount\": 16,\n                  \"billNumber\": \"TFS3025010000215233\"\n              }\n          ]\n   }\n}"},"url":"{{url}}/{{client}}/post-coupon-validate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:29:13 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0mOehYgAAAADpQhrC+90rTJpEj1hZjeGrQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=0zNNhxyyGbwF0XWZS6mtOIy6CHpoyAB4ppbJO4nEzIGswqHSvw38LfuODWDmfNdYxz2RXBiLMVfSPeSpP3DWaJWpktwzF5iwK%2BZGTEVZ93uSVS%2B46MxUUTqAMozjt6BuJSQbtw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189df1bbf4a84fe-BOM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"message\": \"Success\",\n            \"coupon\": {\n                \"CDID\": \"CTEST01-02-00000001-942263\",\n                \"couponCode\": \"FWQZX\",\n                \"mobile\": \"971777777777\",\n                \"validFrom\": \"2021-07-14T18:30:00.000Z\",\n                \"validTo\": \"2022-07-17T18:29:59.000Z\",\n                \"client\": \"loyalytics\",\n                \"type\": \"coupon\",\n                \"redeemed\": true,\n                \"createdAt\": \"2022-06-09T12:22:32.721Z\",\n                \"redeemedOn\": \"2022-06-09T12:29:13.072Z\",\n                \"createdFrom\": \"ingage\",\n                \"createdBy\": \"tejash@loyalytics.in\",\n                \"channel\": \"ingage-AD\",\n                \"value\": 200000,\n                \"campaignId\": \"cfbdaf41-c1ae-4f5c-893a-2d7e041b1283\",\n                \"campaignName\": \"Promotional campaign\",\n                \"couponType\": \"amount\",\n                \"threshold\": \"1000000\",\n                \"maxDiscount\": 200000,\n                \"currency\": null,\n                \"campaignDesc\": null,\n                \"label\": null,\n                \"id\": \"d70a2c14-3f59-45f7-ac63-a2611e6cdba5\",\n                \"_rid\": \"iAZiAJY2KzUYJBUCAAAABw==\",\n                \"_self\": \"dbs/iAZiAA==/colls/iAZiAJY2KzU=/docs/iAZiAJY2KzUYJBUCAAAABw==/\",\n                \"_etag\": \"\\\"67013f28-0000-2100-0000-62a1e78f0000\\\"\",\n                \"_attachments\": \"attachments/\",\n                \"_ts\": 1654777743,\n                \"name\": \"Promotional campaign\",\n                \"transactionId\": \"090000050000099\",\n                \"billAmt\": 1000000\n            },\n            \"validForAllCustomers\": false,\n            \"validProducts\": [\n                \"ALL\" // Valid on all Products in the transaction\n            ]\n        }\n    ],\n    \"error\": null,\n    \"status\": 200\n}"},{"id":"8dbc7917-ceba-4ec8-a8fd-de6d985d9479","name":"Coupon check - Campagin Deactivated","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n   \"couponCode\": \"FWQZX\",\n   \"mobile\": \"{{mobile}}\",\n   \"storeID\": \"ECOM\",\n   \"transactionId\": \"{{billNo}}\",\n   \"billAmt\": 1000000,\n   \"transDate\": \"2021-07-16T13:39:00.8138947Z\",\n   \"billLineItems\": {\n       \"lineItems\": [\n              {\n                  \"stockNo\": \"1008619\",\n                  \"description\": \"HERB DAY 365 CLEANSING FOAM PEACH\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 32,\n                  \"value\": 32,\n                  \"discount\": 0,\n                  \"amount\": 30.48,\n                  \"grossAmount\": 32,\n                  \"billNumber\": \"TFS3025010000215233\"\n              },\n              {\n                  \"stockNo\": \"1000285\",\n                  \"description\": \"REAL NATURE MASK SHEET SNOW SHEA BUTTER.2017\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 16,\n                  \"value\": 16,\n                  \"discount\": 0,\n                  \"amount\": 15.24,\n                  \"grossAmount\": 16,\n                  \"billNumber\": \"TFS3025010000215233\"\n              },\n              {\n                  \"stockNo\": \"1502492\",\n                  \"description\": \"REAL NATURE MASK SHEET SNOW SHEA BUTTER.2017\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 16,\n                  \"value\": 16,\n                  \"discount\": 0,\n                  \"amount\": 15.24,\n                  \"grossAmount\": 16,\n                  \"billNumber\": \"TFS3025010000215233\"\n              }\n          ]\n   }\n}"},"url":"{{url}}/{{client}}/post-coupon-validate"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:30:41 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"136"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"08OehYgAAAAAVncFHO9qkT4JSRYmgw53kQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=%2BvxIb1HerFHAUGRlKaPeAZ2v1dFBkKRwr85rvEtOS1mkq75hmAm0nOp3mWhamKI%2FpORrUJ0mm0AsuaWnUHaAbM%2BxjrDRvTNdaMm0xMYDgmJi19pYzbXRXxQa809jNCW6p3uLkg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189e1417dee84fe-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"The campaign of this coupon has been deactivated or expired\"\n    }\n}"},{"id":"a42e28a7-cb0a-465a-94af-6f105309f2c8","name":"Coupon check - No campaign Items Found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n   \"couponCode\": \"FWQZX\",\n   \"mobile\": \"{{mobile}}\",\n   \"storeID\": \"ECOM\",\n   \"transactionId\": \"{{billNo}}\",\n   \"billAmt\": 1000000,\n   \"transDate\": \"2021-07-16T13:39:00.8138947Z\",\n   \"billLineItems\": {\n       \"lineItems\": [\n              {\n                  \"stockNo\": \"1008619\",\n                  \"description\": \"HERB DAY 365 CLEANSING FOAM PEACH\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 32,\n                  \"value\": 32,\n                  \"discount\": 0,\n                  \"amount\": 30.48,\n                  \"grossAmount\": 32,\n                  \"billNumber\": \"TFS3025010000215233\"\n              },\n              {\n                  \"stockNo\": \"1000285\",\n                  \"description\": \"REAL NATURE MASK SHEET SNOW SHEA BUTTER.2017\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 16,\n                  \"value\": 16,\n                  \"discount\": 0,\n                  \"amount\": 15.24,\n                  \"grossAmount\": 16,\n                  \"billNumber\": \"TFS3025010000215233\"\n              },\n              {\n                  \"stockNo\": \"1502492\",\n                  \"description\": \"REAL NATURE MASK SHEET SNOW SHEA BUTTER.2017\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 16,\n                  \"value\": 16,\n                  \"discount\": 0,\n                  \"amount\": 15.24,\n                  \"grossAmount\": 16,\n                  \"billNumber\": \"TFS3025010000215233\"\n              }\n          ]\n   }\n}"},"url":"{{url}}/{{client}}/post-coupon-validate"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:31:20 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"135"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0GOihYgAAAACNm9q6NESARoCrYKRXuvDGQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=buc8UIP4q%2FCXr0eo1YtDUZhxzkHrRmJDXXpEwSRkC9jqcbBFOqQb5Fc97WYIhT7hxvmSuWlPYtyoQIjmRYGqNV90LYzfQ%2F3yzUNGfSg8bmSRi7AyZHAB2lUHNaya%2FX%2F0aCOP2Q%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189e2376e2d84fe-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Transaction products doesn't qualify coupon valid products\"\n    }\n}"},{"id":"1a2209af-751f-490a-a93b-31db32bf197d","name":"Coupon check - Item campaign error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n   \"couponCode\": \"FWQZX\",\n   \"mobile\": \"{{mobile}}\",\n   \"storeID\": \"ECOM\",\n   \"transactionId\": \"{{billNo}}\",\n   \"billAmt\": 1000000,\n   \"transDate\": \"2021-07-16T13:39:00.8138947Z\",\n   \"billLineItems\": {\n       \"lineItems\": [\n              {\n                  \"stockNo\": \"0100000001\",\n                  \"description\": \"HERB DAY 365 CLEANSING FOAM PEACH\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 32,\n                  \"value\": 32,\n                  \"discount\": 0,\n                  \"amount\": 30.48,\n                  \"grossAmount\": 32,\n                  \"billNumber\": \"TFS3025010000215233\"\n              },\n              {\n                  \"stockNo\": \"1000285\",\n                  \"description\": \"REAL NATURE MASK SHEET SNOW SHEA BUTTER.2017\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 16,\n                  \"value\": 16,\n                  \"discount\": 0,\n                  \"amount\": 15.24,\n                  \"grossAmount\": 16,\n                  \"billNumber\": \"TFS3025010000215233\"\n              },\n              {\n                  \"stockNo\": \"1502492\",\n                  \"description\": \"REAL NATURE MASK SHEET SNOW SHEA BUTTER.2017\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 16,\n                  \"value\": 16,\n                  \"discount\": 0,\n                  \"amount\": 15.24,\n                  \"grossAmount\": 16,\n                  \"billNumber\": \"TFS3025010000215233\"\n              }\n          ]\n   }\n}"},"url":"{{url}}/{{client}}/post-coupon-validate"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:31:50 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"133"},{"key":"Connection","value":"keep-alive"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0NeihYgAAAACKDpuiBLFYSpwIzjfCU0AhQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=QWGIEBsUHl7AsMnOWWVyWQ0u09ntbWaIqVZ1Cg8hgoYvQ0wJ4lrv8U29gqudJEW%2F%2Fcuy9uDO0iX2mQ3xoFgi%2Bv1QNkSguMduYuM1csTjtq%2B6piHbp%2Bjz5CMISjUpbkSxzOElmw%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189e2f03afa84fe-BOM"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 404,\n    \"data\": null,\n    \"error\": {\n        \"message\": \"Transaction products doesn't qualify the threshold value\"\n    }\n}"},{"id":"74442c30-b23c-48be-b681-81d83c2b7463","name":"Coupon check","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"{{token}}"}],"body":{"mode":"raw","raw":"{\n   \"couponCode\": \"FWQZX\",\n   \"mobile\": \"{{mobile}}\",\n   \"storeID\": \"ECOM\",\n   \"transactionId\": \"{{billNo}}\",\n   \"billAmt\": 1000000,\n   \"transDate\": \"2021-07-16T13:39:00.8138947Z\",\n   \"billLineItems\": {\n       \"lineItems\": [\n              {\n                  \"stockNo\": \"0100000001\",\n                  \"description\": \"HERB DAY 365 CLEANSING FOAM PEACH\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 1000000,\n                  \"value\": 1000000,\n                  \"discount\": 0,\n                  \"amount\": 1000000,\n                  \"grossAmount\": 1000000,\n                  \"billNumber\": \"TFS3025010000215233\"\n              },\n              {\n                  \"stockNo\": \"1000285\",\n                  \"description\": \"REAL NATURE MASK SHEET SNOW SHEA BUTTER.2017\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 16,\n                  \"value\": 16,\n                  \"discount\": 0,\n                  \"amount\": 15.24,\n                  \"grossAmount\": 16,\n                  \"billNumber\": \"TFS3025010000215233\"\n              },\n              {\n                  \"stockNo\": \"1502492\",\n                  \"description\": \"REAL NATURE MASK SHEET SNOW SHEA BUTTER.2017\",\n                  \"markdownFlag\": \"N\",\n                  \"quantity\": 1,\n                  \"rate\": 16,\n                  \"value\": 16,\n                  \"discount\": 0,\n                  \"amount\": 15.24,\n                  \"grossAmount\": 16,\n                  \"billNumber\": \"TFS3025010000215233\"\n              }\n          ]\n   }\n}"},"url":"{{url}}/{{client}}/post-coupon-validate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 09 Jun 2022 12:32:49 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Request-Context","value":"appId=cid-v1:8254dc48-5349-4e9d-93e6-78ca4159e799"},{"key":"X-Cache","value":"CONFIG_NOCACHE"},{"key":"X-Azure-Ref","value":"0ceihYgAAAACegzFgJl7dSIcpyB5rAWhsQk9NMDFFREdFMDUxNAA2M2UyNjNjZi0xMTMwLTQ3YzEtOTdmYy0zYmZmZmJlMjgzOTg="},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=XAnNM2%2FnWlSItWJFbf00dO5ZVrfWXxxH91TzwG6Xqao%2Fg9Z%2Ba8aQH9IyuL3ZiKZP8yZncwOSYMf5kEseqnGkCkzjH034Dak371Z87Q9EJKjKFbSB9Mb4bVlzbVUxpDBiiOMfbg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7189e466ad1384fe-BOM"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"message\": \"Success\",\n            \"coupon\": {\n                \"CDID\": \"CTEST01-02-00000001-942263\",\n                \"couponCode\": \"FWQZX\",\n                \"mobile\": \"971777777777\",\n                \"validFrom\": \"2021-07-14T18:30:00.000Z\",\n                \"validTo\": \"2022-07-17T18:29:59.000Z\",\n                \"client\": \"loyalytics\",\n                \"type\": \"coupon\",\n                \"redeemed\": true,\n                \"createdAt\": \"2022-06-09T12:22:32.721Z\",\n                \"redeemedOn\": \"2022-06-09T12:32:49.804Z\",\n                \"createdFrom\": \"ingage\",\n                \"createdBy\": \"tejash@loyalytics.in\",\n                \"channel\": \"ingage-AD\",\n                \"value\": 200000,\n                \"campaignId\": \"cfbdaf41-c1ae-4f5c-893a-2d7e041b1283\",\n                \"campaignName\": \"Promotional campaign\",\n                \"couponType\": \"amount\",\n                \"threshold\": \"1000000\",\n                \"maxDiscount\": 200000,\n                \"currency\": null,\n                \"campaignDesc\": null,\n                \"label\": null,\n                \"id\": \"d70a2c14-3f59-45f7-ac63-a2611e6cdba5\",\n                \"_rid\": \"iAZiAJY2KzUYJBUCAAAABw==\",\n                \"_self\": \"dbs/iAZiAA==/colls/iAZiAJY2KzU=/docs/iAZiAJY2KzUYJBUCAAAABw==/\",\n                \"_etag\": \"\\\"6701083f-0000-2100-0000-62a1e86e0000\\\"\",\n                \"_attachments\": \"attachments/\",\n                \"name\": \"Promotional campaign\",\n                \"transactionId\": \"090000050000099\",\n                \"billAmt\": 1000000,\n                \"reinstatedOn\": \"2022-06-09T12:32:46.273Z\",\n                \"_ts\": 1654777966\n            },\n            \"validForAllCustomers\": false,\n            \"validProducts\": [\n                \"0100000001\" // coupon valid only on this item and not on the rest\n            ]\n        }\n    ],\n    \"error\": null,\n    \"status\": 200\n}"}],"_postman_id":"e0825acc-f560-4a88-af53-3c48893f7eff"}],"id":"2e45edfc-cd3f-4181-8476-f55cd07dd33b","_postman_id":"2e45edfc-cd3f-4181-8476-f55cd07dd33b","description":""},{"name":"Promotions","item":[{"name":"Evaluate","id":"99eaf399-69c9-4f33-a8b4-44ce643e61fb","request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"bill\": {\n        \"billAmt\": 105.5,\n        \"storeID\": \"13000\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"0100000063\",\n                \"quantity\": 1,\n                \"rate\": 35\n            }\n        ]\n    },\n    \"CDID\": \"C10044-00983345-0983345\"\n}","options":{"raw":{"language":"json"}}},"url":"{{promo-url}}/evaluate","description":"<p>This endpoint is responsible for returning all the promotions applicable on the customer’s cart based on the configuration defined in Swan AI.</p>\n<p><strong>Note</strong>: This endpoint returns promotions that were applicable ONLY at the time of calling the endpoint and does not track any additional information. For budgets to be updated, you must call the <code>/apply</code> endpoint with the results of this API call.</p>\n<p><strong>Note</strong>: Swan AI transaction type is fully supported for evaluation</p>\n","urlObject":{"path":["evaluate"],"host":["{{promo-url}}"],"query":[],"variable":[]}},"response":[{"id":"01560e1f-8806-490f-9629-bad439ebfbea","name":"Evaluate","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"bill\": {\n        \"billAmt\": 105.5,\n        \"storeID\": \"13000\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"0100000063\",\n                \"quantity\": 1,\n                \"rate\": 35\n            }\n        ]\n    },\n    \"CDID\": \"C10044-00983345-0983345\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/promotion/evaluate"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"[\n    {\n        \"promotionId\": \"09de9767-9271-4f1a-8f5d-6f268f28a0bb\",\n        \"ruleId\": \"a7be4455-8406-429b-a864-0a18a97e41ce\",\n        \"ruleDescription\": \"Direct discount 10% off on denim bermudaas upto 5\",\n        \"priority\": 1,\n        \"discountDetails\": {\n            \"discountType\": \"percentage_off\",\n            \"value\": 2,\n            \"cartItemIndex\": 0,\n            \"cartItemQuantityIndex\": 0,\n            \"metadata\": {\n                \"cartBundle\": false,\n                \"freeProduct\": false,\n                \"itemDiscount\": true,\n                \"orderDiscount\": false\n            }\n        }\n    },\n    {\n        \"promotionId\": \"09de9767-9271-4f1a-8f5d-6f268f28a0bb\",\n        \"ruleId\": \"a7be4455-8406-429b-a864-0a18a97e41ce\",\n        \"ruleDescription\": \"Direct discount 10% off on denim bermudaas upto 5\",\n        \"priority\": 1,\n        \"discountDetails\": {\n            \"discountType\": \"percentage_off\",\n            \"value\": 2,\n            \"cartItemIndex\": 0,\n            \"cartItemQuantityIndex\": 1,\n            \"metadata\": {\n                \"cartBundle\": false,\n                \"freeProduct\": false,\n                \"itemDiscount\": true,\n                \"orderDiscount\": false\n            }\n        }\n    }\n]"},{"id":"30d537a0-3480-4d7f-a163-0a888638268b","name":"Evaluate Invalid Body","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"0100000063\",\n                \"quantity\": 1,\n                \"rate\": 35\n            }\n        ]\n    },\n    \"CDID\": \"C10044-00983345-0983345\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/promotion/evaluate"},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"Invalid transaction in request body"},{"id":"7f790795-fa59-4788-89a9-6912d78d7835","name":"Not Authorized","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"bill\": {\n        \"billAmt\": 105.5,\n        \"storeID\": \"13000\"\n    },\n    \"billLineItems\": {\n        \"lineItems\": [\n            {\n                \"stockNo\": \"0100000063\",\n                \"quantity\": 1,\n                \"rate\": 35\n            }\n        ]\n    },\n    \"CDID\": \"C10044-00983345-0983345\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/promotion/evaluate"},"status":"Forbidden","code":403,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"Invalid claims in JWT"}],"_postman_id":"99eaf399-69c9-4f33-a8b4-44ce643e61fb"},{"name":"Apply","id":"d52531bf-a550-4258-a97e-19a25a037bfa","request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"transactionId\": \"joe-test\",\n    \"cdid\": \"CTEST09-27-00000001-319715\",\n    \"promotions\":[\n    {\n        \"promotionId\": \"89622398-95c5-4759-b8fa-02a3f3e482d9\",\n        \"ruleId\": \"e5834bef-9efd-4e0a-b696-1abe67706243\",\n        \"ruleDescription\": \"20 off on Denim Bermudaas\",\n        \"priority\": 1,\n        \"discountDetails\": {\n            \"discountType\": \"amount_off\",\n            \"value\": 20,\n            \"cartItemIndex\": 0,\n            \"cartItemQuantityIndex\": 0,\n            \"metadata\": {\n                \"cartBundle\": false,\n                \"freeProduct\": false,\n                \"itemDiscount\": true,\n                \"orderDiscount\": false\n            }\n        }\n    },\n    {\n        \"promotionId\": \"89622398-95c5-4759-b8fa-02a3f3e482d9\",\n        \"ruleId\": \"e5834bef-9efd-4e0a-b696-1abe67706243\",\n        \"ruleDescription\": \"20 off on Denim Bermudaas\",\n        \"priority\": 1,\n        \"discountDetails\": {\n            \"discountType\": \"amount_off\",\n            \"value\": 20,\n            \"cartItemIndex\": 0,\n            \"cartItemQuantityIndex\": 1,\n            \"metadata\": {\n                \"cartBundle\": false,\n                \"freeProduct\": false,\n                \"itemDiscount\": true,\n                \"orderDiscount\": false\n            }\n        }\n    },\n    {\n        \"promotionId\": \"89622398-95c5-4759-b8fa-02a3f3e482d9\",\n        \"ruleId\": \"e5834bef-9efd-4e0a-b696-1abe67706243\",\n        \"ruleDescription\": \"20 off on Denim Bermudaas\",\n        \"priority\": 1,\n        \"discountDetails\": {\n            \"discountType\": \"amount_off\",\n            \"value\": 20,\n            \"cartItemIndex\": 0,\n            \"cartItemQuantityIndex\": 2,\n            \"metadata\": {\n                \"cartBundle\": false,\n                \"freeProduct\": false,\n                \"itemDiscount\": true,\n                \"orderDiscount\": false\n            }\n        }\n    },\n    {\n        \"promotionId\": \"1329e18c-5ea1-41a8-aaa1-97278783f633\",\n        \"ruleId\": \"199979a4-587b-4911-846c-23f20f271b49\",\n        \"ruleDescription\": \"Buy Denim get Denim free\",\n        \"priority\": 1,\n        \"discountDetails\": {\n            \"discountType\": \"free_product\",\n            \"value\": 20,\n            \"cartItemIndex\": 0,\n            \"cartItemQuantityIndex\": 0,\n            \"metadata\": {\n                \"cartBundle\": true,\n                \"freeProduct\": true,\n                \"itemDiscount\": true,\n                \"orderDiscount\": false\n            }\n        }\n    }\n]}","options":{"raw":{"language":"json"}}},"url":"{{promo-url}}/promotion/apply","description":"<p>This endpoint is used to confirm the promotions that have been actually rendered to the customer. This endpoint must be called to update the budgets correctly only for the promotions that have been applied.</p>\n<p><strong>NOTE: Call this endpoint</strong> <strong><code>BEFORE</code></strong> <strong>the customer checks out to pay for their purchase.</strong></p>\n<p><strong>Note</strong>: In the time between calling <code>/evaluate</code> and <code>/apply</code> if some promotion(s) applicable on the customer’s cart have exceeded the budget, the <code>promoId</code> (s) of those promotions over budget will be returned in the response of the <code>/apply</code> call.</p>\n<p>The POS may then remove those discounts associated with the over budget promotions and call <code>/apply</code> again or just choose to call <code>/evaluate</code> once again to get the new list of applicable promotions on the users cart before calling <code>/apply</code></p>\n<p>When integrating with transactions API, send the relevant details under the promotionsApplied field as well after calling <code>/apply</code></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>\"appliedPromotions\": [{\n    \"promotionId\":\"398424d3-27da-4286-9f6f-617a07edb6d1\",\n    \"stockNo\": \"T25164\",\n    \"value\": 24.67\n}, ...]\n\n</code></pre>","urlObject":{"path":["promotion","apply"],"host":["{{promo-url}}"],"query":[],"variable":[]}},"response":[{"id":"cb836bdd-b9ab-43cc-b0ba-7601dfd2141f","name":"Apply","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"transactionId\": \"joe-test\",\n    \"cdid\": \"CTEST09-27-00000001-319715\",\n    \"promotions\":[\n    {\n        \"promotionId\": \"89622398-95c5-4759-b8fa-02a3f3e482d9\",\n        \"ruleId\": \"e5834bef-9efd-4e0a-b696-1abe67706243\",\n        \"ruleDescription\": \"20 off on Denim Bermudaas\",\n        \"priority\": 1,\n        \"discountDetails\": {\n            \"discountType\": \"amount_off\",\n            \"value\": 20,\n            \"cartItemIndex\": 0,\n            \"cartItemQuantityIndex\": 0,\n            \"metadata\": {\n                \"cartBundle\": false,\n                \"freeProduct\": false,\n                \"itemDiscount\": true,\n                \"orderDiscount\": false\n            }\n        }\n    },\n    {\n        \"promotionId\": \"89622398-95c5-4759-b8fa-02a3f3e482d9\",\n        \"ruleId\": \"e5834bef-9efd-4e0a-b696-1abe67706243\",\n        \"ruleDescription\": \"20 off on Denim Bermudaas\",\n        \"priority\": 1,\n        \"discountDetails\": {\n            \"discountType\": \"amount_off\",\n            \"value\": 20,\n            \"cartItemIndex\": 0,\n            \"cartItemQuantityIndex\": 1,\n            \"metadata\": {\n                \"cartBundle\": false,\n                \"freeProduct\": false,\n                \"itemDiscount\": true,\n                \"orderDiscount\": false\n            }\n        }\n    },\n    {\n        \"promotionId\": \"89622398-95c5-4759-b8fa-02a3f3e482d9\",\n        \"ruleId\": \"e5834bef-9efd-4e0a-b696-1abe67706243\",\n        \"ruleDescription\": \"20 off on Denim Bermudaas\",\n        \"priority\": 1,\n        \"discountDetails\": {\n            \"discountType\": \"amount_off\",\n            \"value\": 20,\n            \"cartItemIndex\": 0,\n            \"cartItemQuantityIndex\": 2,\n            \"metadata\": {\n                \"cartBundle\": false,\n                \"freeProduct\": false,\n                \"itemDiscount\": true,\n                \"orderDiscount\": false\n            }\n        }\n    },\n    {\n        \"promotionId\": \"1329e18c-5ea1-41a8-aaa1-97278783f633\",\n        \"ruleId\": \"199979a4-587b-4911-846c-23f20f271b49\",\n        \"ruleDescription\": \"Buy Denim get Denim free\",\n        \"priority\": 1,\n        \"discountDetails\": {\n            \"discountType\": \"free_product\",\n            \"value\": 20,\n            \"cartItemIndex\": 0,\n            \"cartItemQuantityIndex\": 0,\n            \"metadata\": {\n                \"cartBundle\": true,\n                \"freeProduct\": true,\n                \"itemDiscount\": true,\n                \"orderDiscount\": false\n            }\n        }\n    }\n]}","options":{"raw":{"language":"json"}}},"url":"{{url}}/promotion/apply"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"Promotions applied successfully"},{"id":"4347205f-c72e-4141-8aef-9564c1d80a1f","name":"Apply Error","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"transactionId\": \"joe-test\",\n    \"cdid\": \"CTEST09-27-00000001-319715\",\n    \"promotions\":[\n    {\n        \"promotionId\": \"89622398-95c5-4759-b8fa-02a3f3e482d9\",\n        \"ruleId\": \"e5834bef-9efd-4e0a-b696-1abe67706243\",\n        \"ruleDescription\": \"20 off on Denim Bermudaas\",\n        \"priority\": 1,\n        \"discountDetails\": {\n            \"discountType\": \"amount_off\",\n            \"value\": 20,\n            \"cartItemIndex\": 0,\n            \"cartItemQuantityIndex\": 0,\n            \"metadata\": {\n                \"cartBundle\": false,\n                \"freeProduct\": false,\n                \"itemDiscount\": true,\n                \"orderDiscount\": false\n            }\n        }\n    },\n    {\n        \"promotionId\": \"89622398-95c5-4759-b8fa-02a3f3e482d9\",\n        \"ruleId\": \"e5834bef-9efd-4e0a-b696-1abe67706243\",\n        \"ruleDescription\": \"20 off on Denim Bermudaas\",\n        \"priority\": 1,\n        \"discountDetails\": {\n            \"discountType\": \"amount_off\",\n            \"value\": 20,\n            \"cartItemIndex\": 0,\n            \"cartItemQuantityIndex\": 1,\n            \"metadata\": {\n                \"cartBundle\": false,\n                \"freeProduct\": false,\n                \"itemDiscount\": true,\n                \"orderDiscount\": false\n            }\n        }\n    },\n    {\n        \"promotionId\": \"89622398-95c5-4759-b8fa-02a3f3e482d9\",\n        \"ruleId\": \"e5834bef-9efd-4e0a-b696-1abe67706243\",\n        \"ruleDescription\": \"20 off on Denim Bermudaas\",\n        \"priority\": 1,\n        \"discountDetails\": {\n            \"discountType\": \"amount_off\",\n            \"value\": 20,\n            \"cartItemIndex\": 0,\n            \"cartItemQuantityIndex\": 2,\n            \"metadata\": {\n                \"cartBundle\": false,\n                \"freeProduct\": false,\n                \"itemDiscount\": true,\n                \"orderDiscount\": false\n            }\n        }\n    },\n    {\n        \"promotionId\": \"1329e18c-5ea1-41a8-aaa1-97278783f633\",\n        \"ruleId\": \"199979a4-587b-4911-846c-23f20f271b49\",\n        \"ruleDescription\": \"Buy Denim get Denim free\",\n        \"priority\": 1,\n        \"discountDetails\": {\n            \"discountType\": \"free_product\",\n            \"value\": 20,\n            \"cartItemIndex\": 0,\n            \"cartItemQuantityIndex\": 0,\n            \"metadata\": {\n                \"cartBundle\": true,\n                \"freeProduct\": true,\n                \"itemDiscount\": true,\n                \"orderDiscount\": false\n            }\n        }\n    }\n]}","options":{"raw":{"language":"json"}}},"url":"{{url}}/promotion/apply"},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n\t\"promotionsOverBudget\":[\"89622398-95c5-4759-b8fa-02a3f3e482d9\", \"1329e18c-5ea1-41a8-aaa1-97278783f633\"]\n}"},{"id":"69cd9816-3004-4084-b023-1eb3f8ff85fe","name":"Not Authorized","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"transactionId\": \"joe-test\",\n    \"cdid\": \"CTEST09-27-00000001-319715\",\n    \"promotions\":[\n    {\n        \"promotionId\": \"89622398-95c5-4759-b8fa-02a3f3e482d9\",\n        \"ruleId\": \"e5834bef-9efd-4e0a-b696-1abe67706243\",\n        \"ruleDescription\": \"20 off on Denim Bermudaas\",\n        \"priority\": 1,\n        \"discountDetails\": {\n            \"discountType\": \"amount_off\",\n            \"value\": 20,\n            \"cartItemIndex\": 0,\n            \"cartItemQuantityIndex\": 0,\n            \"metadata\": {\n                \"cartBundle\": false,\n                \"freeProduct\": false,\n                \"itemDiscount\": true,\n                \"orderDiscount\": false\n            }\n        }\n    },\n    {\n        \"promotionId\": \"89622398-95c5-4759-b8fa-02a3f3e482d9\",\n        \"ruleId\": \"e5834bef-9efd-4e0a-b696-1abe67706243\",\n        \"ruleDescription\": \"20 off on Denim Bermudaas\",\n        \"priority\": 1,\n        \"discountDetails\": {\n            \"discountType\": \"amount_off\",\n            \"value\": 20,\n            \"cartItemIndex\": 0,\n            \"cartItemQuantityIndex\": 1,\n            \"metadata\": {\n                \"cartBundle\": false,\n                \"freeProduct\": false,\n                \"itemDiscount\": true,\n                \"orderDiscount\": false\n            }\n        }\n    },\n    {\n        \"promotionId\": \"89622398-95c5-4759-b8fa-02a3f3e482d9\",\n        \"ruleId\": \"e5834bef-9efd-4e0a-b696-1abe67706243\",\n        \"ruleDescription\": \"20 off on Denim Bermudaas\",\n        \"priority\": 1,\n        \"discountDetails\": {\n            \"discountType\": \"amount_off\",\n            \"value\": 20,\n            \"cartItemIndex\": 0,\n            \"cartItemQuantityIndex\": 2,\n            \"metadata\": {\n                \"cartBundle\": false,\n                \"freeProduct\": false,\n                \"itemDiscount\": true,\n                \"orderDiscount\": false\n            }\n        }\n    },\n    {\n        \"promotionId\": \"1329e18c-5ea1-41a8-aaa1-97278783f633\",\n        \"ruleId\": \"199979a4-587b-4911-846c-23f20f271b49\",\n        \"ruleDescription\": \"Buy Denim get Denim free\",\n        \"priority\": 1,\n        \"discountDetails\": {\n            \"discountType\": \"free_product\",\n            \"value\": 20,\n            \"cartItemIndex\": 0,\n            \"cartItemQuantityIndex\": 0,\n            \"metadata\": {\n                \"cartBundle\": true,\n                \"freeProduct\": true,\n                \"itemDiscount\": true,\n                \"orderDiscount\": false\n            }\n        }\n    }\n]}","options":{"raw":{"language":"json"}}},"url":"{{url}}/promotion/apply"},"status":"Forbidden","code":403,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"Invalid claims in JWT"}],"_postman_id":"d52531bf-a550-4258-a97e-19a25a037bfa"},{"name":"Cancel","id":"24364005-aac4-4765-ae53-6e46d9cdffc4","request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"transactionId\": \"joe-test\",\n    \"cdid\": \"CTEST09-27-00000001-319715\"\n}","options":{"raw":{"language":"json"}}},"url":"{{promo-url}}/promotion/cancel","description":"<p>This endpoint is used to reverse the effects created by the <code>/apply</code> endpoint. On calling this endpoint with a valid <code>transactionId</code> and <code>CDID</code> which have been previously used to call <code>/apply</code> any budgets consumed will be reverted.</p>\n<p><strong>Note</strong>: This is generally used in the case of when a customer is unable to complete the payment or wants to change items within their cart.</p>\n","urlObject":{"path":["promotion","cancel"],"host":["{{promo-url}}"],"query":[],"variable":[]}},"response":[{"id":"b71e4e36-6993-46e4-ac4e-178ed0f3a9cc","name":"Cancel","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"transactionId\": \"joe-test\",\n    \"cdid\": \"CTEST09-27-00000001-319715\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/promotion/cancel"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"Promotions canceled successfully"},{"id":"bb12e4d6-34a4-41dc-bd92-f0c5e33a12e9","name":"Cancel Invalid Transaction","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"transactionId\": \"joe-test\",\n    \"cdid\": \"CTEST09-27-00000001-319715\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/promotion/cancel"},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"Invalid transaction in request body"},{"id":"5363e5ba-be7d-4776-a2ba-7730d257308b","name":"Cancel","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"transactionId\": \"joe-test\",\n    \"cdid\": \"CTEST09-27-00000001-319715\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/promotion/cancel"},"status":"Forbidden","code":403,"_postman_previewlanguage":"Text","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"Invalid claims in JWT"}],"_postman_id":"24364005-aac4-4765-ae53-6e46d9cdffc4"}],"id":"e4b09fca-99dd-4003-b4e5-af3a40b57dac","description":"<h1 id=\"introduction\">Introduction</h1>\n<hr />\n<p>The Promotion Evaluation API provides a collection of HTTP endpoints that are to be used at the Point of Sale (POS) to render the discounts applicable based on the rules defined in the promotion campaign front end in the Swan AI web application.</p>\n<p>In order to use the Promotions module in Swan AI, it needs to be integrated on the POS (Point of Sale) machines. Once they are integrated with our API, they would be able to render the discounts applicable based on the promotions that are published.</p>\n<h2 id=\"workflow\">Workflow</h2>\n<hr />\n<img src=\"https://content.pstmn.io/b634dcee-dd9a-4f19-89f0-8132813f43ee/V29ya2Zsb3cuanBn\" alt />\n\n<ol>\n<li><p>The customer comes to the POS counter and the cashier starts to scan the items in the cart.</p>\n</li>\n<li><p>The POS machine hits the <code>/evaluate</code> endpoint to render all the applicable promotions based on the items scanned in the cart. The cashier can hit this endpoint multiple times whenever the total items scanned has changed. Once all the items are scanned, then the cashier can hit the endpoint to render all the applicable promotions.</p>\n</li>\n<li><p>Now the POS machine needs to hit the <code>/apply</code> endpoint in order to apply all the applicable effects from the published promotions.</p>\n</li>\n<li><p>Finally the POS machine can complete the payment / transaction.</p>\n</li>\n</ol>\n<p>By this stage, the applicable promotions would have been applied and the transaction is complete.</p>\n<p>When there is a situation where the customer is not able to make payment or adds a new item to the cart at the last minute then the following steps can be taken to revert the effects applied by the promotion.</p>\n<ol>\n<li><p>The POS machine needs to hit the <code>/cancel</code> endpoint. This would revert all the effects that were applied.</p>\n</li>\n<li><p>The transaction can be cancelled in the POS machine.</p>\n</li>\n</ol>\n","_postman_id":"e4b09fca-99dd-4003-b4e5-af3a40b57dac"},{"name":"Promotions V2","item":[{"name":"Evaluate","id":"24781a00-477b-4832-a0ce-c014e53e404a","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{jwt}}"}],"body":{"mode":"raw","raw":"{\n  \"client\": \"{{client}}\",\n  \"CDID\": \"{{cdid}}\",\n  \"customer\": {\n    \"customerDetails\": {\n      \"mobile\": \"{{mobile}}\",\n      \"name\": \"Test\"\n    }\n  },\n  \"bill\": {\n    \"billNumber\": \"POSTMAN-EVAL-1\",\n    \"storeID\": \"SPF2032\",\n    \"billAmt\": 60.0,\n    \"billGrossAmount\": 60.0,\n    \"currency\": \"AED\",\n    \"billType\": \"S\"\n  },\n  \"billLineItems\": {\n    \"lineItems\": [\n      {\n        \"stockNo\": \"92222222\",\n        \"description\": \"Denim\",\n        \"quantity\": 5,\n        \"rate\": 12.0\n      }\n    ]\n  },\n  \"paymentMode\": {\n    \"paymentModeDetails\": []\n  },\n  \"coupon\": {\n    \"couponDetails\": {\n      \"couponCode\": \"\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{basket-url}}/api/v1/basket/evaluate","description":"<p>POST /api/v1/basket/evaluate</p>\n<p>Basket-service endpoint. Tenant (<code>client</code>) is resolved JWT-first: the <code>client</code> claim on the JWT wins; otherwise the body's <code>client</code> field, then <code>?client=</code> query, then <code>X-Client-ID</code> header.</p>\n<p>Env vars: <code>{{basket-url}}</code> (e.g. <code>http://localhost:8080</code>), <code>{{client}}</code>, <code>{{cdid}}</code>, <code>{{mobile}}</code>, <code>{{jwt}}</code>.</p>\n<p>CDID is optional; when omitted the service loads the customer by <code>(client, mobile)</code> from client-db.</p>\n","urlObject":{"path":["api","v1","basket","evaluate"],"host":["{{basket-url}}"],"query":[],"variable":[]}},"response":[{"id":"374cf26a-3fe5-424f-9c16-605d150453b1","name":"Evaluate — Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{jwt}}"}],"body":{"mode":"raw","raw":"{\n  \"client\": \"{{client}}\",\n  \"CDID\": \"{{cdid}}\",\n  \"customer\": {\n    \"customerDetails\": {\n      \"mobile\": \"{{mobile}}\",\n      \"name\": \"Test\"\n    }\n  },\n  \"bill\": {\n    \"billNumber\": \"POSTMAN-EVAL-1\",\n    \"storeID\": \"SPF2032\",\n    \"billAmt\": 60.0,\n    \"billGrossAmount\": 60.0,\n    \"currency\": \"AED\",\n    \"billType\": \"S\"\n  },\n  \"billLineItems\": {\n    \"lineItems\": [\n      {\n        \"stockNo\": \"92222222\",\n        \"description\": \"Denim\",\n        \"quantity\": 5,\n        \"rate\": 12.0\n      }\n    ]\n  },\n  \"paymentMode\": {\n    \"paymentModeDetails\": []\n  },\n  \"coupon\": {\n    \"couponDetails\": {\n      \"couponCode\": \"\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{basket-url}}/api/v1/basket/evaluate","description":"POST /api/v1/basket/evaluate\n\nBasket-service endpoint. Tenant (`client`) is resolved JWT-first: the `client` claim on the JWT wins; otherwise the body's `client` field, then `?client=` query, then `X-Client-ID` header.\n\nEnv vars: `{{basket-url}}` (e.g. `http://localhost:8080`), `{{client}}`, `{{cdid}}`, `{{mobile}}`, `{{jwt}}`.\n\nCDID is optional; when omitted the service loads the customer by `(client, mobile)` from client-db."},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"traceId\": \"01JXXXXAMPLETRACE0001\",\n  \"totalDiscountAmount\": 175.0,\n  \"totalPoints\": 50,\n  \"appliedOnItems\": [\n    {\n      \"promoID\": \"09de9767-9271-4f1a-8f5d-6f268f28a0bb\",\n      \"ruleID\": \"a7be4455-8406-429b-a864-0a18a97e41ce\",\n      \"itemID\": \"SKU-001\",\n      \"quantity\": 2,\n      \"discountTotal\": 100.0,\n      \"pointsEarned\": 25,\n      \"metadata\": {\n        \"ruleDescription\": \"10% off denim bermudas (cap 5)\"\n      }\n    },\n    {\n      \"promoID\": \"09de9767-9271-4f1a-8f5d-6f268f28a0bb\",\n      \"ruleID\": \"b9be4455-8406-429b-a864-0a18a97e41ce\",\n      \"itemID\": \"SKU-002\",\n      \"quantity\": 1,\n      \"discountTotal\": 75.0,\n      \"pointsEarned\": 25,\n      \"metadata\": {\n        \"ruleDescription\": \"Bundle bonus\"\n      }\n    }\n  ],\n  \"summary\": {\n    \"promotionsApplied\": 1,\n    \"promotionsEvaluated\": 4,\n    \"couponApplied\": \"SUMMER10\"\n  }\n}"},{"id":"d46e81d4-681b-4b6a-9db6-bbb23c93afeb","name":"Evaluate — Invalid Body","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{jwt}}"}],"body":{"mode":"raw","raw":"{\n  \"client\": \"{{client}}\",\n  \"CDID\": \"{{cdid}}\",\n  \"customer\": {\n    \"customerDetails\": {\n      \"mobile\": \"{{mobile}}\",\n      \"name\": \"Test\"\n    }\n  },\n  \"bill\": {\n    \"billNumber\": \"POSTMAN-EVAL-1\",\n    \"storeID\": \"SPF2032\",\n    \"billAmt\": 60.0,\n    \"billGrossAmount\": 60.0,\n    \"currency\": \"AED\",\n    \"billType\": \"S\"\n  },\n  \"billLineItems\": {\n    \"lineItems\": [\n      {\n        \"stockNo\": \"92222222\",\n        \"description\": \"Denim\",\n        \"quantity\": 5,\n        \"rate\": 12.0\n      }\n    ]\n  },\n  \"paymentMode\": {\n    \"paymentModeDetails\": []\n  },\n  \"coupon\": {\n    \"couponDetails\": {\n      \"couponCode\": \"\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{basket-url}}/api/v1/basket/evaluate","description":"POST /api/v1/basket/evaluate\n\nBasket-service endpoint. Tenant (`client`) is resolved JWT-first: the `client` claim on the JWT wins; otherwise the body's `client` field, then `?client=` query, then `X-Client-ID` header.\n\nEnv vars: `{{basket-url}}` (e.g. `http://localhost:8080`), `{{client}}`, `{{cdid}}`, `{{mobile}}`, `{{jwt}}`.\n\nCDID is optional; when omitted the service loads the customer by `(client, mobile)` from client-db."},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"INVALID_REQUEST\",\n  \"message\": \"customer.customerDetails.mobile is required\"\n}"},{"id":"ac35296c-d05f-4fc1-b446-f55d118387b6","name":"Evaluate — Not Authorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{jwt}}"}],"body":{"mode":"raw","raw":"{\n  \"client\": \"{{client}}\",\n  \"CDID\": \"{{cdid}}\",\n  \"customer\": {\n    \"customerDetails\": {\n      \"mobile\": \"{{mobile}}\",\n      \"name\": \"Test\"\n    }\n  },\n  \"bill\": {\n    \"billNumber\": \"POSTMAN-EVAL-1\",\n    \"storeID\": \"SPF2032\",\n    \"billAmt\": 60.0,\n    \"billGrossAmount\": 60.0,\n    \"currency\": \"AED\",\n    \"billType\": \"S\"\n  },\n  \"billLineItems\": {\n    \"lineItems\": [\n      {\n        \"stockNo\": \"92222222\",\n        \"description\": \"Denim\",\n        \"quantity\": 5,\n        \"rate\": 12.0\n      }\n    ]\n  },\n  \"paymentMode\": {\n    \"paymentModeDetails\": []\n  },\n  \"coupon\": {\n    \"couponDetails\": {\n      \"couponCode\": \"\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{basket-url}}/api/v1/basket/evaluate","description":"POST /api/v1/basket/evaluate\n\nBasket-service endpoint. Tenant (`client`) is resolved JWT-first: the `client` claim on the JWT wins; otherwise the body's `client` field, then `?client=` query, then `X-Client-ID` header.\n\nEnv vars: `{{basket-url}}` (e.g. `http://localhost:8080`), `{{client}}`, `{{cdid}}`, `{{mobile}}`, `{{jwt}}`.\n\nCDID is optional; when omitted the service loads the customer by `(client, mobile)` from client-db."},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"UNAUTHORIZED\",\n  \"message\": \"Invalid claims in JWT\"\n}"}],"_postman_id":"24781a00-477b-4832-a0ce-c014e53e404a"},{"name":"Apply","id":"fc6470fa-a7b4-44b0-ae05-99df9afa95d3","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{jwt}}"}],"body":{"mode":"raw","raw":"{\n  \"transactionId\": \"POSTMAN-APPLY-1\",\n  \"CDID\": \"{{cdid}}\",\n  \"appliedOnItems\": [\n    {\n      \"stockNo\": \"92222222\",\n      \"description\": \"Denim\",\n      \"quantity\": 3,\n      \"promoId\": \"promo-itest-denim-pack\",\n      \"promoVersion\": 1,\n      \"ruleId\": \"r3\",\n      \"originalPricePerUnit\": 12,\n      \"discountPerUnit\": 2,\n      \"discountTotal\": 6,\n      \"finalPricePerUnit\": 10,\n      \"receiptMessage\": \"Denim discount\",\n      \"type\": \"discount\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"{{basket-url}}/api/v1/basket/apply","description":"<p>POST /api/v1/basket/apply</p>\n<p>Basket-service endpoint. Tenant (<code>client</code>) is resolved JWT-first: the <code>client</code> claim on the JWT wins; otherwise the body's <code>client</code> field, then <code>?client=</code> query, then <code>X-Client-ID</code> header.</p>\n<p>Env vars: <code>{{basket-url}}</code> (e.g. <code>http://localhost:8080</code>), <code>{{client}}</code>, <code>{{cdid}}</code>, <code>{{mobile}}</code>, <code>{{jwt}}</code>.</p>\n<p>Reserves budget for the listed <code>appliedOnItems</code> and redeems any coupon. Idempotent on <code>transactionId</code>.</p>\n","urlObject":{"path":["api","v1","basket","apply"],"host":["{{basket-url}}"],"query":[],"variable":[]}},"response":[{"id":"03acf1f5-cea7-4240-b18c-01e26f841ea9","name":"Apply — Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{jwt}}"}],"body":{"mode":"raw","raw":"{\n  \"transactionId\": \"POSTMAN-APPLY-1\",\n  \"CDID\": \"{{cdid}}\",\n  \"appliedOnItems\": [\n    {\n      \"stockNo\": \"92222222\",\n      \"description\": \"Denim\",\n      \"quantity\": 3,\n      \"promoId\": \"promo-itest-denim-pack\",\n      \"promoVersion\": 1,\n      \"ruleId\": \"r3\",\n      \"originalPricePerUnit\": 12,\n      \"discountPerUnit\": 2,\n      \"discountTotal\": 6,\n      \"finalPricePerUnit\": 10,\n      \"receiptMessage\": \"Denim discount\",\n      \"type\": \"discount\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"{{basket-url}}/api/v1/basket/apply","description":"POST /api/v1/basket/apply\n\nBasket-service endpoint. Tenant (`client`) is resolved JWT-first: the `client` claim on the JWT wins; otherwise the body's `client` field, then `?client=` query, then `X-Client-ID` header.\n\nEnv vars: `{{basket-url}}` (e.g. `http://localhost:8080`), `{{client}}`, `{{cdid}}`, `{{mobile}}`, `{{jwt}}`.\n\nReserves budget for the listed `appliedOnItems` and redeems any coupon. Idempotent on `transactionId`."},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"confirmationId\": \"bc_01JXXXEXAMPLE\",\n  \"totalDiscount\": 175.0,\n  \"budgetReservations\": [\n    {\n      \"promoId\": \"09de9767-9271-4f1a-8f5d-6f268f28a0bb\",\n      \"version\": 3,\n      \"amount\": 175.0,\n      \"reserved\": true\n    }\n  ],\n  \"couponRedemption\": {\n    \"couponCode\": \"SUMMER10\",\n    \"status\": \"redeemed\",\n    \"redemptionId\": \"cr_01JXXXEXAMPLE\"\n  }\n}"},{"id":"19912d6b-291d-4f45-ad3a-46021e74d4fc","name":"Apply — Budget Exceeded","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{jwt}}"}],"body":{"mode":"raw","raw":"{\n  \"transactionId\": \"POSTMAN-APPLY-1\",\n  \"CDID\": \"{{cdid}}\",\n  \"appliedOnItems\": [\n    {\n      \"stockNo\": \"92222222\",\n      \"description\": \"Denim\",\n      \"quantity\": 3,\n      \"promoId\": \"promo-itest-denim-pack\",\n      \"promoVersion\": 1,\n      \"ruleId\": \"r3\",\n      \"originalPricePerUnit\": 12,\n      \"discountPerUnit\": 2,\n      \"discountTotal\": 6,\n      \"finalPricePerUnit\": 10,\n      \"receiptMessage\": \"Denim discount\",\n      \"type\": \"discount\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"{{basket-url}}/api/v1/basket/apply","description":"POST /api/v1/basket/apply\n\nBasket-service endpoint. Tenant (`client`) is resolved JWT-first: the `client` claim on the JWT wins; otherwise the body's `client` field, then `?client=` query, then `X-Client-ID` header.\n\nEnv vars: `{{basket-url}}` (e.g. `http://localhost:8080`), `{{client}}`, `{{cdid}}`, `{{mobile}}`, `{{jwt}}`.\n\nReserves budget for the listed `appliedOnItems` and redeems any coupon. Idempotent on `transactionId`."},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"BUDGET_EXCEEDED\",\n  \"message\": \"one or more promotions are over budget\",\n  \"promotionsOverBudget\": [\n    \"89622398-95c5-4759-b8fa-02a3f3e482d9\",\n    \"1329e18c-5ea1-41a8-aaa1-97278783f633\"\n  ]\n}"},{"id":"61e23b22-057c-4480-bddf-58907bc896df","name":"Apply — Not Authorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{jwt}}"}],"body":{"mode":"raw","raw":"{\n  \"transactionId\": \"POSTMAN-APPLY-1\",\n  \"CDID\": \"{{cdid}}\",\n  \"appliedOnItems\": [\n    {\n      \"stockNo\": \"92222222\",\n      \"description\": \"Denim\",\n      \"quantity\": 3,\n      \"promoId\": \"promo-itest-denim-pack\",\n      \"promoVersion\": 1,\n      \"ruleId\": \"r3\",\n      \"originalPricePerUnit\": 12,\n      \"discountPerUnit\": 2,\n      \"discountTotal\": 6,\n      \"finalPricePerUnit\": 10,\n      \"receiptMessage\": \"Denim discount\",\n      \"type\": \"discount\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"{{basket-url}}/api/v1/basket/apply","description":"POST /api/v1/basket/apply\n\nBasket-service endpoint. Tenant (`client`) is resolved JWT-first: the `client` claim on the JWT wins; otherwise the body's `client` field, then `?client=` query, then `X-Client-ID` header.\n\nEnv vars: `{{basket-url}}` (e.g. `http://localhost:8080`), `{{client}}`, `{{cdid}}`, `{{mobile}}`, `{{jwt}}`.\n\nReserves budget for the listed `appliedOnItems` and redeems any coupon. Idempotent on `transactionId`."},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"UNAUTHORIZED\",\n  \"message\": \"Invalid claims in JWT\"\n}"}],"_postman_id":"fc6470fa-a7b4-44b0-ae05-99df9afa95d3"},{"name":"Cancel","id":"b609041c-b6a1-44fb-ae81-22d6d6bf5ae6","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{jwt}}"}],"body":{"mode":"raw","raw":"{\n  \"transactionId\": \"POSTMAN-APPLY-1\",\n  \"CDID\": \"{{cdid}}\",\n  \"cancelReason\": \"customer returned item\"\n}","options":{"raw":{"language":"json"}}},"url":"{{basket-url}}/api/v1/basket/cancel","description":"<p>POST /api/v1/basket/cancel</p>\n<p>Basket-service endpoint. Tenant (<code>client</code>) is resolved JWT-first: the <code>client</code> claim on the JWT wins; otherwise the body's <code>client</code> field, then <code>?client=</code> query, then <code>X-Client-ID</code> header.</p>\n<p>Env vars: <code>{{basket-url}}</code> (e.g. <code>http://localhost:8080</code>), <code>{{client}}</code>, <code>{{cdid}}</code>, <code>{{mobile}}</code>, <code>{{jwt}}</code>.</p>\n<p>Restores budget + coupon redemption for the confirmation produced by <code>/apply</code>. Idempotent on <code>transactionId</code>.</p>\n","urlObject":{"path":["api","v1","basket","cancel"],"host":["{{basket-url}}"],"query":[],"variable":[]}},"response":[{"id":"cb492998-9e95-4496-8840-5500f39d329f","name":"Cancel — Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{jwt}}"}],"body":{"mode":"raw","raw":"{\n  \"transactionId\": \"POSTMAN-APPLY-1\",\n  \"CDID\": \"{{cdid}}\",\n  \"cancelReason\": \"customer returned item\"\n}","options":{"raw":{"language":"json"}}},"url":"{{basket-url}}/api/v1/basket/cancel","description":"POST /api/v1/basket/cancel\n\nBasket-service endpoint. Tenant (`client`) is resolved JWT-first: the `client` claim on the JWT wins; otherwise the body's `client` field, then `?client=` query, then `X-Client-ID` header.\n\nEnv vars: `{{basket-url}}` (e.g. `http://localhost:8080`), `{{client}}`, `{{cdid}}`, `{{mobile}}`, `{{jwt}}`.\n\nRestores budget + coupon redemption for the confirmation produced by `/apply`. Idempotent on `transactionId`."},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"success\": true,\n  \"confirmationId\": \"bc_01JXXXEXAMPLE\",\n  \"budgetRestorations\": [\n    {\n      \"promoId\": \"09de9767-9271-4f1a-8f5d-6f268f28a0bb\",\n      \"version\": 3,\n      \"amount\": 175.0,\n      \"restored\": true\n    }\n  ],\n  \"couponRestoration\": {\n    \"couponCode\": \"SUMMER10\",\n    \"status\": \"restored\"\n  }\n}"},{"id":"6e1ec6e5-b3c0-41cf-b8d7-564a804f1570","name":"Cancel — Invalid Body","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{jwt}}"}],"body":{"mode":"raw","raw":"{\n  \"transactionId\": \"POSTMAN-APPLY-1\",\n  \"CDID\": \"{{cdid}}\",\n  \"cancelReason\": \"customer returned item\"\n}","options":{"raw":{"language":"json"}}},"url":"{{basket-url}}/api/v1/basket/cancel","description":"POST /api/v1/basket/cancel\n\nBasket-service endpoint. Tenant (`client`) is resolved JWT-first: the `client` claim on the JWT wins; otherwise the body's `client` field, then `?client=` query, then `X-Client-ID` header.\n\nEnv vars: `{{basket-url}}` (e.g. `http://localhost:8080`), `{{client}}`, `{{cdid}}`, `{{mobile}}`, `{{jwt}}`.\n\nRestores budget + coupon redemption for the confirmation produced by `/apply`. Idempotent on `transactionId`."},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"INVALID_REQUEST\",\n  \"message\": \"confirmationId is required\"\n}"},{"id":"45582682-afda-44b0-a761-783947c53fea","name":"Cancel — Not Authorized","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{jwt}}"}],"body":{"mode":"raw","raw":"{\n  \"transactionId\": \"POSTMAN-APPLY-1\",\n  \"CDID\": \"{{cdid}}\",\n  \"cancelReason\": \"customer returned item\"\n}","options":{"raw":{"language":"json"}}},"url":"{{basket-url}}/api/v1/basket/cancel","description":"POST /api/v1/basket/cancel\n\nBasket-service endpoint. Tenant (`client`) is resolved JWT-first: the `client` claim on the JWT wins; otherwise the body's `client` field, then `?client=` query, then `X-Client-ID` header.\n\nEnv vars: `{{basket-url}}` (e.g. `http://localhost:8080`), `{{client}}`, `{{cdid}}`, `{{mobile}}`, `{{jwt}}`.\n\nRestores budget + coupon redemption for the confirmation produced by `/apply`. Idempotent on `transactionId`."},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"code\": \"UNAUTHORIZED\",\n  \"message\": \"Invalid claims in JWT\"\n}"}],"_postman_id":"b609041c-b6a1-44fb-ae81-22d6d6bf5ae6"}],"id":"fd688068-738f-4ac7-a9da-ec878a608e4f","description":"<p>Basket-service endpoints (POST /api/v1/basket/evaluate | apply | cancel). JWT-first tenant resolution. Set <code>{{basket-url}}</code> to the service base (e.g. <a href=\"http://localhost:8080\">http://localhost:8080</a>) and <code>{{jwt}}</code> to a Bearer token.</p>\n","_postman_id":"fd688068-738f-4ac7-a9da-ec878a608e4f"},{"name":"Masters","item":[{"name":"Update Item Master API","id":"70fa9796-97c2-4685-952b-6a14e36bd167","request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"},{"key":"","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"items\": [\r\n        {\r\n            \"itemId\": \"BSR-14110-0\", // mandatory, lowest SKU and should be mapped with stock no in transaction\r\n            \"itemDescription\": \"CREAM  PUMP 10 ML\",\r\n            \"category\": \"Pharmacy\",\r\n            \"subcategory\": \"Medical\",\r\n            \"retailCategory\": \"Health Care.Back Wall Medicine.Skin\",\r\n            \"brand\": \"Zovirax\",\r\n            \"manufacturer\": \"Gsk Pharma\",\r\n            \"cat1\": \"Health Care\",\r\n            \"cat2\": \"Back Wall Medicine\",\r\n            \"cat3\": \"Skin\",\r\n            \"cat4\": \"Anti-Viral\",\r\n            \"Department_id\": \"01\",\r\n            \"Department_name\": \"Apotik\",\r\n            \"productimageurl\": \"http://abcdef.com\",\r\n            \"purchaseStatus\": \"Discontinued\",\r\n            \"unitPerCase\": 1,\r\n            \"controlledorsemicontrolled\": null,\r\n            \"storagecode\": \"15 - 25 °C\",\r\n            \"prescribed\": null,\r\n            \"unitPrice\": 30,\r\n            \"taxCode\": \"ZERO\",\r\n            \"priceInclVat\": \"30\",\r\n            \"concept\": \"BSP\",\r\n            \"businessStatus\": \"Non-Active\",\r\n            \"categoryBreakdown\": \"HEALTH CARE\",\r\n            \"actualManufacturer\": \"Gsk Pharma\",\r\n            \"businessTag\": \"Xpressions\",\r\n            \"purchaseUnit\": \"Pack\",\r\n            \"salesPrice\": \"30\",\r\n            \"salesUnit\": \"Pack\"\r\n            \r\n            // ... Rest Field Here\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{client}}/bulk-product-upload","description":"<p>This HTTP POST <strong>Bulk Products API</strong> is designed to facilitate uploading a large number of item objects, along with their respective attributes, in a single API request.<br />Use the /get-auth-token API to obtain the token required for authentication.</p>\n<p><b>NOTE:</b></p>\n<p>- Items can be added as an array of objects and only a maximum of 5000 items or 5MB can be sent at once.<br />- itemId is required. Items without itemId will not be processed.</p>\n<p><b>ERRORS Response:</b></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Error Code</strong></th>\n<th><strong>Error Message</strong></th>\n<th><strong>Error Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>401</strong></td>\n<td>You are not Authorized.</td>\n<td>Re-check your authorization token provided. The token expires after 24 hours.</td>\n</tr>\n<tr>\n<td><strong>400</strong></td>\n<td>Field <code>items</code> missing from request body.</td>\n<td>Request body does not have the field items. Provide the field items.</td>\n</tr>\n<tr>\n<td><strong>400</strong></td>\n<td>Invalid value type. Field <code>items</code> should be an array.</td>\n<td>Values in items is not an array. The API only accepts an array of objects.</td>\n</tr>\n<tr>\n<td><strong>400</strong></td>\n<td>Items does not have any values. Atleast 1 value should be provided.</td>\n<td>The items field is empty and does not have any objects. Please add at least 1 item object.</td>\n</tr>\n<tr>\n<td><strong>400</strong></td>\n<td>The request body is larger than 5,000 items and exceeds the maximum permissible limit.</td>\n<td>Items should not exceed a size of more than 5MB or 5000 objects.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["{{client}}","bulk-product-upload"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"42ff8b6b-4e6f-4dd5-ad7f-ee75b154f698","name":"400 - Atleast 1 value should be provided","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnQiOiJzd2FuLXRlc3QiLCJwdXJwb3NlIjoiYXBpLWF1dGgiLCJpYXQiOjE3MjU5ODAyNzQsImV4cCI6MTcyNjA2NjY3NH0.Ody9G892WWWvyYEeYTmmt85DAQIFvPFCtuoxCxLXQNk","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"items\": []\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base-url-prod}}/{{client}}/bulk-product-upload"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 10 Sep 2024 15:31:17 GMT"},{"key":"Server","value":"Kestrel"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Items does not have any values. Atleast 1 value should be provided\"\n}"},{"id":"0dceb705-f997-4560-9a2a-6c6922deb9ec","name":"200 - Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnQiOiJzd2FuLXRlc3QiLCJwdXJwb3NlIjoiYXBpLWF1dGgiLCJpYXQiOjE3MjU5ODAyNzQsImV4cCI6MTcyNjA2NjY3NH0.Ody9G892WWWvyYEeYTmmt85DAQIFvPFCtuoxCxLXQNk","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"items\": [\r\n        {\r\n            \"itemId\": \"78945\", //required - stock no of the product\r\n            \"productName\": \"Leather Jackets\", // - product name to display in email\r\n            \"productUrl\": \"https://www.mitra10.com/toto-cw422j-dual-flush-soft-closing-seat-cover-toilet-duduk\", // - url to be redirected on click  - e.g -  https://www.mitra10.com/toto-cw422j-dual-flush-soft-closing-seat-cover-toilet-duduk\r\n            \"productPrice\": \"1975000\", //  - price of the product -eg - 1975000\r\n            \"productImageUrl\": \"https://swift-thumbor.sirclocdn.com/unsafe/960x960/filters:format(webp):quality(90)/web.mitra10.com/media/catalog/product/0/2/0200013135_website_2.jpg\" // -  url image of the product -e.g - https://swift-thumbor.sirclocdn.com/unsafe/960x960/filters:format(webp):quality(90)/web.mitra10.com/media/catalog/product/0/2/0200013135_website_2.jpg\r\n        },\r\n        {\r\n            \"itemId\": \"56432\", //required - stock no of the product\r\n            \"productName\": \"Running Shoes\", // - product name to display in email\r\n            \"productUrl\": \"https://www.mitra10.com/toto-cw422j-dual-flush-soft-closing-seat-cover-toilet-duduk\", // - url to be redirected on click  - e.g -  https://www.mitra10.com/toto-cw422j-dual-flush-soft-closing-seat-cover-toilet-duduk\r\n            \"productPrice\": \"1975000\", //  - price of the product -eg - 1975000\r\n            \"productImageUrl\": \"https://swift-thumbor.sirclocdn.com/unsafe/960x960/filters:format(webp):quality(90)/web.mitra10.com/media/catalog/product/0/2/0200013135_website_2.jpg\" // -  url image of the product -e.g - https://swift-thumbor.sirclocdn.com/unsafe/960x960/filters:format(webp):quality(90)/web.mitra10.com/media/catalog/product/0/2/0200013135_website_2.jpg   \r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base-url-prod}}/{{client}}/bulk-product-upload"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 10 Sep 2024 15:18:21 GMT"},{"key":"Server","value":"Kestrel"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Bulk Upload Initiated - Batch ID: 1725981500523\"\n}"},{"id":"42314cea-d0b1-46eb-98c8-25504afbd116","name":"400 - Not Authorized","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"items\": []\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base-url-prod}}/{{client}}/bulk-product-upload"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 10 Sep 2024 15:37:55 GMT"},{"key":"Server","value":"Kestrel"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You are not Authorized\"\n}"},{"id":"753eadbc-be17-4c67-8f75-33c97f69d8a1","name":"400 - Items missing from request body","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnQiOiJzd2FuLXRlc3QiLCJwdXJwb3NlIjoiYXBpLWF1dGgiLCJpYXQiOjE3MjU5ODAyNzQsImV4cCI6MTcyNjA2NjY3NH0.Ody9G892WWWvyYEeYTmmt85DAQIFvPFCtuoxCxLXQNk","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{base-url-prod}}/{{client}}/bulk-product-upload"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Tue, 10 Sep 2024 15:22:01 GMT"},{"key":"Server","value":"Kestrel"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Field `items` missing from request body\"\n}"}],"_postman_id":"70fa9796-97c2-4685-952b-6a14e36bd167"},{"name":"Update Store Master API","id":"52eebe6b-cca7-4c51-a83a-c05fc762a73b","request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"},{"key":"client","value":"{{client}}","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"storeId\": \"12340000\", // Required\r\n        \"storeName\": \"abcxyz\", \r\n        \"businessUnit\": \"Pharmacy\",\r\n        \"profile\": \"StandalonePharmacy\",\r\n        \"address\": \"abcdef\",\r\n        \"phonenumber\": \"917897856666\",\r\n        \"status\": \"Operating\",\r\n        \"currency\": \"Taka\",\r\n        \"country\": \"Bangaldesh\",\r\n        \"updatedAt\": \"2025-08-04T09:42:12.893Z\",\r\n        \"city\": \"Dhaka\"\r\n        // ... Rest Field Here\r\n\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{client}}/update-store-master","urlObject":{"path":["{{client}}","update-store-master"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"185a659d-665a-456e-9739-c62e54d792bc","name":"200 - Update Store Master API","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"},{"key":"client","value":"{{client}}","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"storeId\": \"12340000\", // Required\r\n        \"storeName\": \"abcxyz\", \r\n        \"businessUnit\": \"Pharmacy\",\r\n        \"profile\": \"StandalonePharmacy\",\r\n        \"address\": \"abcdef\",\r\n        \"phonenumber\": \"917897856666\",\r\n        \"status\": \"Operating\",\r\n        \"currency\": \"Taka\",\r\n        \"country\": \"Bangaldesh\",\r\n        \"updatedAt\": \"2025-08-04T09:42:12.893Z\",\r\n        \"city\": \"Dhaka\"\r\n        // ... Rest Field Here\r\n\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"{{url}}/{{client}}/update-store-master"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Date","value":"Fri, 23 Jan 2026 12:51:47 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"request-context","value":"appId="},{"key":"x-trace-id","value":"2df3b52a7a07f71f2426eee78b427baa"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Success\"\n}"}],"_postman_id":"52eebe6b-cca7-4c51-a83a-c05fc762a73b"}],"id":"48b2a965-23ae-42c6-bc45-922e721ae34a","_postman_id":"48b2a965-23ae-42c6-bc45-922e721ae34a","description":""}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"key":"content-type","value":"aplication/json"}]}