API - AC020 - AA Account Aggregator Service - V1.4
API - AC020 - AA Account Aggregator Service - V1.4
May 2024
Customer Support
For technical support, please contact the Platform support centre (PSC).
Support email address [email protected] (for ticket creation)
[email protected] (for email communication with
Support)
We respond within 2 hours during business hours (8 am to 8 pm IST)
Table of Contents
1 INTRODUCTION 4
2 OBJECTIVE OF THIS DOCUMENT 4
3 PREREQUISITES 4
3.1.1 IP WHITELISTING 4
3.1.2 URL WHITELISTING 4
3.1.3 PLATFORM CREDENTIAL GENERATION 5
3.1.4 SERVICE SUBSCRIPTION 5
3.1.5 TOKEN GENERATION 5
4 API ENDPOINT FOR CONSENT 6
4.1 SERVICE URL CONSENT 6
4.1.1 URLS 6
4.1.2 REQUEST TYPE 6
4.1.3 URL PARAMETER 6
5 API HTTP Headers 7
5.1 HTTP HEADERS 7
6 API REQUEST PAYLOAD 8
6.1 CONSENT SERVICE REQUEST 8
7 API RESPONSE 10
7.1 Service response 10
8 ERROR CODES 11
9 Support 12
3 Prerequisites
All the below prerequisites are must before integrating the API with Sandbox and Production
3.1.1 IP Whitelisting
- Below are the URLs of Platform that need to be whitelisted in Lenders Network.
- The Lenders Callback URL need to be whitelisted with Platform.
- This must be done separately for Sandbox and Production.
- Kindly ensure that the URLs are whitelisted at both ends before testing the API.
Environment URL
Authentication API service https://auth.nonprod.rbihub.io/
Dev Portal for API catalog and https://am.nonprod.rbihub.io/devportal
Production Environment
Environment URL
Authentication API service https://auth.api.rbihub.io/
Dev Portal for API catalog and https://am.api.rbihub.io/devportal
Subscription
API Execution for services https://extgw.api.rbihub.io/
Identity Server https://identity.api.rbihub.io/carbon
- Lender should have received the Platform credentials mail with the following details.
o Public Key
o Client ID
o Client Secret
o User Credentials for Dev portal
o Public Certificates
The Account Aggregator API is exposed as a stateless API service over HTTPS. Usage of open-
standard data format in JSON (JavaScript Object Notation) and widely used protocol such as
HTTPS will allow easy adoption of the API by lenders.
The API service path provided follows a standard convention:
/{service name}/{ver}/{lang}
4.1.1 URLs
According to the policy, the Platform only accepts request messages in JSON format, which
is also referred to as the payload schema or request body template.
Here is the message template structure:
Key Description
ts Timestamp in ISO-8601
format (yyyy-MM-
ddTHH:mm:ssZ) indicating
the time of initiation of the
request
Following is the API service response from the account aggregator consent API
{
"meta": {
"txncode": "412341231",
"ver": "1.4",
"ts": "2024-05-15T17:15:39+0530"
},
"result": {
"errcode": "E000",
"status": "success",
"info": ""
},
"data": {
"ver": "1.4",
"Customer": {
"id": "customer_identifier@AA_identifier"
},
"ConsentHandle": "594b686c-1fbb-4e3c-8aed-5c801dcd891b",
"timestamp": "2024-05-06T11:39:57.153Z",
"txnid": "4a4adbbe-29ae-11e8-a8d7-0289437bf331"
}
"hmac": "myukAvGKjpafeykYv8j7XyIZVuTrs8VMwuza8TAEHqI=",
"signature":
"MEUCIAeQv+ziy089sx2o1Y5lqyPjWtw72BDcvIPhpPNNFw/6AiEA+NE2V83BtyAd5kfu1m0Oa4yhMyiGagf
Am03e0jz81kU=",
"publickey":
"MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAERGnPiFyAyylyIVGiSeUNOVSSqaFCYUSkFP4o9cXoiPi8yq
54Dmknu/90Q4VQLbGKihaNmk+/AwrPsMNVEC4Cew==",
"sig-algo": "SHA256withECDSA"
}
Response Description
parameter
x-jws-signature Indicates the time of initiation of the request in ISO-8601 format as
yyyy-MM-ddTHH:mm:ssZ.
txncode Unique transaction code provided by the lender.
ver Indicates the version of the JSON response template that is currently
being used.
errcode It’s used to indicate the error code associated with the API service
response. If the response is 'fail status, a relevant error code will be
returned in this field. However, if the transaction is successful, the value
of error code will be 'E000'.
data The base64 encoded data of the request as per ReBIT FIU 2.0.0
specification.
* Note : This response data will have different type of consent requests
including consent request for GSTN. We don't examine the specific type
of consent request because we just pass the information along to account
aggregator.
signature Digital signature hash of the value located under the key "data".
hmac SHA256 hash of the value located under the key “data”
publickey Public key of the platform for source verification purposes.
sig-algo This indicates the algorithm used for signing (signature) the data. For
example, SHA256withECDSA.
8 Error Codes
Refer Latest Platform Error Code pdf to get the list of error values.
The table provided below outlines a comprehensive inventory of platform-specific error codes
utilized by the account-aggregator-service other than common error codes.
Body: