Skip to main content

Account Aggregator - FI Data API

This document highlights the Account Aggregator - FI Data API details.

API Description

Objective

The Account Aggregator - FI Data API retrieves the final financial information record of the user from the Account Aggregator once the data request has been successfully processed.

API URL

https://ind-engine.thomas.hyperverge.co/v1/AAFIData

API Endpoint

AAFIData

Overview

The API is RESTful and uses standard HTTP verbs and status codes. The responses are in JSON format and you should upload all images and files as form-data through a POST request.

Method - POST

Authentication

You need a unique pair of application ID ( appId ) and application key (appKey) from HyperVerge to verify your identity for accessing the API.

ParameterMandatory or OptionalDescriptionAllowed Values
content-type MandatoryThis parameter defines the media type for the request payloadapplication/json
appId MandatoryThe application identifier shared by HyperVerge. You can find the details in the dashboard's credentials tab.This should be a unique value.
appKey MandatoryThe application key shared by HyperVerge. You can find the details in the dashboard's credentials tab.This should be a unique value.
transactionIdMandatoryA unique identifier for tracking a user journeyThis should be both unique and easily associated with the user's journey in your application(s)

Inputs

The following table outlines the parameter required in the API's request body:

ParameterMandatory or OptionalDescriptionAllowed ValuesDefault Value
consentIdMandatoryThe unique identifier for the user's consentNot ApplicableNot Applicable
sessionIdMandatoryThe unique session identifierNot ApplicableNot Applicable
custIdMandatoryThe user identifier, typically a mobile numberNot ApplicableNot Applicable
transactionAmountThresholdOptionalThe threshold amount for transactionsNumeric valuesNot Applicable
returnTransactionAmountAboveThresholdOptionalSpecifies whether to return transactions above the thresholdBoolean (true/false)Not Applicable

Request

The following code snippet demonstrates a standard curl request for the API:

curl --location --request POST 'https://ind-engine.thomas.hyperverge.co/v1/AAFIData' \
--header 'Content-Type: application/json' \
--header 'appId: <Enter_the_HyperVerge_appId>' \
--header 'appKey: <Enter_the_HyperVerge_appKey>' \
--header 'transactionId: <Enter_the_HyperVerge_transactionID>' \
--data '{
"consentId": "<Enter_the_consent_ID>",
"sessionId": "<Enter_the_session_ID>",
"custId": "<Enter_the_phone_number>",
"transactionAmountThreshold": 0,
"returnTransactionAmountAboveThreshold": "<true/false>"
}'

Success Response

The following code snippet demonstrates a success response from the API:

{
"status": "success",
"statusCode": "200",
"metaData": {
"requestId": "<Unique_Request_ID>"
},
"result": {
"details": {
"header": {
"rid": "<Unique_Request_ID>",
"ts": "<Timestamp_in_ISO_Format>",
"channelId": "<Channel_ID>"
},
"body": {
"accounts": [
{
"linkRefNumber": "<Link_Reference_Number>",
"status": "<Account_Status>",
"data": {
"accountDetails": {
"accountNumber": "<Account_Number>",
"accountType": "<Account_Type>",
"balance": "<Balance>"
}
}
}
]
}
}
}
}

Success Response Details

The following table outlines the details of the success response from the API:

ParameterTypeDescription
statusstringThe status of the request
statusCodeintegerThe HTTP status code of the response
requestIdstringA unique identifier for the request
ridstringA unique identifier for the response
tsstringThe timestamp of the response
channelIdstringThe channel through which the request was processed
linkRefNumberstringA unique reference number for the linked account
statusstringThe status of the linked account
accountNumberstringThe account number of the linked account
accountTypestringThe type of the linked account
balancestringThe balance of the linked account

Failure and Error Response Details

An error response from the API contains a failure status, with a relevant status code and error message. The following table lists all error responses:

Status CodeError MessageDescription
401Missing / Invalid credentialsThe appId / appKey is missing or incorrect in the request headers.
403Access DeniedPlease contact HyperVerge
500Template not found: [Template Name]Incorrect Template Name provided
500user address is not valid mobile numberIncorrect Mobile Number provided
500Bad Request. Required values missingWhen one of the Mandatory Input fields is missing or the value against it is missing
500Bad RequestInvalid details in consent description
500Cannot deserialize value of type java.util.Date from String "202-03-20T12:14:43.727+0000"Date format is incorrect
500Error processing request: FI request data range dates not within consent rangeFI from and to date is not within the approved date range
500Consent Id or session ID is invalidCannot fetch FIStatus. ConsentId or SessionId not found
500Invalid consent handle and session idAccount data not found
Invalid Session Id or link ref noAccount data not found
500Invalid Consent HandleCannot fetch data. ConsentId not found for Consent Handle
500Fi Req not triggeredCannot fetch FIStatus. ConsentId or SessionId not found
500Invalid Token. User does not have permissionIncorrect Token or Expired Token provided
500Consent Status not activeIncorrect Consent Handle ID provided or user has rejected consent
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: