TruFIU
  • About
  • Apps
  • FIU Config
    • AA Partner
  • Consents
  • Data
  • AA Notifications
  • Utils
    • Onboarding
    • Redirect
  • OpenAPI Spec
  • Postman Collection
Powered by GitBook
On this page

Data

PreviousConsentsNextAA Notifications

Last updated 7 months ago

  • POSTRequest
  • POSTFetch

Request

post
Authorizations
Body

Request Data from AA for the given consent

consent_handlestringRequiredExample: 478edfdf-e3ab-4f42-b69f-36a0c45e9fd2
fromstring · date-timeRequired

Date-time from which the financial information is requested

Example: 2023-07-06T11:39:57.153Z
tostring · date-timeRequired

Date-time till which the financial information is requested

Example: 2024-12-06T11:39:57.153Z
curvestring · enumOptional

Describes a secure elliptic curve standard that is used to perform ECDH.

Default: X25519Example: X25519Possible values:
Responses
200
OK
application/json
400
Bad Request
application/json
post
POST /v2/data/request HTTP/1.1
Host: localhost:8080
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 140

{
  "consent_handle": "478edfdf-e3ab-4f42-b69f-36a0c45e9fd2",
  "from": "2023-07-06T11:39:57.153Z",
  "to": "2024-12-06T11:39:57.153Z",
  "curve": "X25519"
}
{
  "session_id": "9f5a8128-2151-46a3-99b0-f2939627b80c"
}

Fetch

post
Authorizations
Body
session_idstringRequiredExample: 9f5a8128-2151-46a3-99b0-f2939627b80c
Responses
200
OK
application/json
post
POST /v2/data/fetch HTTP/1.1
Host: localhost:8080
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 53

{
  "session_id": "9f5a8128-2151-46a3-99b0-f2939627b80c"
}
200

OK

{
  "fip": [
    {
      "fip_id": "BARB0KIMXXX",
      "accounts": [
        {
          "link_ref_number": "f91962a0-bb04-4675-b2f0-3a3077e64292",
          "masked_account_number": "XXXXX6233",
          "data": "<Account type=\"deposit\" maskedAccNumber=\"XXXXX6233\" version=\"1.1\" linkedAccRef=\"f91962a0-bb04-4675-b2f0-3a3077e64292\" xmlns=\"http://api.rebit.org.in/FISchema/deposit\" xmlns:wstxns1=\"http://www.w3.org/2001/XMLSchema-instance\" wstxns1:schemaLocation=\"http://api.rebit.org.in/FISchema/deposit https://specifications.rebit.org.in/api_schema/account_aggregator/FISchema/deposit.xsd\"><Profile><Holders type=\"SINGLE\"><Holder name=\"fName mName lName\" dob=\"1966-06-08\" mobile=\"9000090000\" nominee=\"NOT-REGISTERED\" landline=\"\" address=\"Senapati Bapat Road,Pune,Maharashtra,India,411016\" email=\"[email protected]\" pan=\"ABCPD1234E\" ckycCompliance=\"false\"/></Holders></Profile><Summary currentBalance=\"44590.00\" currency=\"INR\" exchgeRate=\"\" balanceDateTime=\"2024-07-19T00:00:00.000+00:00\" type=\"SAVINGS\" branch=\"SB Road Pune [SB]\" facility=\"OD\" ifscCode=\"SBP0000136\" micrCode=\"\" openingDate=\"2023-07-19\" currentODLimit=\"2500000.0000\" drawingLimit=\"2500000.0000\" status=\"ACTIVE\"><Pending transactionType=\"DEBIT\" amount=\"6000.0\"/></Summary><Transactions startDate=\"2023-09-17\" endDate=\"2024-08-17\"><Transaction type=\"DEBIT\" mode=\"UPI\" amount=\"1000.0\" currentBalance=\"71560.00\" transactionTimestamp=\"2023-09-19T00:00:00.000+00:00\" valueDate=\"2023-09-19\" txnId=\"\" narration=\"UPI/218128539608/Electricity/tpslqr@MSEB\" reference=\"\"/><Transaction type=\"CREDIT\" mode=\"OTHERS\" amount=\"30000.0\" currentBalance=\"101560.00\" transactionTimestamp=\"2023-10-01T00:00:00.000+00:00\" valueDate=\"2023-10-01\" txnId=\"\" narration=\"NEFT/SBIN322147057322/EMPLOYEE SALARY \" reference=\"\"/><Transaction type=\"DEBIT\" mode=\"UPI\" amount=\"300.0\" currentBalance=\"101260.00\" transactionTimestamp=\"2023-10-04T00:00:00.000+00:00\" valueDate=\"2023-10-04\" txnId=\"\" narration=\"UPI/218128539608/Pay to BharatPe Merchant/BHARATPE\" reference=\"\"/><Transaction type=\"DEBIT\" mode=\"OTHERS\" amount=\"2500.0\" currentBalance=\"98760.00\" transactionTimestamp=\"2023-10-05T00:00:00.000+00:00\" valueDate=\"2023-10-05\" txnId=\"\" narration=\"PCD/536799XXXXXX7446/POLICYBAZAAR\" reference=\"\"/></Transactions></Account>"
        },
        {
          "link_ref_number": "80b37f40-ce06-48a9-9614-767e92fc09c9",
          "masked_account_number": "XXXXX7295",
          "data": "<Account type=\"deposit\" maskedAccNumber=\"XXXXX7295\" version=\"1.1\" linkedAccRef=\"80b37f40-ce06-48a9-9614-767e92fc09c9\" xmlns=\"http://api.rebit.org.in/FISchema/deposit\" xmlns:wstxns1=\"http://www.w3.org/2001/XMLSchema-instance\" wstxns1:schemaLocation=\"http://api.rebit.org.in/FISchema/deposit https://specifications.rebit.org.in/api_schema/account_aggregator/FISchema/deposit.xsd\"><Profile><Holders type=\"SINGLE\"><Holder name=\"fName mName lName\" dob=\"1966-06-08\" mobile=\"9000090000\" nominee=\"NOT-REGISTERED\" landline=\"\" address=\"Senapati Bapat Road,Pune,Maharashtra,India,411016\" email=\"[email protected]\" pan=\"ABCPD1234E\" ckycCompliance=\"false\"/></Holders></Profile><Summary currentBalance=\"46290.00\" currency=\"INR\" exchgeRate=\"\" balanceDateTime=\"2023-07-15T00:00:00.000+00:00\" type=\"SAVINGS\" branch=\"SB Road Pune [SB]\" facility=\"OD\" ifscCode=\"SBP0000136\" micrCode=\"\" openingDate=\"2022-07-15\" currentODLimit=\"2500000.0000\" drawingLimit=\"2500000.0000\" status=\"ACTIVE\"><Pending transactionType=\"DEBIT\" amount=\"6000.0\"/></Summary><Transactions startDate=\"2023-09-17\" endDate=\"2024-08-17\"/></Account>"
        }
      ]
    }
  ]
}