{"info":{"_postman_id":"d38f0ae1-bf07-4da2-ba3a-56c73c139cee","name":"FIU service - public","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"15462260","collectionId":"d38f0ae1-bf07-4da2-ba3a-56c73c139cee","publishedId":"UVCBBQLW","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"20014B","highlight":"4FD9D3"},"publishDate":"2021-11-17T12:39:31.000Z"},"item":[{"name":"Consent APIs","item":[{"name":"Create new consent","event":[{"listen":"test","script":{"id":"662145c6-8448-487b-bb40-c2972de3dc6e","exec":["if(pm.response.code == 201) {","    const parsedJson = pm.response.json()","    pm.collectionVariables.set(\"consent_request_id\", parsedJson.id);","}"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"6c1423de-2d7d-44d4-974e-228548ff2c8d","exec":[""],"type":"text/javascript"}}],"id":"c406d56b-11f4-4867-8e69-c9d39ce54cfc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-client-id","value":"test-client","type":"text"},{"key":"x-client-secret","value":"3fa14d45-3adc-4522-b512-1e3f24d92568","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"Detail\": {\n        \"consentStart\": \"2026-05-21T05:49:21.290Z\",\n        \"consentExpiry\": \"2023-04-23T05:44:53.822Z\",\n        \"Customer\": {\n            \"id\": \"9999999999@onemoney\"\n        },\n        \"FIDataRange\": {\n            \"from\": \"2021-04-01T00:00:00Z\",\n            \"to\": \"2021-10-01T00:00:00Z\"\n        },\n        \"consentMode\": \"STORE\",\n        \"consentTypes\": [\n            \"TRANSACTIONS\",\n            \"PROFILE\",\n            \"SUMMARY\"\n        ],\n        \"fetchType\": \"PERIODIC\",\n        \"Frequency\": {\n            \"value\": 30,\n            \"unit\": \"MONTH\"\n        },\n        \"DataFilter\": [\n            {\n                \"type\": \"TRANSACTIONAMOUNT\",\n                \"value\": \"5000\",\n                \"operator\": \">=\"\n            }\n        ],\n        \"DataLife\": {\n            \"value\": 1,\n            \"unit\": \"MONTH\"\n        },\n        \"DataConsumer\": {\n            \"id\": \"setu-fiu-id\"\n        },\n        \"Purpose\": {\n            \"Category\": {\n                \"type\": \"string\"\n            },\n            \"code\": \"101\",\n            \"text\": \"Loan underwriting\",\n            \"refUri\": \"https://api.rebit.org.in/aa/purpose/101.xml\"\n        },\n        \"fiTypes\": [\n            \"DEPOSIT\"\n        ]\n    },\n    \"context\": [\n        {\n            \"key\": \"accounttype\",\n            \"value\": \"CURRENT\"\n        }\n    ],\n    \"redirectUrl\": \"https://setu.co\"\n}","options":{"raw":{"language":"json"}}},"url":"https://fiu-uat.setu.co/consents","description":"<p>Call this API to create a consent request. Update Customer.id with your mobile number to be able to test the flow. This API responds with a <strong>url</strong> to initiate consent review flow as part of the response, with consent status as PENDING.<br />Read more about Consent Review by Customer here(<a href=\"https://docs.setu.co/data/account-aggregator/api-integration/consent-flow#consent-review-by-customer\">https://docs.setu.co/data/account-aggregator/api-integration/consent-flow#consent-review-by-customer</a>)</p>\n","urlObject":{"path":["consents"],"host":["https://fiu-uat.setu.co"],"query":[],"variable":[]}},"response":[],"_postman_id":"c406d56b-11f4-4867-8e69-c9d39ce54cfc"},{"name":"Get a consent","event":[{"listen":"test","script":{"id":"404b5c39-8a5b-4364-bf79-9c1ae29bf881","exec":[""],"type":"text/javascript"}}],"id":"b59d36a0-3e37-47dc-9631-f342e89f556d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-client-id","value":"test-client","type":"text"},{"key":"x-client-secret","value":"3fa14d45-3adc-4522-b512-1e3f24d92568","type":"text"}],"url":"https://fiu-uat.setu.co/consents/:id","description":"<p>Call this API to get the updated status of a consent request by passing its unique <code>id</code>. If the consent is approved, the Status in the response will be <code>ACTIVE</code>. After this, you can now initiate Data flow for the approved consent request.</p>\n","urlObject":{"path":["consents",":id"],"host":["https://fiu-uat.setu.co"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"b59d36a0-3e37-47dc-9631-f342e89f556d"}],"id":"470ef28a-ee98-4a56-8759-e1f13cbbc355","_postman_id":"470ef28a-ee98-4a56-8759-e1f13cbbc355","description":""},{"name":"Data session APIs","item":[{"name":"Create new data session","event":[{"listen":"test","script":{"id":"07acaddd-7124-4b08-82cb-180a8ce71d0e","exec":["if(pm.response.code == 201) {","    const parsedJson = pm.response.json()","    pm.collectionVariables.set(\"fi_data_request_id\", parsedJson.id);","}"],"type":"text/javascript"}}],"id":"ece1fa5e-22dd-4d9a-9a29-aa842823a6f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-client-id","value":"test-client","type":"text"},{"key":"x-client-secret","value":"3fa14d45-3adc-4522-b512-1e3f24d92568","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"consentId\": \"\",\n  \"DataRange\": {\n    \"from\": \"2021-04-01T00:00:00Z\",\n    \"to\": \"2021-09-30T00:00:00Z\"\n  },\n  \"format\": \"json\"\n}","options":{"raw":{"language":"json"}}},"url":"https://fiu-uat.setu.co/sessions","description":"<p>Call this API to create a data session against the approved <code>consentId</code>. Specify the format in which you wish to receive the decrypted financial data, this can be <strong>xml</strong> or <strong>json.</strong> Make sure that values of <code>DataRange</code> array in the body, matches or is within the <code>FIDataRange</code> specified in the Create consent request API.</p>\n","urlObject":{"path":["sessions"],"host":["https://fiu-uat.setu.co"],"query":[],"variable":[]}},"response":[],"_postman_id":"ece1fa5e-22dd-4d9a-9a29-aa842823a6f2"},{"name":"Get data","id":"93b445a8-bda1-4159-8bd7-09189113e9f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-client-id","value":"test-client","type":"text"},{"key":"x-client-secret","value":"3fa14d45-3adc-4522-b512-1e3f24d92568","type":"text"}],"url":"https://fiu-uat.setu.co/sessions/:id","description":"<p>The notification URL you have configured with Setu will be used to notify you when data is ready to be fetched. Then, use the <code>id</code> received in Create Data Session API in the previous step to call this API to fetch the financial information of your user.</p>\n","urlObject":{"path":["sessions",":id"],"host":["https://fiu-uat.setu.co"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[],"_postman_id":"93b445a8-bda1-4159-8bd7-09189113e9f3"}],"id":"7aafef34-ee49-4fa0-9d6c-ed2f48dc4fc5","_postman_id":"7aafef34-ee49-4fa0-9d6c-ed2f48dc4fc5","description":""},{"name":"FIU Data","item":[{"name":"Get FIPs List","id":"0abc3720-50e7-4318-a2eb-c57941563ac0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-client-id","value":"test-client","type":"text"},{"key":"x-client-secret","value":"3fa14d45-3adc-4522-b512-1e3f24d92568","type":"text"}],"url":"https://fiu-uat.setu.co/fips","urlObject":{"path":["fips"],"host":["https://fiu-uat.setu.co"],"query":[],"variable":[]}},"response":[],"_postman_id":"0abc3720-50e7-4318-a2eb-c57941563ac0"}],"id":"b0c2cd94-8061-484f-a05a-b7777416c849","_postman_id":"b0c2cd94-8061-484f-a05a-b7777416c849","description":""}],"event":[{"listen":"prerequest","script":{"id":"6dc1f6cf-8435-40db-b221-9dea65ac32c0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"93f2d250-58d9-41a8-a903-4e488465f801","type":"text/javascript","exec":[""]}}],"variable":[{"key":"base_url","value":"https://fiu-uat.setu.co"},{"key":"mobile_number","value":"9999999999"},{"key":"client_id","value":"test-client"},{"key":"client_secret","value":"3fa14d45-3adc-4522-b512-1e3f24d92568"},{"key":"consent_request_id","value":"","disabled":true},{"key":"fi_data_request_id","value":"","disabled":true},{"key":"consent_request_id","value":""},{"key":"fi_data_request_id","value":""}]}