{"info":{"_postman_id":"b056ca0a-eb45-47df-a070-fb212fa9bcd7","name":"Prime OneAPI - API Documentation","description":"<html><head></head><body><h3 id=\"primeanalytics-oneapi-services-overview\">PrimeAnalytics OneAPI Services Overview</h3>\n<p>PrimeAnalytics offers a credit scoring platform tailored for financial institutions and credit bureaus in emerging markets. Our platform helps these organizations acquire more reliable data about both existing and potential customers, as well as reach unserved market segments.</p>\n<p>PrimeAnalytics' Telco Score and Address Verification API services are now accessible via OneAPI.</p>\n<h3 id=\"api-integration\">API Integration</h3>\n<p>Financial institutions can seamlessly integrate these services through REST API over the internet. The integration involves two distinct API calls:</p>\n<ol>\n<li><p><strong>Authorization</strong></p>\n</li>\n<li><p><strong>Service API</strong></p>\n</li>\n</ol>\n<h3 id=\"mobile-number-format\">Mobile Number Format</h3>\n<ul>\n<li><p>All requests require the mobile number to be in the format: <code>62xxxxxxxxxx</code></p>\n<ul>\n<li><p><code>62</code> is the country code.</p>\n</li>\n<li><p>Followed by a 3-digit telco prefix.</p>\n</li>\n<li><p>Concluded with a 6, 7, 8, or 9 digit mobile number.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"note\">Note</h3>\n<ul>\n<li>The Mobile Network Operator (MNO) is identified by the mobile number prefix.</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"28833048","collectionId":"b056ca0a-eb45-47df-a070-fb212fa9bcd7","publishedId":"2sA3dxDBJe","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-08-05T08:59:21.000Z"},"item":[{"name":"Authentication","item":[{"name":"Get Access Token and Refresh Token","event":[{"listen":"test","script":{"id":"91767281-1318-48cf-8f4d-71ccd9651c7a","exec":["// Test the response fields\r","pm.test(\"Status code is 200\", () => {\r","    pm.response.to.have.status(200);\r","});\r","\r","pm.test(\"Access token is present and not empty\", () => {\r","    pm.expect(pm.response.json().access_token).to.be.a('string').and.not.empty;\r","});\r","\r","pm.test(\"Expires in is a number\", () => {\r","    pm.expect(pm.response.json().expires).to.be.a('number');\r","});\r","\r","pm.test(\"Token type is 'bearer'\", () => {\r","    pm.expect(pm.response.json().token_type).to.equal('bearer');\r","});\r","\r","// Parse the response JSON data\r","try {\r","    const responseBody = pm.response.json();\r","    // Extract the \"access_token\" from the response\r","    const accessToken = responseBody.access_token;\r","\r","    if (accessToken) {\r","        // Set the \"access_token\" as a global variable\r","        pm.globals.set(\"prime_access_token\", accessToken);\r","        console.log(\"Successfully set 'prime_access_token' as a global variable:\", accessToken);\r","    } else {\r","        console.error(\"Failed to extract 'prime_access_token' from the response.\");\r","    }\r","} catch (error) {\r","    console.error(\"Error parsing response JSON:\", error.message);\r","}\r",""],"type":"text/javascript","packages":{}}}],"id":"65dcc5f0-b036-4974-8304-0bf2bfbb2ef5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"raw","raw":"grant_type=client_credentials&client_id=prime-sandbox&client_secret=erhVxVLIwjEwvjFm9OHH"},"url":"{{baseURL}}/auth/token","urlObject":{"path":["auth","token"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"3c3f8f70-63b8-4f79-9660-0e1a5c3970ff","name":"Get Access Token and Refresh Token","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"raw","raw":"grant_type=client_credentials&client_id=prime-sandbox&client_secret=erhVxVLIwjEwvjFm9OHH"},"url":"{{baseURL}}/auth/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"x-cloud-trace-context","value":"814abfcec984bf4f8b4e787a82034cd9;o=1"},{"key":"date","value":"Fri, 16 Aug 2024 05:16:55 GMT"},{"key":"server","value":"Google Frontend"},{"key":"content-length","value":"1005"},{"key":"via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJwcmltZS1zYW5kYm94IiwiYXV0aCI6ImFwaSIsImV4cCI6MTcyMzc4OTAxNSwiaXNzIjoiZmluc2NvcmUifQ.jQqI3f9Jj194mmS5ry6Li5JSErB8nJDPyJnJEjMhCTW5u5Qr0rpISPymTOh5jA8inMNVh49NvOmbqqBcdXZMLe9sTs2ouDNYaYcHqmAvCFm4ZG50Zh8URWWqHAslmkENSD0bKoRw3uYtlazaSforNXcbY8YHCFC12hIasIfiGRhI6lTGy8DfQ39U8VaFCAEP13ihejPPqGOeSt4cPefeACsczwao1WDeLNM86ebDK5hYfWOiaPOGmE0nEbU4pV96uwOaOkQ5dr4titWly19oyWchts5OBLHRfs-mO5PwrN_V3Mdpjh0RAFgcqwsvv-4N9cxvljK2X_JYBomYKmNxig\",\n    \"token_type\": \"bearer\",\n    \"expires\": 3600,\n    \"refresh_token\": \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJwcmltZS1zYW5kYm94IiwiZXhwIjoxNzI0MzkwMjE1LCJpc3MiOiJmaW5zY29yZSJ9.jtVkRTPO7lm9edGbtSLh3HDceGJSFUpOV-b_JUKrJu8xoEDr35CBD9bgGlhsyxnsrJHrOL9_r-aPVIjXykbsfMCq14_Z9X1d1aIQ2pvKEzN2WVvmy6uYkAIG4GoJ8GZxUAm8OvjZd9VovkhyhC2-gh_eDbA4JC_0g3ewyDxagGvqjqsMuuDN4-6REGI4uN4Eax0bYsxvUY5uI3pXb1r5mhisnBfHm5DRylojOwRZnHzbyY5EgWCqcTXM5OHO4EsL0li2APgj0Zqg9JYMpZgmh8xCPGKpWM6BIPbDNql9bJgwKAeWryiTSUiCYvG37JhLy4e8382A-Fy_Uv_EqaBkCw\"\n}"}],"_postman_id":"65dcc5f0-b036-4974-8304-0bf2bfbb2ef5"},{"name":"Get Access Token with Refresh Token","event":[{"listen":"test","script":{"id":"91767281-1318-48cf-8f4d-71ccd9651c7a","exec":["// Test the response fields\r","pm.test(\"Status code is 200\", () => {\r","    pm.response.to.have.status(200);\r","});\r","\r","pm.test(\"Access token is present and not empty\", () => {\r","    pm.expect(pm.response.json().access_token).to.be.a('string').and.not.empty;\r","});\r","\r","pm.test(\"Expires in is a number\", () => {\r","    pm.expect(pm.response.json().expires).to.be.a('number');\r","});\r","\r","pm.test(\"Token type is 'bearer'\", () => {\r","    pm.expect(pm.response.json().token_type).to.equal('bearer');\r","});\r","\r","// Parse the response JSON data\r","try {\r","    const responseBody = pm.response.json();\r","    // Extract the \"access_token\" from the response\r","    const accessToken = responseBody.access_token;\r","\r","    if (accessToken) {\r","        // Set the \"access_token\" as a global variable\r","        pm.globals.set(\"prime_access_token\", accessToken);\r","        console.log(\"Successfully set 'prime_access_token' as a global variable:\", accessToken);\r","    } else {\r","        console.error(\"Failed to extract 'prime_access_token' from the response.\");\r","    }\r","} catch (error) {\r","    console.error(\"Error parsing response JSON:\", error.message);\r","}\r",""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"c039e522-1571-4239-a5b3-55ef7096c132","exec":[""],"type":"text/javascript","packages":{}}}],"id":"496eaada-2fca-4ef7-b43c-6ba634465ffd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"raw","raw":"grant_type=refresh_token&refresh_token={{oneapi_refresh_token}}"},"url":"{{baseURL}}/auth/token","urlObject":{"path":["auth","token"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"1ec5b90f-6874-4627-867b-f11ec7c0cf32","name":"Get Access Token with Refresh Token","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"raw","raw":"grant_type=refresh_token&refresh_token={{oneapi_refresh_token}}"},"url":"{{baseURL}}/auth/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"x-cloud-trace-context","value":"09ddc8e16398dcb69bbc4c1690d9fdff;o=1"},{"key":"date","value":"Fri, 16 Aug 2024 05:17:19 GMT"},{"key":"server","value":"Google Frontend"},{"key":"content-length","value":"1005"},{"key":"via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJwcmltZS1zYW5kYm94IiwiYXV0aCI6ImFwaSIsImV4cCI6MTcyMzc4OTAzOSwiaXNzIjoiZmluc2NvcmUifQ.cObTL5n04KOkHb7eNecezzrSfMlFXBiLSHGhB7LEb0OcPq-rUkKfWKUY4j9p1nUAOfp_cizZqhiFmUGz9eRmI_D_tUm4MN7ghrCFB5aZj6tgGwpDuYFefTRmMo-DAVLk-V_9VzrVcVC2Te89B1hmwBOKB2eSPujJQ5Lfb7s-coOEEfJqrB4dsCyEnbG6CF7Yb-YZXBJqjOqi1qrrWhpLJxJluIciojlyyPYzW6b59KL3pLUmG-ZRX1y-Mmk2iR0SnKmIO99GHJ4vdAXo5Vm-Pff4681vTdt2E804Nh7P0pB9oMfQgcfE2sRckjXW0jDPM3EingPLPg6mz8BlL-CwzA\",\n    \"token_type\": \"bearer\",\n    \"expires\": 3600,\n    \"refresh_token\": \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJwcmltZS1zYW5kYm94IiwiZXhwIjoxNzI0MzkwMjM5LCJpc3MiOiJmaW5zY29yZSJ9.fw16vWiRU8FvRqmo1vIMLZ0T-PBZkAddxtRiZNzdV-5cZqNVCRgi5vwHjFh2HUXGJ6J37BonqgqvJcUmypD1I5sL-fNnJDGBm-APl3jC1GU9x7ywWiYE7KuX7J_BqDi6sYSUlPkUayANlKmpaBd1phOO1t3zbzucvC133U0gdiLp1pRqm3OcTxQnCLKEXq88L5hZI2VLFoWGuWziunqd47cbw1lCPK_gsA2gzRga07SPZNteMxiq0H6-iAAIWkSdFrMpY-dunBS2FZozKKR7EhBVq2wusYiDCJlHPM2yaJtqZ8oTX41-JKrI4iR54bRec12NewZAFajEQfSpkj4SaA\"\n}"}],"_postman_id":"496eaada-2fca-4ef7-b43c-6ba634465ffd"}],"id":"5bf5e1e8-d9db-474e-b977-df16dfb1d770","description":"<p>OneAPI uses authorization token to validate the request. The token can be retrieved via an API call to PrimeAnalytics authentication manager. Authorization token has a lifetime of 3600 (1 hour). If the authorization token is expired, kindly request a new one in the same facility.</p>\n<p>See below Instructions to request for a token:</p>\n<ol>\n<li><p>To request for a token, send a POST request to the sandbox url: <a href=\"https://prime-oneapi-uat.iscore.io/auth/connect/token\">https://prime-oneapi-uat.iscore.io/auth/token</a></p>\n</li>\n<li><p>The request header has the following parameters: <code>Content Type: application/x-www-form-urlencoded</code></p>\n</li>\n<li><p>The request body has the following parameters : <code>grant_type=client_credentials&amp;client_id=username&amp;client_secret=password</code></p>\n</li>\n</ol>\n<p>Note: In the production environment, PrimeAnalytics will provide the credentials such as username and password to the prtners/customers.</p>\n<p>In the response Tab, the response must be 200. Access Token will be available in the response body.</p>\n<p>Note: baseURL: <a href=\"https://prime-oneapi-uat.iscore.io/auth/connect/token\">https://prime-oneapi-uat.iscore.io</a></p>\n","_postman_id":"5bf5e1e8-d9db-474e-b977-df16dfb1d770"},{"name":"Telco Score","item":[{"name":"Telco Score for XL msisdn","event":[{"listen":"prerequest","script":{"id":"f9b736be-4896-4944-af1d-104bf94d9c32","exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","\r","const now = new Date();\r","const year = now.getFullYear();\r","const month = (now.getMonth() + 1).toString().padStart(2, '0');\r","const day = now.getDate().toString().padStart(2, '0');\r","const hour = now.getHours().toString().padStart(2, '0');\r","const minute = now.getMinutes().toString().padStart(2, '0');\r","const second = now.getSeconds().toString().padStart(2, '0');\r","\r","const requestDate = `${year}-${month}-${day}T${hour}:${minute}:${second}`;\r","const consentId = `${year}${month}${day}T${hour}${minute}${second}`;\r","pm.globals.set(\"requestDate\", requestDate);\r","pm.globals.set(\"consentId\", consentId);\r",""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"963df05c-36fd-438c-9656-9b20c00527c9","exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Score retrieved successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_value');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data.transaction_id).to.be.a('string');\r","    pm.expect(data.score_date).to.be.a('string');\r","});\r",""],"type":"text/javascript","packages":{}}}],"id":"52cb383e-0cbd-48ae-9627-93744a25d5b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-011\",\r\n  \"msisdn\":\"6281700000001\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/telco_score","urlObject":{"path":["api","v1","telco_score"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"b2bfb4f3-d9f7-437c-a7f6-92b3815c9abc","name":"Telco Score for XL msisdn","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-011\",\r\n  \"msisdn\":\"6281700000001\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://prime-oneapi-uat.iscore.io/api/v1/telco_score"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"x-cloud-trace-context","value":"476d535285062f8c2053854d2b28c373;o=1"},{"key":"date","value":"Thu, 25 Jul 2024 05:19:51 GMT"},{"key":"server","value":"Google Frontend"},{"key":"content-length","value":"197"},{"key":"via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"success\",\n    \"message\": \"Score retrieved successfully.\",\n    \"data\": {\n        \"transaction_id\": \"PRIME-011\",\n        \"score_value\": 1,\n        \"score_date\": \"2024-07-25T05:19:51\"\n    }\n}"}],"_postman_id":"52cb383e-0cbd-48ae-9627-93744a25d5b2"},{"name":"Telco Score for INDOSAT msisdn","event":[{"listen":"prerequest","script":{"id":"9344b682-d261-4946-b030-427884adea90","exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","\r","const now = new Date();\r","const year = now.getFullYear();\r","const month = (now.getMonth() + 1).toString().padStart(2, '0');\r","const day = now.getDate().toString().padStart(2, '0');\r","const hour = now.getHours().toString().padStart(2, '0');\r","const minute = now.getMinutes().toString().padStart(2, '0');\r","const second = now.getSeconds().toString().padStart(2, '0');\r","\r","const requestDate = `${year}-${month}-${day}T${hour}:${minute}:${second}`;\r","const consentId = `${year}${month}${day}T${hour}${minute}${second}`;\r","pm.globals.set(\"requestDate\", requestDate);\r","pm.globals.set(\"consentId\", consentId);\r",""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"aa772be3-bdb6-4bc5-b930-48f5aa2a7c1a","exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Score retrieved successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_value');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data.transaction_id).to.be.a('string');\r","    pm.expect(data.score_value).to.be.a('number');\r","    pm.expect(data.score_date).to.be.a('string');\r","});\r",""],"type":"text/javascript","packages":{}}}],"id":"407c60bd-c0f1-49e1-9e65-f6810923e6c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-012\",\r\n  \"msisdn\":\"6281600000001\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/telco_score","urlObject":{"path":["api","v1","telco_score"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"64b22496-c961-4b43-b2c5-02ca30539f93","name":"Telco Score for INDOSAT msisdn","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-012\",\r\n  \"msisdn\":\"6281600000001\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://prime-oneapi-uat.iscore.io/api/v1/telco_score"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"x-cloud-trace-context","value":"fb445d98d085ab1661401f7e4bbb3ad2;o=1"},{"key":"date","value":"Thu, 25 Jul 2024 05:20:28 GMT"},{"key":"server","value":"Google Frontend"},{"key":"content-length","value":"197"},{"key":"via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"success\",\n    \"message\": \"Score retrieved successfully.\",\n    \"data\": {\n        \"transaction_id\": \"PRIME-7312ebef-b565-4a20-8e65-2e06277f4732\",\n        \"score_value\": 1,\n        \"score_date\": \"2024-07-25T05:20:28\"\n    }\n}"}],"_postman_id":"407c60bd-c0f1-49e1-9e65-f6810923e6c4"},{"name":"Telco Score for HUTCH msisdn","event":[{"listen":"prerequest","script":{"id":"c64ba160-f749-4765-9944-21ec1709f4cf","exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","\r","const now = new Date();\r","const year = now.getFullYear();\r","const month = (now.getMonth() + 1).toString().padStart(2, '0');\r","const day = now.getDate().toString().padStart(2, '0');\r","const hour = now.getHours().toString().padStart(2, '0');\r","const minute = now.getMinutes().toString().padStart(2, '0');\r","const second = now.getSeconds().toString().padStart(2, '0');\r","\r","const requestDate = `${year}-${month}-${day}T${hour}:${minute}:${second}`;\r","const consentId = `${year}${month}${day}T${hour}${minute}${second}`;\r","pm.globals.set(\"requestDate\", requestDate);\r","pm.globals.set(\"consentId\", consentId);\r",""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"10f63a0e-1258-4002-bec4-649accf5ab56","exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Score retrieved successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_value');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data.transaction_id).to.be.a('string');\r","    pm.expect(data.score_value).to.be.a('number');\r","    pm.expect(data.score_date).to.be.a('string');\r","});\r",""],"type":"text/javascript","packages":{}}}],"id":"b62c746d-e0d1-406d-8112-14a327be72a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-013\",\r\n  \"msisdn\":\"6289600000001\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/telco_score","urlObject":{"path":["api","v1","telco_score"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"e9ffa2ec-6f1b-4db3-a2e9-35dfe6cc3a9a","name":"Telco Score for HUTCH msisdn","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-013\",\r\n  \"msisdn\":\"6289600000001\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://prime-oneapi-uat.iscore.io/api/v1/telco_score"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"x-cloud-trace-context","value":"2a028d444c47b6623429f8ea05d25585;o=1"},{"key":"date","value":"Thu, 25 Jul 2024 05:20:55 GMT"},{"key":"server","value":"Google Frontend"},{"key":"content-length","value":"197"},{"key":"via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"success\",\n    \"message\": \"Score retrieved successfully.\",\n    \"data\": {\n        \"transaction_id\": \"PRIME-013\",\n        \"score_value\": 1,\n        \"score_date\": \"2024-07-25T05:20:55\"\n    }\n}"}],"_postman_id":"b62c746d-e0d1-406d-8112-14a327be72a7"},{"name":"Telco Score for TELKOMSEL msisdn","event":[{"listen":"prerequest","script":{"id":"9e8b206c-187e-4c09-b4fc-2c74ff11df07","exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","  \r",""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"4c288047-d5de-4d3f-9af4-de4fe6cff3e8","exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Score retrieved successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_value');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data.transaction_id).to.be.a('string');\r","    pm.expect(data.score_date).to.be.a('string');\r","});\r",""],"type":"text/javascript","packages":{}}}],"id":"44a3a176-ead4-4dac-bd0a-272b2fd1c0be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-014\",\r\n  \"msisdn\":\"628120000001\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/telco_score","urlObject":{"path":["api","v1","telco_score"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"e2e21416-a858-4a8e-b1c6-98b6ba934fce","name":"Telco Score for TELKOMSEL msisdn","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-014\",\r\n  \"msisdn\":\"628120000001\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://prime-oneapi-uat.iscore.io/api/v1/telco_score"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"x-cloud-trace-context","value":"47175f172c0558b02273c5d067493dc1;o=1"},{"key":"date","value":"Thu, 25 Jul 2024 05:21:15 GMT"},{"key":"server","value":"Google Frontend"},{"key":"content-length","value":"199"},{"key":"via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"success\",\n    \"message\": \"Score retrieved successfully.\",\n    \"data\": {\n        \"transaction_id\": \"PRIME-014\",\n        \"score_value\": 250,\n        \"score_date\": \"2024-07-25T05:21:15\"\n    }\n}"}],"_postman_id":"44a3a176-ead4-4dac-bd0a-272b2fd1c0be"}],"id":"91875aa1-4ba7-43bc-bae5-7951152a38b5","description":"<p>The PrimeAnalytics’s telco scores are statistical models built on various MNO(Mobile Network Operator) data sources such as data and voice usage, top-up patterns, location and device data, and many more. Derived by the most advanced machine learning algorithms, the scores have significant predictive power and can be used as either standalone models or in combination with exiting internal Social-Demographic and/or Credit Bureau models. This is currently available for XL, HUTCH, TELKOMSEL, and Indosat mobile numbers.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>To access the API, you need a valid access token. Include the access token in the request headers as follows:</p>\n<p><code>Authorization: Bearer access_token</code></p>\n<h2 id=\"endpoint\">Endpoint</h2>\n<p>The API endpoint for accessing the telco score is: <code>https://prime-oneapi-uat.iscore.io/api/v1/telco_score</code></p>\n<h2 id=\"request-parameters\">Request Parameters</h2>\n<p>The request should include the following parameters:</p>\n<ul>\n<li><p><code>msisdn</code> (Required): The <code>msisdn</code>parameter should contain the mobile number of the client for whom you want to generate the telco score.</p>\n</li>\n<li><p><code>partner_id</code> (Required): Partner ID associated with the request.</p>\n</li>\n<li><p><code>client_id</code> (Required): The user id or client code for this request.</p>\n</li>\n<li><p><code>product_id</code> (Required): Product ID for which the score is requested.</p>\n</li>\n<li><p><code>transaction_id</code> (Required): Unique transaction ID for tracking the request.</p>\n</li>\n</ul>\n<h2 id=\"response-parameters\">Response Parameters</h2>\n<p>The API response will contain the calculated telco scores for the mobile number sent in the request. The response will be in JSON format and will include the following fields:</p>\n<ul>\n<li><p><code>status</code> (string, required): Operation status.</p>\n</li>\n<li><p><code>transactionid</code> (string, required): Unique system identifier for the transaction.</p>\n</li>\n<li><p><code>code</code> (string, required): Operation code.</p>\n</li>\n<li><p><code>message</code> (string, required): Operation result, indicating the success or failure of the request.</p>\n</li>\n<li><p><code>data</code> (object, required): An object containing score_value and score_date.</p>\n</li>\n<li><p><code>score_value</code>(float): Telco score value</p>\n</li>\n<li><p><code>score_date</code>(string): Date when the score is generated.</p>\n</li>\n</ul>\n<p>This section enumerates all values that could be returned in the status and code field.</p>\n<p>Note: This is applicable to all OneAPI services.</p>\n<p>HTTP Status codes</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th>Message</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad Request</td>\n<td>Bad Request</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorized</td>\n<td>Token is invalid or expired.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not Found</td>\n<td>Incorrect endpoint.</td>\n</tr>\n<tr>\n<td>422</td>\n<td>Unprocessable</td>\n<td>Parameters are incorrect.</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal Server Error</td>\n<td>Internal server error. Please try again later.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Response payload</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Status</th>\n<th>Message</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>success</td>\n<td>Score retrieved successfully. / Location verified successfully.</td>\n</tr>\n<tr>\n<td>204</td>\n<td>failed</td>\n<td>Score not available. / Location not available.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>error</td>\n<td>Invalid grant type.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>error</td>\n<td>Unsupported operator Unknown.</td>\n</tr>\n<tr>\n<td>422</td>\n<td>error</td>\n<td>Incorrect client_id or client_secret.</td>\n</tr>\n<tr>\n<td>422</td>\n<td>error</td>\n<td>MSISDN must start with '62', contain only digits, and be between 11 and 14 digits long.</td>\n</tr>\n<tr>\n<td>422</td>\n<td>error</td>\n<td>Missing required field 'client_id' for { service } for operator – {TELCO}.</td>\n</tr>\n<tr>\n<td>422</td>\n<td>error</td>\n<td>Missing required field 'partner_id' for { service } for operator – {TELCO}.</td>\n</tr>\n<tr>\n<td>422</td>\n<td>error</td>\n<td>Missing required field 'product_id' for { service } for operator – {TELCO}.</td>\n</tr>\n<tr>\n<td>422</td>\n<td>error</td>\n<td>Missing required field 'transaction_id' for { service } for operator – {TELCO}.</td>\n</tr>\n<tr>\n<td>422</td>\n<td>error</td>\n<td>Missing required fields 'latitude', 'address' for { service } for operator – {TELCO}.</td>\n</tr>\n<tr>\n<td>422</td>\n<td>error</td>\n<td>Missing required fields 'longitude', 'address' for { service } for operator – {TELCO}.</td>\n</tr>\n<tr>\n<td>422</td>\n<td>error</td>\n<td>Missing required fields 'email', 'msisdn' for social score for operator - FINDSOCIAL.</td>\n</tr>\n<tr>\n<td>422</td>\n<td>error</td>\n<td>Invalid email address format.</td>\n</tr>\n<tr>\n<td>422</td>\n<td>error</td>\n<td>Invalid product_id.</td>\n</tr>\n<tr>\n<td>503</td>\n<td>failed</td>\n<td>The service is temporarily unavailable. Please try again later.</td>\n</tr>\n<tr>\n<td>504</td>\n<td>failed</td>\n<td>The request was timed out. Please try again later.</td>\n</tr>\n<tr>\n<td>429</td>\n<td>error</td>\n<td>Transaction limit reached.</td>\n</tr>\n<tr>\n<td>500</td>\n<td>error</td>\n<td>Internal server error. Please try again later.</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"91875aa1-4ba7-43bc-bae5-7951152a38b5"},{"name":"Telco Score with Credit Factors","item":[{"name":"Telco Score with Credit Factors for XL msisdn","event":[{"listen":"prerequest","script":{"id":"f9b736be-4896-4944-af1d-104bf94d9c32","exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","\r","const now = new Date();\r","const year = now.getFullYear();\r","const month = (now.getMonth() + 1).toString().padStart(2, '0');\r","const day = now.getDate().toString().padStart(2, '0');\r","const hour = now.getHours().toString().padStart(2, '0');\r","const minute = now.getMinutes().toString().padStart(2, '0');\r","const second = now.getSeconds().toString().padStart(2, '0');\r","\r","const requestDate = `${year}-${month}-${day}T${hour}:${minute}:${second}`;\r","const consentId = `${year}${month}${day}T${hour}${minute}${second}`;\r","pm.globals.set(\"requestDate\", requestDate);\r","pm.globals.set(\"consentId\", consentId);\r",""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"963df05c-36fd-438c-9656-9b20c00527c9","exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Score retrieved successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_value');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data.transaction_id).to.be.a('string');\r","    pm.expect(data.score_date).to.be.a('string');\r","});\r",""],"type":"text/javascript","packages":{}}}],"id":"a0305891-f92f-409b-bf4f-e44a47a287d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-011\",\r\n  \"msisdn\":\"6287800000005\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/telco_score","urlObject":{"path":["api","v1","telco_score"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"2f8700c7-51ca-44af-8447-58fe7431ab2c","name":"Telco Score with Credit Factors for XL msisdn","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-011\",\r\n  \"msisdn\":\"6287800000005\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/telco_score"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"x-cloud-trace-context","value":"2dc657ed597d1d796561b633ba5ec45d;o=1"},{"key":"date","value":"Wed, 18 Sep 2024 06:10:59 GMT"},{"key":"server","value":"Google Frontend"},{"key":"content-length","value":"270"},{"key":"via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"success\",\n    \"message\": \"Score retrieved successfully.\",\n    \"data\": {\n        \"transaction_id\": \"PRIME-011\",\n        \"score_value\": 1,\n        \"score_date\": \"2024-09-18T06:10:59\",\n        \"tenure\": \"2. 31 - 90 days\",\n        \"balance\": \"3. Medium\",\n        \"top_up_amount\": \"1. Low\",\n        \"data_usage\": \"8. Missing Value\"\n    }\n}"}],"_postman_id":"a0305891-f92f-409b-bf4f-e44a47a287d5"},{"name":"Telco Score with Credit Factors for INDOSAT msisdn","event":[{"listen":"prerequest","script":{"id":"9344b682-d261-4946-b030-427884adea90","exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","\r","const now = new Date();\r","const year = now.getFullYear();\r","const month = (now.getMonth() + 1).toString().padStart(2, '0');\r","const day = now.getDate().toString().padStart(2, '0');\r","const hour = now.getHours().toString().padStart(2, '0');\r","const minute = now.getMinutes().toString().padStart(2, '0');\r","const second = now.getSeconds().toString().padStart(2, '0');\r","\r","const requestDate = `${year}-${month}-${day}T${hour}:${minute}:${second}`;\r","const consentId = `${year}${month}${day}T${hour}${minute}${second}`;\r","pm.globals.set(\"requestDate\", requestDate);\r","pm.globals.set(\"consentId\", consentId);\r",""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"aa772be3-bdb6-4bc5-b930-48f5aa2a7c1a","exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Score retrieved successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_value');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data.transaction_id).to.be.a('string');\r","    pm.expect(data.score_value).to.be.a('number');\r","    pm.expect(data.score_date).to.be.a('string');\r","});\r",""],"type":"text/javascript","packages":{}}}],"id":"eb795a67-1143-4261-8fb6-2d148ee79e3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-012\",\r\n  \"msisdn\":\"6285800000005\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/telco_score","urlObject":{"path":["api","v1","telco_score"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"7a642a49-a1ba-4e9b-90c4-bf16179d21b6","name":"Telco Score with Credit Factors for INDOSAT msisdn","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-012\",\r\n  \"msisdn\":\"6285800000005\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/telco_score"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"x-cloud-trace-context","value":"fcc06349a9e787b3859f40f1a6a9a9f5;o=1"},{"key":"date","value":"Wed, 18 Sep 2024 06:12:29 GMT"},{"key":"server","value":"Google Frontend"},{"key":"content-length","value":"270"},{"key":"via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"success\",\n    \"message\": \"Score retrieved successfully.\",\n    \"data\": {\n        \"transaction_id\": \"PRIME-012\",\n        \"score_value\": 1,\n        \"score_date\": \"2024-09-18T06:12:29\",\n        \"tenure\": \"2. 31 - 90 days\",\n        \"balance\": \"3. Medium\",\n        \"top_up_amount\": \"1. Low\",\n        \"data_usage\": \"8. Missing Value\"\n    }\n}"}],"_postman_id":"eb795a67-1143-4261-8fb6-2d148ee79e3e"},{"name":"Telco Score with Credit Factors for HUTCH msisdn","event":[{"listen":"prerequest","script":{"id":"c64ba160-f749-4765-9944-21ec1709f4cf","exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","\r","const now = new Date();\r","const year = now.getFullYear();\r","const month = (now.getMonth() + 1).toString().padStart(2, '0');\r","const day = now.getDate().toString().padStart(2, '0');\r","const hour = now.getHours().toString().padStart(2, '0');\r","const minute = now.getMinutes().toString().padStart(2, '0');\r","const second = now.getSeconds().toString().padStart(2, '0');\r","\r","const requestDate = `${year}-${month}-${day}T${hour}:${minute}:${second}`;\r","const consentId = `${year}${month}${day}T${hour}${minute}${second}`;\r","pm.globals.set(\"requestDate\", requestDate);\r","pm.globals.set(\"consentId\", consentId);\r",""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"10f63a0e-1258-4002-bec4-649accf5ab56","exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Score retrieved successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_value');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data.transaction_id).to.be.a('string');\r","    pm.expect(data.score_value).to.be.a('number');\r","    pm.expect(data.score_date).to.be.a('string');\r","});\r",""],"type":"text/javascript","packages":{}}}],"id":"9b448480-ee19-4e29-98e9-6934f2f64bf7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-013\",\r\n  \"msisdn\":\"6289800000005\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/telco_score","urlObject":{"path":["api","v1","telco_score"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"8b415722-d97a-48ca-bec7-110967b8f206","name":"Telco Score with Credit Factors for HUTCH msisdn","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-013\",\r\n  \"msisdn\":\"6289800000005\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/telco_score"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"x-cloud-trace-context","value":"baec81d6423a07099143c4ba3afbf314;o=1"},{"key":"date","value":"Wed, 18 Sep 2024 06:14:11 GMT"},{"key":"server","value":"Google Frontend"},{"key":"content-length","value":"270"},{"key":"via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"success\",\n    \"message\": \"Score retrieved successfully.\",\n    \"data\": {\n        \"transaction_id\": \"PRIME-013\",\n        \"score_value\": 1,\n        \"score_date\": \"2024-09-18T06:14:11\",\n        \"tenure\": \"2. 31 - 90 days\",\n        \"balance\": \"3. Medium\",\n        \"top_up_amount\": \"1. Low\",\n        \"data_usage\": \"8. Missing Value\"\n    }\n}"}],"_postman_id":"9b448480-ee19-4e29-98e9-6934f2f64bf7"}],"id":"f998c61f-cc3a-4428-be20-4316ea7bee67","description":"<p>The PrimeAnalytics’ Credit Factors is an add on feature of Telco Credit Risk Score product that provides valuable insights without revealing the actual sensitive data of the customers. It provides valuable information regarding the customer’s preferences in using mobile phone and how long the relationship with the telco.​</p>\n<p>The subscriber information the Client receives with each enquiry consists of several key Telco metrics, grouped in up to 5 different band brackets (Very Low, Low, Mid, High, Very High).</p>\n<p>Credit Factors can be used for various purposes. From Credit Risk perspective, the insights that this product provides can be used for the development of multiple scoring models, or as additional rules for decisioning.​</p>\n<p>This is currently available for XL, HUTCH, and Indosat mobile numbers.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>To access the API, you need a valid access token. Include the access token in the request headers as follows:</p>\n<p><code>Authorization: Bearer access_token</code></p>\n<h2 id=\"endpoint\">Endpoint</h2>\n<p>The API endpoint for accessing the telco score is: <code>https://prime-oneapi-uat.iscore.io/api/v1/telco_score</code></p>\n<h2 id=\"request-parameters\">Request Parameters</h2>\n<p>The request should include the following parameters:</p>\n<ul>\n<li><p><code>msisdn</code> (Required): The <code>msisdn</code>parameter should contain the mobile number of the client for whom you want to generate the telco score.</p>\n</li>\n<li><p><code>partner_id</code> (Required): Partner ID associated with the request.</p>\n</li>\n<li><p><code>client_id</code> (Required): The user id or client code for this request.</p>\n</li>\n<li><p><code>product_id</code> (Required): Product ID for which the score is requested.</p>\n</li>\n<li><p><code>transaction_id</code> (Required): Unique transaction ID for tracking the request.</p>\n</li>\n</ul>\n<h2 id=\"response-parameters\">Response Parameters</h2>\n<p>The API response will contain the calculated telco scores for the mobile number sent in the request. The response will be in JSON format and will include the following fields:</p>\n<ul>\n<li><p><code>status</code> (string, required): Operation status.</p>\n</li>\n<li><p><code>transactionid</code> (string, required): Unique system identifier for the transaction.</p>\n</li>\n<li><p><code>code</code> (string, required): Operation code.</p>\n</li>\n<li><p><code>message</code> (string, required): Operation result, indicating the success or failure of the request.</p>\n</li>\n<li><p><code>data</code> (object, required): An object containing score_value and score_date.</p>\n</li>\n<li><p><code>score_value</code>(string): Telco score value</p>\n</li>\n<li><p><code>score_date</code>(string): Date when the score is generated.</p>\n</li>\n<li><p><code>tenure</code>(string): This is the time with Operator. The variable measures the days between today and the day the customer activated the SIM card on. The variable has following bands:</p>\n<ul>\n<li><p>​1 - &lt;= 30 days​</p>\n</li>\n<li><p>2 - 31-90 days​</p>\n</li>\n<li><p>3 - 91-360 days​</p>\n</li>\n<li><p>4 - 361-1800 days​</p>\n</li>\n<li><p>5 - &gt;1800 day.</p>\n</li>\n</ul>\n</li>\n<li><p><code>balance</code>(string): The variable measures the average balance (In IDR) the customer has in the last 3 months. The variable has following bands:​</p>\n<ul>\n<li><p>1 - Very Low</p>\n</li>\n<li><p>​2 - Low​</p>\n</li>\n<li><p>3 - Medium​</p>\n</li>\n<li><p>4 - High​</p>\n</li>\n<li><p>5 - Very High​​</p>\n</li>\n</ul>\n</li>\n<li><p><code>top_up_amount</code>(string): The variable measures the amount (In IDR) the customer recharged into his balance in the last 3 months. The variable has following bands:</p>\n<ul>\n<li><p>​1 - Low​</p>\n</li>\n<li><p>2 - Medium​</p>\n</li>\n<li><p>3 - High​​</p>\n</li>\n</ul>\n</li>\n<li><p><code>data_usage</code>(string): The variable measures how much mobile data (in megabytes) the customer consumed in the last 3 months. The variable has following bands:</p>\n<ul>\n<li><p>​1 - Low​</p>\n</li>\n<li><p>2 - Medium​</p>\n</li>\n<li><p>3 - High</p>\n</li>\n</ul>\n</li>\n</ul>\n","_postman_id":"f998c61f-cc3a-4428-be20-4316ea7bee67"},{"name":"Address Validation","item":[{"name":"AV Score for XL msisdn","event":[{"listen":"prerequest","script":{"id":"f72b4387-4eb4-492c-8e37-eb8799b30e54","exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","\r","const now = new Date();\r","const year = now.getFullYear();\r","const month = (now.getMonth() + 1).toString().padStart(2, '0');\r","const day = now.getDate().toString().padStart(2, '0');\r","const hour = now.getHours().toString().padStart(2, '0');\r","const minute = now.getMinutes().toString().padStart(2, '0');\r","const second = now.getSeconds().toString().padStart(2, '0');\r","\r","const requestDate = `${year}-${month}-${day}T${hour}:${minute}:${second}`;\r","const consentId = `${year}${month}${day}T${hour}${minute}${second}`;\r","pm.globals.set(\"requestDate\", requestDate);\r","pm.globals.set(\"consentId\", consentId);\r",""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"734f0c89-b814-47e1-84e3-452d2e77e2c1","exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure and data\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Location verified successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data).to.have.property('closest_distance');\r","});\r",""],"type":"text/javascript","packages":{}}}],"id":"67a2339a-ff8c-4f12-9edb-3bc2be7bd61a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-AV\",\r\n  \"transaction_id\": \"PRIME-015\",\r\n  \"msisdn\":\"6281700000001\",\r\n  \"address\": \"Sungai Cibuni, QRRX+M4M, RT.1/RW.5, Ps. Manggis, Kecamatan Setiabudi, Kota Jakarta Selatan, Daerah Khusus Ibukota Jakarta 10310, Indonesia\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/location_verify","urlObject":{"path":["api","v1","location_verify"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"8895b0e1-7ab7-4e04-8e36-c3578efc5cc6","name":"AV Score for XL msisdn","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-AV\",\r\n  \"transaction_id\": \"PRIME-015\",\r\n  \"msisdn\":\"6281700000001\",\r\n  \"address\": \"Sungai Cibuni, QRRX+M4M, RT.1/RW.5, Ps. Manggis, Kecamatan Setiabudi, Kota Jakarta Selatan, Daerah Khusus Ibukota Jakarta 10310, Indonesia\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://prime-oneapi-uat.iscore.io/api/v1/location_verify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"x-cloud-trace-context","value":"534b68204b541868a0d8b379bf1a9e8b;o=1"},{"key":"date","value":"Thu, 25 Jul 2024 05:27:18 GMT"},{"key":"server","value":"Google Frontend"},{"key":"content-length","value":"204"},{"key":"via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"success\",\n    \"message\": \"Location verified successfully.\",\n    \"data\": {\n        \"transaction_id\": \"PRIME-015\",\n        \"score_date\": \"2024-07-25T05:27:18\",\n        \"closest_distance\": \"A\"\n    }\n}"}],"_postman_id":"67a2339a-ff8c-4f12-9edb-3bc2be7bd61a"},{"name":"AV Score for INDOSAT msisdn","event":[{"listen":"prerequest","script":{"id":"e07b1efc-d485-4091-a8e8-d001869126dd","exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","\r","const now = new Date();\r","const year = now.getFullYear();\r","const month = (now.getMonth() + 1).toString().padStart(2, '0');\r","const day = now.getDate().toString().padStart(2, '0');\r","const hour = now.getHours().toString().padStart(2, '0');\r","const minute = now.getMinutes().toString().padStart(2, '0');\r","const second = now.getSeconds().toString().padStart(2, '0');\r","\r","const requestDate = `${year}-${month}-${day}T${hour}:${minute}:${second}`;\r","const consentId = `${year}${month}${day}T${hour}${minute}${second}`;\r","pm.globals.set(\"requestDate\", requestDate);\r","pm.globals.set(\"consentId\", consentId);\r",""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"e885b143-bea9-4f46-811b-a851d4902b0f","exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure and data\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Location verified successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data).to.have.property('closest_distance');\r","});\r",""],"type":"text/javascript","packages":{}}}],"id":"551a35d1-eca6-4aaf-9574-9b55ac1c1bb2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-AV\",\r\n  \"transaction_id\": \"PRIME-016\",\r\n  \"msisdn\":\"6281600000001\",\r\n  \"address\": \"Sungai Cibuni, QRRX+M4M, RT.1/RW.5, Ps. Manggis, Kecamatan Setiabudi, Kota Jakarta Selatan, Daerah Khusus Ibukota Jakarta 10310, Indonesia\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/location_verify","urlObject":{"path":["api","v1","location_verify"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"bc94479e-8a07-4f64-b0f6-7691b56c7b08","name":"AV Score for INDOSAT msisdn","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-AV\",\r\n  \"transaction_id\": \"PRIME-016\",\r\n  \"msisdn\":\"6281600000001\",\r\n  \"address\": \"Sungai Cibuni, QRRX+M4M, RT.1/RW.5, Ps. Manggis, Kecamatan Setiabudi, Kota Jakarta Selatan, Daerah Khusus Ibukota Jakarta 10310, Indonesia\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://prime-oneapi-uat.iscore.io/api/v1/location_verify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"x-cloud-trace-context","value":"1f65b6de799cde711e1f0643d16fa467;o=1"},{"key":"date","value":"Thu, 25 Jul 2024 05:27:02 GMT"},{"key":"server","value":"Google Frontend"},{"key":"content-length","value":"204"},{"key":"via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"success\",\n    \"message\": \"Location verified successfully.\",\n    \"data\": {\n        \"transaction_id\": \"PRIME-016\",\n        \"score_date\": \"2024-07-25T05:27:02\",\n        \"closest_distance\": \"A\"\n    }\n}"}],"_postman_id":"551a35d1-eca6-4aaf-9574-9b55ac1c1bb2"},{"name":"AV Score for TELKOMSEL msisdn","event":[{"listen":"prerequest","script":{"id":"ebb9d6d6-ea05-4b48-9b27-89b388a57516","exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","\r",""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"1169f0cb-3fcd-4f95-b1f8-210d63a07380","exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure and data\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Location verified successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data).to.have.property('closest_distance');\r","    \r","});\r",""],"type":"text/javascript","packages":{}}}],"id":"e7b0bb53-03f9-4dd5-ad79-8f1a8a7fcdc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-AV\",\r\n  \"transaction_id\": \"PRIME-017\",\r\n  \"msisdn\":\"628120000001\",\r\n  \"address\": \"Jl. pelangi raya kelapa gading jakarta utara\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/location_verify","urlObject":{"path":["api","v1","location_verify"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"b48efe3d-3ffc-4f3b-88be-524efca0e258","name":"AV Score for TELKOMSEL msisdn","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-AV\",\r\n  \"transaction_id\": \"PRIME-017\",\r\n  \"msisdn\":\"628120000001\",\r\n  \"address\": \"Jl. pelangi raya kelapa gading jakarta utara\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/location_verify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"x-cloud-trace-context","value":"00f6bfc0e5642944f0e2418f9573f13d;o=1"},{"key":"date","value":"Fri, 02 Aug 2024 09:07:50 GMT"},{"key":"server","value":"Google Frontend"},{"key":"content-length","value":"171"},{"key":"via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"success\",\n    \"message\": \"Location verified successfully.\",\n    \"data\": {\n        \"transaction_id\": \"PRIME-017\",\n        \"score_date\": \"2024-08-02T09:07:50\",\n        \"closest_distance\": \"A\"\n    }\n}"}],"_postman_id":"e7b0bb53-03f9-4dd5-ad79-8f1a8a7fcdc1"},{"name":"AV Score for HUTCH msisdn","event":[{"listen":"prerequest","script":{"id":"3948d4e5-78ee-47f0-92ca-76dd66fee013","exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","\r","const now = new Date();\r","const year = now.getFullYear();\r","const month = (now.getMonth() + 1).toString().padStart(2, '0');\r","const day = now.getDate().toString().padStart(2, '0');\r","const hour = now.getHours().toString().padStart(2, '0');\r","const minute = now.getMinutes().toString().padStart(2, '0');\r","const second = now.getSeconds().toString().padStart(2, '0');\r","\r","const requestDate = `${year}-${month}-${day}T${hour}:${minute}:${second}`;\r","const consentId = `${year}${month}${day}T${hour}${minute}${second}`;\r","pm.globals.set(\"requestDate\", requestDate);\r","pm.globals.set(\"consentId\", consentId);\r",""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"9954261f-0965-4694-8c46-6ae9137813d4","exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure and data\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Location verified successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data).to.have.property('closest_distance');\r","});\r",""],"type":"text/javascript","packages":{}}}],"id":"bb8b9abc-412e-4e1d-9e83-7f3aec063907","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-AV\",\r\n  \"transaction_id\": \"PRIME-018\",\r\n  \"msisdn\":\"6289600000001\",\r\n  \"address\": \"Sungai Cibuni, QRRX+M4M, RT.1/RW.5, Ps. Manggis, Kecamatan Setiabudi, Kota Jakarta Selatan, Daerah Khusus Ibukota Jakarta 10310, Indonesia\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/location_verify","urlObject":{"path":["api","v1","location_verify"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"94034090-68b6-4914-a24d-02a1a4ac868d","name":"AV Score for HUTCH msisdn","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-AV\",\r\n  \"transaction_id\": \"PRIME-018\",\r\n  \"msisdn\":\"6289600000001\",\r\n  \"address\": \"Sungai Cibuni, QRRX+M4M, RT.1/RW.5, Ps. Manggis, Kecamatan Setiabudi, Kota Jakarta Selatan, Daerah Khusus Ibukota Jakarta 10310, Indonesia\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/location_verify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"x-cloud-trace-context","value":"9c0e9d708cdbf756cc0677c6f7661dd4"},{"key":"date","value":"Fri, 02 Aug 2024 09:07:59 GMT"},{"key":"server","value":"Google Frontend"},{"key":"content-length","value":"171"},{"key":"via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"success\",\n    \"message\": \"Location verified successfully.\",\n    \"data\": {\n        \"transaction_id\": \"PRIME-018\",\n        \"score_date\": \"2024-08-02T09:07:59\",\n        \"closest_distance\": \"A\"\n    }\n}"}],"_postman_id":"bb8b9abc-412e-4e1d-9e83-7f3aec063907"}],"id":"5adc436a-b3cb-4fa3-807b-771935e6130f","description":"<p>The purpose of this API is to allow the requestor to verify the accuracy of the customer’s provided address based on the MSISDN frequent location.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>To access the API, you need a valid access token. Include the access token in the request headers as follows:</p>\n<p><code>Authorization: Bearer access_token</code></p>\n<h2 id=\"endpoint\">Endpoint</h2>\n<p>The API endpoint for accessing the telco score is: <code>https://prime-oneapi-uat.iscore.io/api/v1/location_verify</code></p>\n<h2 id=\"request-parameters\">Request Parameters</h2>\n<p>The request should include the following parameters:</p>\n<ul>\n<li><p><code>partner_id</code> (string, Required): Partner ID associated with the request.</p>\n</li>\n<li><p><code>client_id</code> (string, Required): The user id or client code for this request.</p>\n</li>\n<li><p><code>product_id</code> (string, Required): Product ID for which the score is requested.</p>\n</li>\n<li><p><code>transaction_id</code> (string, Required): Unique transaction ID for tracking the request.</p>\n</li>\n<li><p><code>msisdn</code> (Required): The <code>msisdn</code> parameter should contain the mobile number of the client for whom you want to do the location verification.</p>\n</li>\n<li><p><code>address</code>(string, Required): address to be verified. <code>address</code>field is mandatory if <code>latitude</code> and <code>longitude</code> are not present in the request.</p>\n</li>\n<li><p><code>latitude</code> (number, Required): Latitude of the address to be verified.</p>\n</li>\n<li><p><code>longitude</code> (number, Required): Longitude of the address to be verified.</p>\n</li>\n</ul>\n<p><code>address,</code>OR <code>latitude</code>and <code>longitude,</code>are mandatory in the request payload. If<code>address,latitude,</code>and <code>longitude</code>are all present in the request, then <code>latitude</code>and<code>longitude</code>will be considered for processing instead of the address.</p>\n<h2 id=\"response-parameters\">Response Parameters</h2>\n<p>The API response will contain the calculated telco scores for the mobile number sent in the request. The response will be in JSON format and will include the following fields:</p>\n<ul>\n<li><p><code>status</code> (string, required): Operation status.</p>\n</li>\n<li><p><code>code</code> (string, required): Operation code.</p>\n</li>\n<li><p><code>message</code> (string, required): Operation result, indicating the success or failure of the request.</p>\n</li>\n<li><p><code>data</code> (object, required): An object containing transaction_id, score_date, and closest_distance.</p>\n</li>\n<li><p><code>transaction_id</code> (string, required): Unique system identifier for the transaction.</p>\n</li>\n<li><p><code>score_date</code>(string): Date when the score is generated.</p>\n</li>\n<li><p><code>closest_distance</code>(string): Closest distance in km between the customer's given lat/long and his/her registered towers (only top 5 most frequent towers are considered). Location Zone to its relative distance from the dominant BTS location :</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>closest_distance</th>\n<th>Distance Range</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>A</td>\n<td>0 - 250 meters</td>\n</tr>\n<tr>\n<td>B</td>\n<td>251 - 500 meters</td>\n</tr>\n<tr>\n<td>C</td>\n<td>501 - 750 meters</td>\n</tr>\n<tr>\n<td>D</td>\n<td>751 - 1000 meters</td>\n</tr>\n<tr>\n<td>E</td>\n<td>1001 - 2000 meters</td>\n</tr>\n<tr>\n<td>F</td>\n<td>2001 - 4000 meters</td>\n</tr>\n<tr>\n<td>G</td>\n<td>&gt; 4000 meters</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"5adc436a-b3cb-4fa3-807b-771935e6130f"},{"name":"Income Score","item":[{"name":"Income Score for XL msisdn","event":[{"listen":"prerequest","script":{"exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","\r","const now = new Date();\r","const year = now.getFullYear();\r","const month = (now.getMonth() + 1).toString().padStart(2, '0');\r","const day = now.getDate().toString().padStart(2, '0');\r","const hour = now.getHours().toString().padStart(2, '0');\r","const minute = now.getMinutes().toString().padStart(2, '0');\r","const second = now.getSeconds().toString().padStart(2, '0');\r","\r","const requestDate = `${year}-${month}-${day}T${hour}:${minute}:${second}`;\r","const consentId = `${year}${month}${day}T${hour}${minute}${second}`;\r","pm.globals.set(\"requestDate\", requestDate);\r","pm.globals.set(\"consentId\", consentId);\r",""],"type":"text/javascript","packages":{},"id":"cbfb9955-c9eb-4227-b3f3-f31e6c2cd90c"}},{"listen":"test","script":{"exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Score retrieved successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_value');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data.transaction_id).to.be.a('string');\r","    pm.expect(data.score_date).to.be.a('string');\r","});\r",""],"type":"text/javascript","packages":{},"id":"e871acdd-6ac8-4072-b24c-affd76adbd78"}}],"id":"28d49ca7-1e53-4396-b129-11dd5b21daa8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"INCOMESCORE\",\r\n  \"transaction_id\": \"PRIME-8d8350b7-40e9-4f70-90bc-64bd87d6a444\",\r\n  \"msisdn\":\"628510000005\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/income_score","urlObject":{"path":["api","v1","income_score"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"28d49ca7-1e53-4396-b129-11dd5b21daa8"},{"name":"Income Score for HUTCH msisdn","event":[{"listen":"prerequest","script":{"exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","\r","const now = new Date();\r","const year = now.getFullYear();\r","const month = (now.getMonth() + 1).toString().padStart(2, '0');\r","const day = now.getDate().toString().padStart(2, '0');\r","const hour = now.getHours().toString().padStart(2, '0');\r","const minute = now.getMinutes().toString().padStart(2, '0');\r","const second = now.getSeconds().toString().padStart(2, '0');\r","\r","const requestDate = `${year}-${month}-${day}T${hour}:${minute}:${second}`;\r","const consentId = `${year}${month}${day}T${hour}${minute}${second}`;\r","pm.globals.set(\"requestDate\", requestDate);\r","pm.globals.set(\"consentId\", consentId);\r",""],"type":"text/javascript","packages":{},"id":"c8257e96-9002-4ee0-aa3f-978b344eb61c"}},{"listen":"test","script":{"exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Score retrieved successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_value');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data.transaction_id).to.be.a('string');\r","    pm.expect(data.score_value).to.be.a('number');\r","    pm.expect(data.score_date).to.be.a('string');\r","});\r",""],"type":"text/javascript","packages":{},"id":"c0b8659c-eb7d-411e-99f1-8fffa0d6d457"}}],"id":"8864cedc-b247-48dc-9144-351dcd919ac0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"INCOMESCORE\",\r\n  \"transaction_id\": \"PRIME-36a022ad-b6eb-42d0-95e6-de7562fd456a\",\r\n  \"msisdn\":\"6289600000005\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/income_score","urlObject":{"path":["api","v1","income_score"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8864cedc-b247-48dc-9144-351dcd919ac0"},{"name":"Income Score for INDOSAT msisdn","event":[{"listen":"prerequest","script":{"exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","\r","const now = new Date();\r","const year = now.getFullYear();\r","const month = (now.getMonth() + 1).toString().padStart(2, '0');\r","const day = now.getDate().toString().padStart(2, '0');\r","const hour = now.getHours().toString().padStart(2, '0');\r","const minute = now.getMinutes().toString().padStart(2, '0');\r","const second = now.getSeconds().toString().padStart(2, '0');\r","\r","const requestDate = `${year}-${month}-${day}T${hour}:${minute}:${second}`;\r","const consentId = `${year}${month}${day}T${hour}${minute}${second}`;\r","pm.globals.set(\"requestDate\", requestDate);\r","pm.globals.set(\"consentId\", consentId);\r",""],"type":"text/javascript","packages":{},"id":"45ca5018-624c-4dc5-b8be-17cf2979c58c"}},{"listen":"test","script":{"exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Score retrieved successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_value');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data.transaction_id).to.be.a('string');\r","    pm.expect(data.score_value).to.be.a('number');\r","    pm.expect(data.score_date).to.be.a('string');\r","});\r",""],"type":"text/javascript","packages":{},"id":"86714b63-962e-45b6-a686-b849da440266"}}],"id":"8302dfae-3483-4224-8023-c8e533f49e93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"INCOMESCORE\",\r\n  \"transaction_id\": \"PRIME-06ec2722-e562-4fab-854d-4d63decfda7e\",\r\n  \"msisdn\":\"6281600000005\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/income_score","urlObject":{"path":["api","v1","income_score"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8302dfae-3483-4224-8023-c8e533f49e93"},{"name":"Income Score for TELKOMSEL msisdn","event":[{"listen":"prerequest","script":{"exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","  \r",""],"type":"text/javascript","packages":{},"id":"ee5680bf-339f-4e2a-aa98-d80e28625346"}},{"listen":"test","script":{"exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Score retrieved successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_value');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data.transaction_id).to.be.a('string');\r","    pm.expect(data.score_date).to.be.a('string');\r","});\r",""],"type":"text/javascript","packages":{},"id":"b7dbd6f2-3128-4cbb-b5d5-593573eeffeb"}}],"id":"03b6d02a-0188-4f3e-94d2-14d3827c8af9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"INCOMESCORE\",\r\n  \"transaction_id\": \"PRIME-a5e584bd-d020-4f05-a6b8-8ee2024ea5f9\",\r\n  \"msisdn\":\"628510000004\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/income_score","urlObject":{"path":["api","v1","income_score"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"03b6d02a-0188-4f3e-94d2-14d3827c8af9"}],"id":"0aa56dc7-f6fe-4ed4-bf95-85f040fd782d","description":"<p>Income Score is a predictive scoring output derived from telecommunication behavioral indicators to estimate an individual’s income level.</p>\n<p>The model analyzes patterns such as top-up amount and frequency, data spending, and balance trends to infer economic capacity. Each request returns an income band classification.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>To access the API, you need a valid access token. Include the access token in the request headers as follows:</p>\n<p><code>Authorization: Bearer access_token</code></p>\n<h2 id=\"endpoint\">Endpoint</h2>\n<p>The API endpoint for accessing the telco score is: <code>https://prime-oneapi-uat.iscore.io/api/v1/income_score</code></p>\n<h2 id=\"request-parameters\">Request Parameters</h2>\n<p>The request should include the following parameters:</p>\n<ul>\n<li><p><code>partner_id</code> (string, Required): Partner ID associated with the request.</p>\n</li>\n<li><p><code>client_id</code> (string, Required): The user id or client code for this request.</p>\n</li>\n<li><p><code>product_id</code> (string, Required): Product ID for which the score is requested.</p>\n</li>\n<li><p><code>transaction_id</code> (string, Required): Unique transaction ID for tracking the request.</p>\n</li>\n<li><p><code>msisdn</code> (Required): The <code>msisdn</code> parameter should contain the mobile number of the client for whom you want to do the location verification.</p>\n</li>\n</ul>\n<h2 id=\"response-parameters\">Response Parameters</h2>\n<p>The API response will contain the calculated telco scores for the mobile number sent in the request. The response will be in JSON format and will include the following fields:</p>\n<ul>\n<li><p><code>status</code> (string, required): Operation status.</p>\n</li>\n<li><p><code>code</code> (string, required): Operation code.</p>\n</li>\n<li><p><code>message</code> (string, required): Operation result, indicating the success or failure of the request.</p>\n</li>\n<li><p><code>data</code> (object, required): An object containing score_value and score_date.</p>\n</li>\n<li><p><code>transactionid</code> (string, required): Unique system identifier for the transaction.</p>\n</li>\n<li><p><code>income_score</code>(float): Income score value</p>\n</li>\n<li><p><code>score_date</code>(string): Date when the score is generated.</p>\n</li>\n</ul>\n","_postman_id":"0aa56dc7-f6fe-4ed4-bf95-85f040fd782d"},{"name":"FindSocial","item":[{"name":"Social Score","event":[{"listen":"prerequest","script":{"id":"eb94a85a-11b5-4c59-ad01-340ef0efc964","exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","\r","const now = new Date();\r","const year = now.getFullYear();\r","const month = (now.getMonth() + 1).toString().padStart(2, '0');\r","const day = now.getDate().toString().padStart(2, '0');\r","const hour = now.getHours().toString().padStart(2, '0');\r","const minute = now.getMinutes().toString().padStart(2, '0');\r","const second = now.getSeconds().toString().padStart(2, '0');\r","\r","const requestDate = `${year}-${month}-${day}T${hour}:${minute}:${second}`;\r","const consentId = `${year}${month}${day}T${hour}${minute}${second}`;\r","pm.globals.set(\"requestDate\", requestDate);\r","pm.globals.set(\"consentId\", consentId);\r",""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"084479e8-0dbf-4d12-b023-26a112e9558c","exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure and data\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Social score retrieved successfully.');\r"," \r","});\r",""],"type":"text/javascript","packages":{}}}],"id":"88a4ee5b-7335-4feb-b1db-0d45425b4e45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"partner_id\": \"Tester-Partner-ID\",\r\n    \"client_id\": \"Tester-Client-ID\",\r\n    \"product_id\": \"Tester-Product-FS\",\r\n    \"transaction_id\": \"PRIME-019\",\r\n    \"msisdn\": \"628161142801\",\r\n    \"email\": \"tester-sandbox@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/social_score","urlObject":{"path":["api","v1","social_score"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"e93213d5-2c71-4f4a-9fcc-5dff67018ddb","name":"Social Score","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"partner_id\": \"Tester-Partner-ID\",\r\n    \"client_id\": \"Tester-Client-ID\",\r\n    \"product_id\": \"Tester-Product-FS\",\r\n    \"transaction_id\": \"PRIME-019\",\r\n    \"msisdn\": \"628161142801\",\r\n    \"email\": \"tester-sandbox@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/social_score"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"x-cloud-trace-context","value":"76d7dea19c81a4aceaafc8c65a42e49c;o=1"},{"key":"date","value":"Fri, 02 Aug 2024 09:08:43 GMT"},{"key":"server","value":"Google Frontend"},{"key":"content-length","value":"5356"},{"key":"via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"success\",\n    \"message\": \"Social score retrieved successfully.\",\n    \"data\": {\n        \"transaction_id\": \"PRIME-019\",\n        \"score_date\": \"2024-08-02T09:08:43\",\n        \"score\": {\n            \"mobile_score\": 3,\n            \"email_score\": 2,\n            \"account_detials\": {\n                \"email\": {\n                    \"apple\": false,\n                    \"ebay\": null,\n                    \"facebook\": false,\n                    \"flickr\": false,\n                    \"foursquare\": null,\n                    \"github\": true,\n                    \"google\": false,\n                    \"gravatar\": false,\n                    \"instagram\": false,\n                    \"lastfm\": null,\n                    \"linkedin\": null,\n                    \"microsoft\": false,\n                    \"myspace\": false,\n                    \"pinterest\": false,\n                    \"skype\": false,\n                    \"spotify\": false,\n                    \"tumblr\": false,\n                    \"twitter\": false,\n                    \"vimeo\": false,\n                    \"weibo\": false,\n                    \"yahoo\": false\n                },\n                \"phone\": {\n                    \"facebook\": true,\n                    \"google\": false,\n                    \"twitter\": false,\n                    \"instagram\": false,\n                    \"yahoo\": null,\n                    \"whatsapp\": true,\n                    \"whatsapp_last_seen\": null,\n                    \"whatsapp_picture\": \"/9j/4AAQSkZJRgABAQAAAQABAAD/7QCEUGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAGgcAigAYkZCTUQwYTAwMGE2ZjAxMDAwMDQ5MDIwMDAwYzkwMzAwMDAzNDA0MDAwMGFjMDQwMDAwNzUwNjAwMDBiMDA4MDAwMGZhMDgwMDAwNzAwOTAwMDBlMTA5MDAwMDhiMGQwMDAwAP/bAEMABgQFBgUEBgYFBgcHBggKEAoKCQkKFA4PDBAXFBgYFxQWFhodJR8aGyMcFhYgLCAjJicpKikZHy0wLSgwJSgpKP/bAEMBBwcHCggKEwoKEygaFhooKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKP/CABEIAGAAYAMBIgACEQEDEQH/xAAbAAADAQEBAQEAAAAAAAAAAAADBAUGAgEHAP/EABkBAAMBAQEAAAAAAAAAAAAAAAEDBAACBf/aAAwDAQACEAMQAAABkCseqMItnvGDWbze2k6wb2OtIFU8nysTSWJr9R35GOkX6ImxnKKrYtHysHSH3WG+fK1vzH6TQjJeptpYIenXevLWJpY7a1aM3z2VBvOUwmpN58iNrkdP2I1N9c8gSrKrZPqJNz1ucoS2K00vxtTOSMCv8/8AAMI7kZx7U+WUAWpL6gKAeDpdpPWlaJ1P3ROgqMnJziLKpDAmOAPnkhucmj//xAApEAACAgEDAwMDBQAAAAAAAAABAgMEAAUREhMhIiMxMgYUFRAzNEFD/9oACAEBAAEFAp1JkVM4nFHbfKp3iG2MuJ2JHeeeOuLF+WwQc3/XbLTTTyfj2yGzYpMGBOqWjVTzmnq6TJnLbOWcsDZautG8Vp1z7x9wwtx0JCo1pOrW+npEaDYHLFgRGPuPHAVwFLNkCLd4QTXqHoiqprV+MsVdjR1H+ni5RltgfuiZPu1TTR4IuzAHkh8UPSir8UbXoPV0+wXqahceNqDbYz7Na3lrpTkrRi3wKScsnD9Nqc4ySGxVs3kE2n1W4SamGa1p1BYa70leVBwWPHg4NiHJufSR5JYlij6X4pSqxdW9vsW+B+PZTMdxUTq2rVdoWZZ1RXmV1kxJcVQre+Anotm+N7acicbP7BPKkg7TKOfdcCbmUePyiYeeEbZWO1WQ7w/4jLVhY7tg+jD72ArJtsrjzxx4wn0zg+I+X1B/PMjtDAno2iAnIF5BsThyH2Hy9siG7a0/PUkz/8QAIhEAAwACAgIBBQAAAAAAAAAAAAECAxESIRAxEyBBQmHw/9oACAEDAQE/AVo6F36HLXs3ouzXjHE/Hv7maZUbln6ZpG+jlf8AMxWki61OyctXT5FjZsx21Q6S6K4seOX52cjkRla+hePxR//EACARAAICAgICAwAAAAAAAAAAAAABAhESIQMQEzEgQXH/2gAIAQIBAT8B2bP0VP0VbIcMY+y+pS3RB2xvdovRg8jw0SWyK3RLjSjohtFGJOFoUPsjkhTaK6oxMSfEvhXXts//xAA0EAACAQICBwUHBAMAAAAAAAABAgARIQMSECIxQVFhcQQTMkKBIDNScpGhsSNiY+GCovD/2gAIAQEABj8COpX0/qHU+39Twf6xtX7Tf/3rDXjabRprK4pv8ImVdROA9pkw2yYYsecs4gTH18L8QUNjFVBrN5junmdiZXHbIPhG32XRVFt5MuoeeFOkOEUIYioMyN4sM0i4o8tjGSg7wG+gZgTXhK7NOIwQELYVO2EOutTdKDDzUtbZCVbu34TE7QvvCcxHCHCbzCk1rCuVpWKXFpW7HgJq9nt+6MTgoABHUG8pb6Tno7t2OalGisu45WneDYwrBnZgVsaTuFUZRes7PiEXeuwTrymKieIraHFzZnFio2TWUwHKV5mKFGYE0NN0sM3TbMPvVdULHpA3wRP5FofmEYjZaDP74ivTlMz94f8AOUVQqwg75UeH8T8QcZ+niZWjLjuXw2S9Y2HmJDSg7R5swOXZMp8K3MrKiH6TlCFiod5mZDXDJtxENeFds1hq6Wpv2yhl+MUaXxGGuuyJ80cHdKQ5baLSsTnBBBMQdYIRoCOQNWsragua8J1jV1Yq8BoHSekbnWAaPtAOCCZC5yDdARvhJ6aK8p6Q9IR7GNyOXR//xAAmEAEAAgICAQQCAwEBAAAAAAABABEhMUFRcWGBkaGx0RDB8OHx/9oACAEBAAE/IXY0GaP9o1BrZ1j1vw/UwSjHomGg/MtkvU/9Zb8G/wCFw2G54q25/UUfmWLWiW6PiC9EB6ILom7Nrl8+0zt9hnraVt8H+oldAyueS0aekMetA2sU7T2/8RsrEPGHjPDBg6GRbfRMSE64qOqB/m5lj81kaX8x1GzV+I/9lBrKcpx/vSKtVbxOKiQKnYc5mOFYPuOvUfBG7lSldX1FttsQeRF5kiHJjVyzzwC6gbRER6Qbaz7e/wAMGyTcNIS2eZaATrIs/skgSzFbcfcErFh+oJbXNrfuGV6OK5J473CTho53+5knfojz8wghhe4w/VfEMMIfY/xHyXIZyRrHhDozVy0AxlrCY2wAblgSjUL/ADxBpFxVSvRngqYczvacPzUoqE7Hdo7bau3PmIDKs+NP5mQa+ifsl9WP4RFN3ivxTfOdCBhiQGiEaF9XmINT6tw5Cjfkvqy/pBtX7auVJ5CmHu5iaSNmY3iGrNnzHpMZj+CWGAU6JXzYSgtCnJD1riE7QqfFRxh5Z9iGZChnwYRsypbvHUp5/hpADl8JjhX9QHeI9pv1FxX2wjbmiGK5V+0dl6n5m4KKPTMz1CVA0YhzGO412XZzAe5/EHyH8UGfdLFtUTU59tym8/qfemLnwy5oiy73LmKZFVBdeGZsSTCTxo+WYUD8kvv1GFthl5GPl1BpDzOI/cCspY3EZ2lr8TWQ4eNRAztuN7hEntKagRUd1nxPySqU+pKP1wyx3Z9QqKyu5//aAAwDAQACAAMAAAAQH6h28+mGckIZDonPkKExrG6HruDxa6tCQ4rp/8QAHxEAAwEBAAICAwAAAAAAAAAAAAERITFBUXGRodHx/9oACAEDAQE/EGgvsJc0L6hho6NWHFNMq4/z/Bbpb8b+cEmk0Qbm6hWs6eifT9kyxLOoNJJRXHOjZEb6YrjHlMoSXs8IUT0wJnKxMhkk+MghjaUkYf/EAB8RAQEBAAICAgMAAAAAAAAAAAEAESExEGFBUXGB8P/aAAgBAgEBPxB5dX4T18LoPYQBE7yfDZuY4/v3FyGRYrSObTD1OWs+knT02PDmAM6d8B9hImIAr9XTXSzi9rHMlkakO+AmJbiv/8QAJRABAAIBAwQCAwEBAAAAAAAAAQARITFBUWFxgaGRscHR8OHx/9oACAEBAAE/EGKF3Gxy/dArAvHZk2yjY/jjEMRjWpT0SP0sj6EL76zNXa9W538TFp7dnXjvBDBTEc5xAKy0quZqgS2Hm4dWKznrc7ue78QALDlIJ+tP8GRP6o/ELiudCB0b5Y2vMRCxWCJ75iwZDqg5O7xULA00Zu9KhiEXIBDDm3XaVVzmg5komSjQ/d09pwB1l7BcfKU7fKY+nmKF2FaXu7SyG7TXTK3TcHfp8r8K+o8R4Bh64R1xWYxAthaWsr3D3oPj8+AfMaVHCVS1OuyV+U4CQqStsRdEdKaQ1gRTXnapYUD0gQC+rHAXiKBFSukJlTqgbCBTi9A2LiLaoSKDBhp4d7iBwAC3MLqraaWygAXVtAKDTAtsBXxm2xT53h+yjbCA9/Cx3pFoDhNS++IpH7ZADhxufmAhRR7fATCIUtKUeMS7yo1FZS4zyGc1hfzcsyCyA9XlMU8xKyFRLLLYtqoYNMdQd0JCbhuIi/B8MyhGp0PecWJLQu6hU6lr7xE8AbEg1XRWZbSoJVWb1pb1IGUxs0Do6sCoagWrBrRfMYglWgQNrkC5Y52jBcNmssp3TiLdhz6hWKIJUHAZRqXbeIX6CvN2Gl8XEvv1du8WLLDvnEAGhe/+O3iM7XjOqvPtYGFlVdATNdouDSZMUVaZXtF4ZDrLvNniouN1X1XLuvWEhBKhixkYJYix1GmR1rOYDFl3ZQG59EI0aAFXWNxaUgMaVuPUl4dbps0DcoTBAMqdFBKuIRcFWNDpur3G1rnRgbL3fQy4LUFR0qG0RxerMCtXO1vAdTBO0vesBbXmoPBhjSBKDtpATtDQl1bnvAQdWCqAJWNWukppNBIM0sOl7ZOhrHRoeZWmbCLCGJzQPoqWhfZYu3aCK13IMj7je9HdZdM/8oDJg06hrqWReuMfMDX6Z4X9wXFi6ZCFB4vNTQS3HS5WYHqYtC683FkqtVMkWAFyWgOkc54m+OHv5YgsUivS/wBHuXJTmn0sNs3VABk2e1y4RAohlSwvE4LAndQcTTNORzCVWo+LZjT0+sKxXA4JhtFVIM3e9tR+RBrcBt5/cWr4X4ozb/aQolWZa1/xmRNKX6JjZy+katqOIbSKUrS0H8xIJ0Dw/wARaGii/TMdZBt2dJvw9TZX0kzJIBH+dIY9vcagav8AHmBsmyYE/a4hgRte2A9MI5bSdVfxAaqv4/EqWlA+4spVyUBqDa4D+onYVXzkiWi8u8aTRoIe0vYy54J//9k=\",\n                    \"telegram\": null,\n                    \"viber\": null\n                }\n            }\n        }\n    }\n}"}],"_postman_id":"88a4ee5b-7335-4feb-b1db-0d45425b4e45"}],"id":"43cd06f4-acec-4113-93e5-b712943ffb47","description":"<p>FindScocial API returns email score and mobile number score along with additional flags. This is currently available for SMART, Globe, and DITO mobile numbers.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>To access the API, you need a valid access token. Include the access token in the request headers as follows:</p>\n<p><code>Authorization: Bearer access_token</code></p>\n<h2 id=\"endpoint\">Endpoint</h2>\n<p>The API endpoint for accessing the FindSocial Score is:</p>\n<p><code>https://prime-oneapi-uat.iscore.io/api/v1/social_score</code></p>\n<h2 id=\"request-parameters\">Request Parameters</h2>\n<p>The request should include the following parameters:</p>\n<h3 id=\"mobilenumber-optional\"><code>mobilenumber</code> (Optional)</h3>\n<p>The <code>mobilenumber</code> parameter should contain the number of the client for whom you want to generate the findsocial score. This is an optional field if emailID is present in the request.</p>\n<h3 id=\"emailid-optional\"><code>emailID</code> (Optional)</h3>\n<p>The <code>mobilenumber</code> parameter should contain the number of the client for whom you want to generate the findsocial score. This is an optional field if mobilenumber is present in the request.</p>\n<h3 id=\"productids-required\"><code>productids</code> (Required)</h3>\n<p>The <code>productids</code> parameter is a semicolon-separated list of product codes that you want to use for the address check. For FindSocial API request, the productids should be \"60;\".</p>\n<h3 id=\"requestid-required\"><code>requestid</code> (Required)</h3>\n<p>The <code>requestid</code> parameter is an identifier for the API request. It should be a unique value for each API call.</p>\n<p><strong>Note</strong>: The input fields for FindSocial (email and mobile number) are both optional, but at least one of them should be populated in the request.</p>\n<h2 id=\"response-parameters\">Response Parameters</h2>\n<p>The API response will contain the calculated telco scores for the email ID and/or mobile number sent in the request. The response will be in JSON format and will include the following fields:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Property name</strong></th>\n<th><strong>Property type</strong></th>\n<th><strong>Is mandatory ?</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>requestid</td>\n<td>string</td>\n<td>yes</td>\n<td>Requestor unique identifier</td>\n</tr>\n<tr>\n<td>scores</td>\n<td>array</td>\n<td>yes</td>\n<td>List of scores</td>\n</tr>\n<tr>\n<td>productID 60</td>\n<td>string</td>\n<td>yes</td>\n<td>Score result</td>\n</tr>\n<tr>\n<td>- account_detials - &gt;email</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>flickr</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>foursquare</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td></td>\n<td>(null possible result)</td>\n</tr>\n<tr>\n<td>github</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>google</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>gravatar</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>instagram</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>lastfm</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>linkedin</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>microsoft</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>myspace</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>pinterest</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null possible result)</td>\n</tr>\n<tr>\n<td>skype</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>spotify</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>tumblr</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>vimeo</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>weibo</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null possible result)</td>\n</tr>\n<tr>\n<td>yahoo</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null possible result)</td>\n</tr>\n<tr>\n<td>twitter</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null possible result)</td>\n</tr>\n<tr>\n<td>linkedin_details</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>company</td>\n<td>string</td>\n<td>no</td>\n<td>Client company</td>\n</tr>\n<tr>\n<td>location</td>\n<td>string</td>\n<td>no</td>\n<td>Client location</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>no</td>\n<td>Client Name</td>\n</tr>\n<tr>\n<td>photo</td>\n<td>string</td>\n<td>no</td>\n<td>URL photo</td>\n</tr>\n<tr>\n<td>title</td>\n<td>string</td>\n<td>no</td>\n<td>Title</td>\n</tr>\n<tr>\n<td>twitter</td>\n<td>string</td>\n<td>no</td>\n<td>Twitter account</td>\n</tr>\n<tr>\n<td>url</td>\n<td>string</td>\n<td>no</td>\n<td>LinkedIn account url</td>\n</tr>\n<tr>\n<td>website</td>\n<td>string</td>\n<td>no</td>\n<td>Linkedin website</td>\n</tr>\n<tr>\n<td>facebook_details</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>name</td>\n<td></td>\n<td></td>\n<td>Name</td>\n</tr>\n<tr>\n<td>photo</td>\n<td></td>\n<td></td>\n<td>url to Photo</td>\n</tr>\n<tr>\n<td>url</td>\n<td></td>\n<td></td>\n<td>url to account</td>\n</tr>\n<tr>\n<td>skype_details</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>age</td>\n<td>numeric</td>\n<td>no</td>\n<td>Age</td>\n</tr>\n<tr>\n<td>bio</td>\n<td>string</td>\n<td>no</td>\n<td>Short description</td>\n</tr>\n<tr>\n<td>city</td>\n<td>string</td>\n<td>no</td>\n<td>City</td>\n</tr>\n<tr>\n<td>country</td>\n<td>string</td>\n<td>no</td>\n<td>Country</td>\n</tr>\n<tr>\n<td>gender</td>\n<td>numeric</td>\n<td>no</td>\n<td>0 = female, 1 = male</td>\n</tr>\n<tr>\n<td>language</td>\n<td>string</td>\n<td>no</td>\n<td>Language</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>no</td>\n<td>Name</td>\n</tr>\n<tr>\n<td>photo</td>\n<td>string</td>\n<td>no</td>\n<td>url to photo</td>\n</tr>\n<tr>\n<td>state</td>\n<td>string</td>\n<td>no</td>\n<td>status</td>\n</tr>\n<tr>\n<td>account_detials - &gt;phone</td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>facebook</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>google</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>instagram</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>telegram</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>telegram_picture</td>\n<td>string</td>\n<td>no</td>\n<td>Base64 encoded picture</td>\n</tr>\n<tr>\n<td>telegram_last_seen</td>\n<td>date</td>\n<td>no</td>\n<td>timestamp</td>\n</tr>\n<tr>\n<td>twitter</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>viber</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>viber_last_seen</td>\n<td>datetime</td>\n<td>no</td>\n<td>timestamp</td>\n</tr>\n<tr>\n<td>viber_picture</td>\n<td>string</td>\n<td>no</td>\n<td>Base64 encoded picture</td>\n</tr>\n<tr>\n<td>whatsapp</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>whatsapp_last_seen</td>\n<td>datetime</td>\n<td>no</td>\n<td>timestamp</td>\n</tr>\n<tr>\n<td>whatsapp_picture</td>\n<td>string</td>\n<td>no</td>\n<td>Base64 encoded picture</td>\n</tr>\n<tr>\n<td>yahoo</td>\n<td>bool</td>\n<td>no</td>\n<td>Social network account (null is a possible result)</td>\n</tr>\n<tr>\n<td>email_score</td>\n<td>numeric</td>\n<td>yes</td>\n<td>email score result</td>\n</tr>\n<tr>\n<td>phone_score</td>\n<td>numeric</td>\n<td>yes</td>\n<td>Phone number score result</td>\n</tr>\n<tr>\n<td></td>\n<td></td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>code</td>\n<td>string</td>\n<td>yes</td>\n<td>Operation code</td>\n</tr>\n<tr>\n<td>result</td>\n<td>string</td>\n<td>yes</td>\n<td>Operation result</td>\n</tr>\n<tr>\n<td>transactionid</td>\n<td>string</td>\n<td>yes</td>\n<td>Unique system  <br />identifier</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Result codes</strong></p>\n<p>Result and code can have the below given values in the response.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Result</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>0000</td>\n<td>ok</td>\n<td>Successful operation</td>\n</tr>\n<tr>\n<td>1111</td>\n<td>error</td>\n<td>General error</td>\n</tr>\n<tr>\n<td>1000</td>\n<td>ok</td>\n<td>Score not available</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"43cd06f4-acec-4113-93e5-b712943ffb47"},{"name":"NIK MSISDN Match","item":[{"name":"NIK MSISDN Match for XL","event":[{"listen":"prerequest","script":{"exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","  \r",""],"type":"text/javascript","packages":{},"id":"ebe69c53-edd0-46d8-a777-851e132f3990"}},{"listen":"test","script":{"exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Score retrieved successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_value');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data.transaction_id).to.be.a('string');\r","    pm.expect(data.score_date).to.be.a('string');\r","});\r",""],"type":"text/javascript","packages":{},"id":"0073e324-2c42-403b-89f1-c4f05987667e"}}],"id":"7c7b88cb-3b85-40e4-939c-f57ed82c8a3e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"NIKPHONEMATCH\",\r\n  \"transaction_id\": \"PRIME-2d429927-9f99-43ca-9868-7b7ba940a76b\",\r\n  \"msisdn\":6281700000001,\r\n  \"nik\":\"3174092612780003\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://prime-oneapi-uat.iscore.io/api/v1/nik_score","urlObject":{"protocol":"https","path":["api","v1","nik_score"],"host":["prime-oneapi-uat","iscore","io"],"query":[],"variable":[]}},"response":[{"id":"e6fac00d-2546-4021-aa44-d2ce0ad094e8","name":"NIK MSISDN Match for XL","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"NIKPHONEMATCH\",\r\n  \"transaction_id\": \"PRIME-e4a3e490-0571-4c8b-8516-61e7394b6386\",\r\n  \"msisdn\":6281700000001,\r\n  \"nik\":\"3174092612780003\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://prime-oneapi-uat.iscore.io/api/v1/nik_score"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"x-cloud-trace-context","value":"ba59a0fa98dcc951d934b278f051c769;o=1"},{"key":"date","value":"Thu, 13 Mar 2025 04:50:40 GMT"},{"key":"server","value":"Google Frontend"},{"key":"content-length","value":"195"},{"key":"via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"success\",\n    \"message\": \"Score retrieved successfully.\",\n    \"data\": {\n        \"transaction_id\": \"PRIME-612d13b4-3f1c-4111-af87-4e85adf17be1\",\n        \"score_value\": 1,\n        \"score_date\": \"2025-03-13T04:50:40\"\n    }\n}"}],"_postman_id":"7c7b88cb-3b85-40e4-939c-f57ed82c8a3e"},{"name":"NIK MSISDN Match for TELKOMSEL","event":[{"listen":"prerequest","script":{"exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","  \r",""],"type":"text/javascript","packages":{},"id":"622ce064-68e1-4237-8aa0-80184520e7fc"}},{"listen":"test","script":{"exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Score retrieved successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_value');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data.transaction_id).to.be.a('string');\r","    pm.expect(data.score_date).to.be.a('string');\r","});\r",""],"type":"text/javascript","packages":{},"id":"bd2aa041-96bb-40b6-bbcb-d55bfb5f4453"}}],"id":"257ddbbb-91b4-402e-9154-4530610be509","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"NIKPHONEMATCH\",\r\n  \"transaction_id\": \"PRIME-eeb06de3-6ebd-43b8-a1b0-ddb54df7cf9e\",\r\n  \"msisdn\":628510000001,\r\n  \"nik\":\"3174092612780003\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://prime-oneapi-uat.iscore.io/api/v1/nik_score","urlObject":{"protocol":"https","path":["api","v1","nik_score"],"host":["prime-oneapi-uat","iscore","io"],"query":[],"variable":[]}},"response":[{"id":"485397f3-f142-4bde-9d0c-8011e2dda661","name":"NIK MSISDN Match for TELKOMSEL","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"NIKPHONEMATCH\",\r\n  \"transaction_id\": \"PRIME-66f694e1-87fc-443b-a417-98bc5e22509c\",\r\n  \"msisdn\":628510000001,\r\n  \"nik\":\"3174092612780003\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://prime-oneapi-uat.iscore.io/api/v1/nik_score"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json"},{"key":"x-cloud-trace-context","value":"0dcf9bb6147ccc2e86102c17ab45ffe5;o=1"},{"key":"date","value":"Thu, 13 Mar 2025 04:51:03 GMT"},{"key":"server","value":"Google Frontend"},{"key":"content-length","value":"195"},{"key":"via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"success\",\n    \"message\": \"Score retrieved successfully.\",\n    \"data\": {\n        \"transaction_id\": \"PRIME-0b638aaf-f45d-4929-8412-3862dea3a29b\",\n        \"score_value\": 1,\n        \"score_date\": \"2025-03-13T04:51:03\"\n    }\n}"}],"_postman_id":"257ddbbb-91b4-402e-9154-4530610be509"},{"name":"NIK MSISDN Match for IOH","event":[{"listen":"prerequest","script":{"exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","  \r",""],"type":"text/javascript","packages":{},"id":"bf4c5833-aeef-4f15-8f69-7432c3d67d79"}},{"listen":"test","script":{"exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Score retrieved successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_value');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data.transaction_id).to.be.a('string');\r","    pm.expect(data.score_date).to.be.a('string');\r","});\r",""],"type":"text/javascript","packages":{},"id":"8ae3b71c-c135-40c6-a01e-ac125d2801a9"}}],"id":"56db729f-bfd7-44d7-b5c0-3b8eb11d97d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"NIKPHONEMATCH\",\r\n  \"transaction_id\": \"PRIME-9e8bf5a1-b1f3-4468-95cb-5510e0725c54\",\r\n  \"msisdn\":6281600000001,\r\n  \"nik\":\"3174092612780003\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://prime-oneapi-uat.iscore.io/api/v1/nik_score","urlObject":{"protocol":"https","path":["api","v1","nik_score"],"host":["prime-oneapi-uat","iscore","io"],"query":[],"variable":[]}},"response":[],"_postman_id":"56db729f-bfd7-44d7-b5c0-3b8eb11d97d6"}],"id":"0db0c8ae-2d98-41f9-bb4a-bba429b35844","description":"<p>In the telecommunications sector, a newly activated SIM card must be registered using an Identity Card (KTP). This process creates a database where each mobile phone number is linked to a specific National Identity Number (NIK). The Prime OneAPI solution enables verification by checking whether a given mobile phone number (MSISDN) matches the registered NIK in the telecom provider’s SIM card registration database.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>To access the API, you need a valid access token. Include the access token in the request headers as follows:</p>\n<p><code>Authorization: Bearer access_token</code></p>\n<h2 id=\"endpoint\">Endpoint</h2>\n<p>The API endpoint for accessing the telco score is: <code>https://prime-oneapi-uat.iscore.io/api/v1/nik_score</code></p>\n<h2 id=\"request-parameters\">Request Parameters</h2>\n<p>The request should include the following parameters:</p>\n<ul>\n<li><p><code>msisdn</code> (Required): The <code>msisdn</code>parameter should contain the mobile number of the client for whom you want to generate the telco score.</p>\n</li>\n<li><p>nik (Required): National Identity Number. Input type is numeric (15-16 digit only).</p>\n</li>\n<li><p><code>partner_id</code> (Required): Partner ID associated with the request.</p>\n</li>\n<li><p><code>client_id</code> (Required): The user id or client code for this request.</p>\n</li>\n<li><p><code>product_id</code> (Required): Product ID for which the score is requested.</p>\n</li>\n<li><p><code>transaction_id</code> (Required): Unique transaction ID for tracking the request.</p>\n</li>\n</ul>\n<h2 id=\"response-parameters\">Response Parameters</h2>\n<p>The API response will contain the calculated telco scores for the mobile number sent in the request. The response will be in JSON format and will include the following fields:</p>\n<ul>\n<li><p><code>status</code> (string, required): Operation status.</p>\n</li>\n<li><p><code>transactionid</code> (string, required): Unique system identifier for the transaction.</p>\n</li>\n<li><p><code>code</code> (string, required): Operation code.</p>\n</li>\n<li><p><code>message</code> (string, required): Operation result, indicating the success or failure of the request.</p>\n</li>\n<li><p><code>data</code> (object, required): An object containing score_value and score_date.</p>\n</li>\n<li><p><code>nik_match_result</code> (string): NIK score value, where <strong>1</strong> indicates a match and <strong>0</strong> indicates no match.</p>\n</li>\n<li><p><code>score_date</code>(string): Date when the score is generated.</p>\n</li>\n</ul>\n","_postman_id":"0db0c8ae-2d98-41f9-bb4a-bba429b35844"},{"name":"Recycle Number Check","item":[{"name":"Recycle Number Check for XL MSISDN","event":[{"listen":"prerequest","script":{"id":"d45255cf-c7be-46fb-bfbb-3a587118e782","exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","\r","const now = new Date();\r","const year = now.getFullYear();\r","const month = (now.getMonth() + 1).toString().padStart(2, '0');\r","const day = now.getDate().toString().padStart(2, '0');\r","const hour = now.getHours().toString().padStart(2, '0');\r","const minute = now.getMinutes().toString().padStart(2, '0');\r","const second = now.getSeconds().toString().padStart(2, '0');\r","\r","const requestDate = `${year}-${month}-${day}T${hour}:${minute}:${second}`;\r","const consentId = `${year}${month}${day}T${hour}${minute}${second}`;\r","pm.globals.set(\"requestDate\", requestDate);\r","pm.globals.set(\"consentId\", consentId);\r",""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"b31852f6-c211-4836-82d1-61a8c9ec03a3","exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Score retrieved successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_value');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data.transaction_id).to.be.a('string');\r","    pm.expect(data.score_date).to.be.a('string');\r","});\r",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"7bff7975-89df-44cd-8688-aef5873cc3e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-da8712d0-1570-47e0-8aea-78a373903938\",\r\n  \"msisdn\":\"6281700000002\",\r\n  \"reference_date\": \"2026-02-02\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/recycle_number","urlObject":{"path":["api","v1","recycle_number"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"952e3bd3-d5c3-4dc0-bd42-7f26c4494ab6","name":"Recycle Number Check for XL MSISDN","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-4b2a5881-c039-414b-99ea-df9537aedec2\",\r\n  \"msisdn\":\"6281700000002\",\r\n  \"reference_date\": \"2026-02-02\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/recycle_number"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"content-type","value":"application/json"},{"key":"x-cloud-trace-context","value":"412a29661a03430c2ce4210172d79229;o=1"},{"key":"date","value":"Thu, 05 Feb 2026 04:32:41 GMT"},{"key":"server","value":"Google Frontend"},{"key":"content-length","value":"209"},{"key":"via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"success\",\n    \"message\": \"Recycle check completed successfully\",\n    \"data\": {\n        \"transaction_id\": \"PRIME-f0097119-cdc8-4730-b2fa-4dfbe10de79b\",\n        \"recycle_check\": \"true\",\n        \"checked_at\": \"2026-02-05T04:32:41\"\n    }\n}"}],"_postman_id":"7bff7975-89df-44cd-8688-aef5873cc3e1"},{"name":"Recycle Number Check for TELKOMSEL MSISDN","event":[{"listen":"prerequest","script":{"id":"ae260b5b-cec6-47c1-b67c-12f100351d01","exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","  \r",""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"6c1af3be-d4b8-4f59-82e0-80b0ad14d039","exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Score retrieved successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_value');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data.transaction_id).to.be.a('string');\r","    pm.expect(data.score_date).to.be.a('string');\r","});\r",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"1d90f061-7238-42dd-a810-59935e22194c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-edb30d2b-a500-4804-b7e2-35429bb2e76b\",\r\n  \"msisdn\":\"628210000001\",\r\n  \"reference_date\": \"2026-01-20\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/recycle_number","urlObject":{"path":["api","v1","recycle_number"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"627a72f4-5b5c-4006-ad6d-3f1cbdeb3188","name":"Recycle Number Check for TELKOMSEL MSISDN","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-a339de96-f434-4fbc-8fb9-c145d3a2477e\",\r\n  \"msisdn\":\"628210000001\",\r\n  \"reference_date\": \"2026-01-20\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/recycle_number"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"content-type","value":"application/json"},{"key":"x-cloud-trace-context","value":"c746eca9888c13ca46509985273f300b;o=1"},{"key":"date","value":"Thu, 05 Feb 2026 04:33:06 GMT"},{"key":"server","value":"Google Frontend"},{"key":"content-length","value":"209"},{"key":"via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"success\",\n    \"message\": \"Recycle check completed successfully\",\n    \"data\": {\n        \"transaction_id\": \"PRIME-7ff5f7fa-0ecc-4dce-a800-16e7f620a4cb\",\n        \"recycle_check\": \"true\",\n        \"checked_at\": \"2026-02-05T04:33:06\"\n    }\n}"}],"_postman_id":"1d90f061-7238-42dd-a810-59935e22194c"},{"name":"Recycle Number for INDOSAT MSISDN","event":[{"listen":"prerequest","script":{"id":"970af5b0-30e2-47bc-83f3-4343d3a0cde2","exec":["// Get the value of the \"access-token\" parameter from the environment or global variable\r","const accessToken = pm.environment.get(\"prime_access_token\") || pm.globals.get(\"prime_access_token\");\r","\r","// Check if the access token is available\r","if (accessToken) {\r","    // Set the \"Authorization\" header with the value of the access token\r","    pm.request.headers.add({\r","        key: \"Authorization\",\r","        value: `Bearer ${accessToken}`\r","    });\r","}\r","\r","const now = new Date();\r","const year = now.getFullYear();\r","const month = (now.getMonth() + 1).toString().padStart(2, '0');\r","const day = now.getDate().toString().padStart(2, '0');\r","const hour = now.getHours().toString().padStart(2, '0');\r","const minute = now.getMinutes().toString().padStart(2, '0');\r","const second = now.getSeconds().toString().padStart(2, '0');\r","\r","const requestDate = `${year}-${month}-${day}T${hour}:${minute}:${second}`;\r","const consentId = `${year}${month}${day}T${hour}${minute}${second}`;\r","pm.globals.set(\"requestDate\", requestDate);\r","pm.globals.set(\"consentId\", consentId);\r",""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"b4fc964f-270e-4d67-b09b-a422a4f36657","exec":["// Test for response status code\r","pm.test(\"Status code is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","// Test for response body\r","pm.test(\"Response body has correct structure\", function () {\r","    pm.expect(pm.response.json()).to.have.property('code', 200);\r","    pm.expect(pm.response.json()).to.have.property('status', 'success');\r","    pm.expect(pm.response.json()).to.have.property('message', 'Score retrieved successfully.');\r","\r","    var data = pm.response.json().data;\r","    pm.expect(data).to.have.property('transaction_id');\r","    pm.expect(data).to.have.property('score_value');\r","    pm.expect(data).to.have.property('score_date');\r","    pm.expect(data.transaction_id).to.be.a('string');\r","    pm.expect(data.score_value).to.be.a('number');\r","    pm.expect(data.score_date).to.be.a('string');\r","});\r",""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"a7f7d56e-fd52-44c7-b7b1-4388d881d18f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-e997426d-fc40-4628-9549-42e599aeda58\",\r\n  \"msisdn\":\"6281700000002\",\r\n  \"reference_date\": \"2026-01-20\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/recycle_number","urlObject":{"path":["api","v1","recycle_number"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"aea6e383-9b8b-4e55-94cb-4868a4c9a2b5","name":"Recycle Number for INDOSAT MSISDN","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n  \"partner_id\": \"Tester-Partner-ID\",\r\n  \"client_id\": \"Tester-Client-ID\",\r\n  \"product_id\": \"Tester-Product-Score\",\r\n  \"transaction_id\": \"PRIME-8462d1fc-1e7b-4f18-a989-2f3fbe830ad6\",\r\n  \"msisdn\":\"6281700000002\",\r\n  \"reference_date\": \"2026-01-20\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/api/v1/recycle_number"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"content-type","value":"application/json"},{"key":"x-cloud-trace-context","value":"6746989b93e84c969d93a290f6331baf;o=1"},{"key":"date","value":"Thu, 05 Feb 2026 04:33:40 GMT"},{"key":"server","value":"Google Frontend"},{"key":"content-length","value":"209"},{"key":"via","value":"1.1 google"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"success\",\n    \"message\": \"Recycle check completed successfully\",\n    \"data\": {\n        \"transaction_id\": \"PRIME-86e25dff-58de-4f0b-9e7a-0c32f835da2e\",\n        \"recycle_check\": \"true\",\n        \"checked_at\": \"2026-02-05T04:33:40\"\n    }\n}"}],"_postman_id":"a7f7d56e-fd52-44c7-b7b1-4388d881d18f"}],"id":"d86fa859-048f-4b0a-adbe-48cd3a7fcdd7","description":"<p>Recycle Number check API provides a simple API to check whether a phone number is recycled as of a given date.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>To access the API, you need a valid access token. Include the access token in the request headers as follows:</p>\n<p><code>Authorization: Bearer access_token</code></p>\n<h2 id=\"endpoint\">Endpoint</h2>\n<p>The API endpoint for accessing the telco score is: <code>https://prime-oneapi-uat.iscore.io/api/v1/recycle_number</code></p>\n<h2 id=\"request-parameters\">Request Parameters</h2>\n<p>The request should include the following parameters:</p>\n<ul>\n<li><p><code>msisdn</code> (Required): The <code>msisdn</code>parameter should contain the mobile number of the client for whom you want to generate the telco score.</p>\n</li>\n<li><p><code>reference_date</code> (Required): Input reference date to check whether a phone number is recycled. Format is YYYY-MM-DD. <code>reference_date</code> must not be a future date. Requests with a future date will be rejected as invalid input (error). Maximum Supported Lookback Period:-</p>\n<ul>\n<li><p>For IOH, the maximum supported lookback period is 90 days.</p>\n</li>\n<li><p>For XL, the maximum supported lookback period is 1 year</p>\n</li>\n<li><p>For Telkomsel, no limitation.</p>\n</li>\n<li><p>Request with a date beyond the supported lookback Period, will be rejected as invalid input (error).</p>\n</li>\n</ul>\n</li>\n<li><p><code>partner_id</code> (Required): Partner ID associated with the request.</p>\n</li>\n<li><p><code>client_id</code> (Required): The user ID or client code for this request.</p>\n</li>\n<li><p><code>product_id</code> (Required): Product ID for which the score is requested.</p>\n</li>\n<li><p><code>transaction_id</code> (Required): Unique transaction ID for tracking the request.</p>\n</li>\n</ul>\n<h2 id=\"response-parameters\">Response Parameters</h2>\n<p>The API response will contain the calculated telco scores for the mobile number sent in the request. The response will be in JSON format and will include the following fields:</p>\n<ul>\n<li><p><code>status</code> (string, required): Operation status.</p>\n</li>\n<li><p><code>code</code> (string, required): Operation code.</p>\n</li>\n<li><p><code>message</code> (string, required): Operation result, indicating the success or failure of the request.</p>\n</li>\n<li><p><code>data</code> (object, required): An object containing score_value and score_date.</p>\n</li>\n<li><p><code>transactionid</code> (string, required): Unique system identifier for the transaction.</p>\n</li>\n<li><p><code>recycle_check</code> (string): Status of the Recycle Check -</p>\n<ul>\n<li><p><code>true</code> - The number is recycled.</p>\n</li>\n<li><p><code>false-</code>- The number is not recycled.</p>\n</li>\n<li><p><code>unknown</code> - Telco cannot decide, but the request is successful from the Telco.</p>\n</li>\n</ul>\n</li>\n<li><p><code>checked_at</code> (string): Checked at Timestamp.</p>\n</li>\n</ul>\n","_postman_id":"d86fa859-048f-4b0a-adbe-48cd3a7fcdd7"}]}