Professional Documents
Culture Documents
MultiBureau_Tech_Integration_Consumer
MultiBureau_Tech_Integration_Consumer
Gateway… Technical
Integration Document
Input Output format guide – v2.3
Contents
Introduction ................................................................................................................................. 3
Scope ......................................................................................................................................... 3
Intended audience ...................................................................................................................... 3
Reading the guide ....................................................................................................................... 4
How MultiBureau works?............................................................................................................. 5
Communication parameters..................................................................................................... 5
Flow diagram - Single bureau implementation ......................................................................... 6
Flow diagram - Multiple bureau implementation....................................................................... 7
Request ...................................................................................................................................... 8
Acknowledgement..................................................................................................................... 13
Issue ......................................................................................................................................... 15
Issue-Single .............................................................................................................................. 17
Response.................................................................................................................................. 18
Appendix – 1: Sample java code to connect to MultiBureau ...................................................... 21
2|Pag
e
Introduction
Scope
This guide walks the reader through various communication formats (such as
request, acknowledgement, issue & response) between the financial institutions and
MultiBureau.
Intended audience
Intended audience of this guide are the Credit Grantors or Aggregators (will be
referred as USER henceforth in this document) who want to use MultiBureau – a credit
bureau connector application from Lentra – in a “software as a service” mode.
3|Pag
e
Reading the guide
This section explains the terminology used in the document.
ELEMENT – signifies a field or an object (object is a collection of fields and/or
other objects) at a given position. It acts as the “name” part of JSON’s “name-
value” pair.
FORMAT – Format of element. Can be any of TEXT, NUMERIC, DATE or DATE-
TIME (not applicable for objects). All DATEs should be in DDMMYYYY and all
DATE-TIMEs should be in DDMMYYYY HH24:MI:SS
TYPE – Signifies the given element is a field or an object
Note
1. All tags must be in upper case.
2. Fields marked with a * indicates – they might be mandatory for some other
bureaus (other than CIBIL).
3. Fields marked with a + indicates – they might be optional for some other bureaus
(other than CIBIL)
4. For fields which can contain only pre-defined values (such as LOAN-TYPE,
GENDER etc), user has to share with Lentra, the list of values and their
interpretation, as to how those values are mapped to that of bureau fields.
E.g.: if user stores gender as M for Male customers and F for Female
customers, then the mapping should be provided as:
4|Page
How MultiBureau works?
Communication parameters
All communications between USER and MultiBureau will be in the format of
JSON objects (structure of which is detailed out in subsequent pages) over https. USER
must provide following five request parameters in every communication:
1. Aggregator id (AGGREGATOR_ID)
2. Institution id (INSTITUTION_ID)
3. Member id (MEMBER_ID)
4. Password (PASSWORD)
5. Input JSON String (inputJson_)
These parameters will be used by MultiBureau to authenticate an incoming request.
Please note: Above parameters for a USER can be different in UAT and
PRODUCTION regions of MultiBureau. Lentra encourages all the users of MultiBureau
to make these parameters configurable so that changing them while moving between
UAT and PRODUCTION will be easier.
A sample Java code to connect to MultiBureau application is provided in Appendix-1
5|Page
Flow diagram - Single bureau implementation
6|Page
Flow diagram - Multiple bureau implementation
7|Page
Request
Request consists of two parts - Header and Request-Data, both of which have to
appear exactly once in a Request.
REQUEST
MAXIMUM MAX
ELEMENT FORMA TYPE OCCURRENC VALIDATIO DESCRIPTION LENGTH
T E N
HEADER - OBJE 1 Mandatory Request header -
CT
REQUEST - OBJE 1 Mandatory Request data -
CT
HEADER
MAXIMUM MAX
ELEMENT FORMA TYPE OCCURRENC VALIDATIO DESCRIPTION LENGTH
T E N
APPLICATION-ID TEXT FIELD 1 Mandatory Application Id 20
CUST-ID TEXT FIELD 1 Mandatory Customer id 20
Request type – must
REQUEST-TYPE TEXT FIELD 1 Mandatory be "REQUEST" 20
REQUEST-TIME DATE- FIELD 1 Mandatory Request date time. 20
TIME
REQUEST-DATA
MAXIMUM MAX
TAG ELEMENT FORMAT TYPE OCCURRENC VALIDATIO DESCRIPTION LENGT
E N H
Request priority. Valid
values: HIGH_PRIORITY,
MEDIUM_PRIORITY,
01 PRIORITY TEXT FIELD 1 Optional LOW_PRIORITY 20
Bureau product type.
02 PRODUCT_TYPE TEXT FIELD 1 Optional Valid values: CIR 20
03 LOAN-TYPE TEXT FIELD 1 Mandatory Loan type 100
04 LOAN-AMOUNT NUMERIC FIELD 1 Mandatory + Loan amount 10
05 JOINT_IND TEXT FIELD 1 Optional * Request Type 30
INQUIRY-
06 SUBMITTED- BY TEXT FIELD 1 Optional Inquiry submitted by (user id) 30
SOURCE-SYSTEM-
07 NAME TEXT FIELD 1 Mandatory Source system name 30
SOURCE-SYSTEM-
08 VERSION TEXT FIELD 1 Optional Source system version 10
SOURCE-SYSTEM-
09 VENDER TEXT FIELD 1 Optional Source system vendor 50
SOURCE-
10 SYSTEM- TEXT FIELD 1 Optional Source system instance id 10
8|Page
INSTANCE-ID
NAME
MAXIMUM MAX
TAG ELEMENT FORMAT TYPE OCCURRENC VALIDATIO DESCRIPTION LENGTH
E N
01 NAME-1 TEXT FIELD 1 Mandatory Name 1
02 NAME-2 TEXT FIELD 1 Optional Name 2
03 NAME-3 TEXT FIELD 1 Optional Name 3 130
04 NAME-4 TEXT FIELD 1 Optional Name 4
05 NAME-5 TEXT FIELD 1 Optional Name 5
RELATION
MAXIMUM MAX
TAG ELEMENT FORMAT TYPE OCCURRENC VALIDATIO DESCRIPTION LENGT
E N H
01 FATHER-NAME TEXT FIELD 1 Optional Father's name 130
02 SPOUSE-NAME TEXT FIELD 1 Optional Spouse' name 130
03 MOTHER-NAME TEXT FIELD 1 Optional Mother's name 130
04 RELATION-TYPE-1 TEXT FIELD 1 Optional Relation type 1 30
RELATION-TYPE-1-
05 VALUE TEXT FIELD 1 Optional Relation type 1 value 130
06 RELATION-TYPE-2 TEXT FIELD 1 Optional Relation type 2 30
RELATION-TYPE-2-
07 VALUE TEXT FIELD 1 Optional Relation type 2 value 130
08 KEY-PERSON- TEXT FIELD 1 Optional Key person name 130
NAME
KEY-PERSON-
09 RELATION TEXT FIELD 1 Optional Key person relation 30
10 NOMINEE-NAME TEXT FIELD 1 Optional Nominee name 130
11 | P a g
e
NOMINEE-
11 RELATION- TYPE TEXT FIELD 1 Optional Nominee relation type 30
ADDRESS
MAXIMUM MAX
TAG ELEMENT FORMAT TYPE OCCURRENC VALIDATIO DESCRIPTION LENGT
E N H
01 ADDRESS-TYPE TEXT FIELD 1 Mandatory Address type 30
ADDRESS-
02 RESIDENCE- CODE NUMERIC FIELD 1 Optional Residence code 30
03 ADDRESS TEXT FIELD 1 Mandatory Address 200
04 ADDRESS-CITY TEXT FIELD 1 Optional * City 30
05 ADDRESS-PIN NUMERIC FIELD 1 Mandatory Pin 6
06 ADDRESS-STATE TEXT FIELD 1 Mandatory State 30
ID
MAXIMUM MAX
TAG ELEMENT FORMA TYPE OCCURRENC VALIDATIO DESCRIPTION LENGTH
T E N
12 | P a g
e
DRIVER-
12 LICENSE- DATE- FIELD 1 Optional Driving license expiration date 8
EXPIRATION- TIME
DATE
PHONE
MAXIMUM MAX
TAG ELEMENT FORMAT TYPE OCCURRENC VALIDATIO DESCRIPTION LENGTH
E N
01 PHONE-TYPE NUMERI FIELD 1 Optional Phone type 20
C
Phone numberAt least one
Conditionally valid
02 PHONE-NUMBER NUMERI FIELD 1 Mandatory ID or one valid phone is 20
C mandatory
03 PHONE-EXTN NUMERI FIELD 1 Optional Phone extension 10
C
04 STD-CODE NUMERI FIELD 1 Optional STD Code 6
C
13 | P a g
e
Acknowledgement
MultiBureau immediately responds back with an acknowledgement as soon as it
receives a request. Acknowledgement has a Header object, array of Warning objects
and array of Error objects along with acknowledgement id and status.
Acknowledgement id must be used in all other communications (in or out)
between USER and MultiBureau for that particular request.
Warning array will contain the code & description of non-severe errors even at
the occurrence of which, the inquiry will still be processed further. But the USER is
recommended to correct them too in their system in order to get better results from
bureaus.
Error array will contain the code & description of severe errors, on occurrence of
which, the inquiry cannot be processed further. USER needs to fix them and re-submit
inquiry in order to get it processed by MultiBureau.
If Error array is non-empty, the status will be “ERRORS” which indicates that the
inquiry will not be processed further. In all other scenarios, status will be “SUCCESS”.
ACKNOWLEDGEMENT
MAXIMUM MAX
ELEME FORMA TYPE OCCURRENC VALIDATIO DESCRIPTION LENGTH
NT T E N
HEADER - OBJEC 1 NA Request header -
T
ACKNOWLEDGEMENT-ID TEXT FIELD 1 NA Acknowledgement Id 20
HEADER
MAXIMUM MAX
ELEME FORMA TYPE OCCURRENC VALIDATIO DESCRIPTION LENGTH
NT T E N
APPLICATION-ID TEXT FIELD 1 NA Loan application Id 30
CUST-ID TEXT FIELD 1 NA Customer id 30
Response type – Will
RESPONSE-TYPE TEXT FIELD 1 NA be 30
“ACKNOWLEDGEME
NT”
REQUEST-RECEIVED- DATE- FIELD 1 NA Request date time. 20
TIME TIME
14 | P a g
e
WARNINGS
MAXIMUM MAX
ELEME FORMA TYPE OCCURRENC VALIDATIO DESCRIPTION LENGTH
NT T E N
CODE TEXT FIELD 1 NA Warning code 10
DESCRIPTION TEXT FIELD 1 NA Description 100
ERRORS
MAXIMUM MAX
ELEME FORMA TYPE OCCURRENC VALIDATIO DESCRIPTION LENGTH
NT T E N
CODE TEXT FIELD 1 NA Warning code 10
DESCRIPTION TEXT FIELD 1 NA Description 100
15 | P a g
e
Issue
After receiving acknowledgement, USER needs to send issue to MultiBureau in order to
receive final response. The issue format contains Header, Acknowledgement id and
Response format.
Valid Response formats are:
01 (HTML)
02 (PDF)
03 (BUREAU-STRING)
04 (RESPONSE-JSON-OBJECT)
05 (PDF-ONLY)
06 (HTML-ONLY)
If USER selects 01 as response format, HTML report will be created out of bureau
response and will be available in the response JSON.
If USER opts 02, PDF report will be created and will be available in response JSON.
If USER opts 03, output from bureau (TUEF format if CIBIL, XML if any other bureau)
will be available in the response JSON as it is.
If USER opts 04, bureau response will be parsed and converted to JSON object and
same will be available in response JSON.
Response format is an array and user can opt for multiple formats in same issue. For
example if user gives 01 & 02 in response format array, both HTML and PDF will be
provided in the response JSON.
If USER opts any of these two (05 or 06), there will be no JSON at all in the
response. Only html (if 06) and PDF (if 05) that is created out of the bureau
response will be sent back by MultiBureau.
Also please note USER should not select any other format if they choose to go
with 05 or 06. Doing so will result in validation error. Ex: if response format array
contains [01, 02] it is valid, if it contains [05, 01] –invalid, [02, 06] –invalid, [05, 06] –
invalid.
16 | P a g
e
ISSUE
MAXIMUM MAX
ELEME FORMA TYPE OCCURRENC VALIDATIO DESCRIPTION LENGT
NT T E N H
HEADER - OBJECT 1 Mandatory Issue header -
ACKNOWLEDGEMENT- TEXT FIELD 1 Mandatory Acknowledgement Id 20
ID
Response format. Valid values:
RESPONSE-FORMAT TEXT FIELD 1 Mandatory 01, 02, 03, O4, 05 and 06 50
HEADER
MAXIMUM MAX
ELEMENT FORMAT TYPE OCCURRENCE VALIDATIO DESCRIPTION LENGTH
N
APPLICATION-ID TEXT FIELD 1 Mandatory Loan application Id 20
CUST-ID TEXT FIELD 1 Mandatory Customer id 20
Response type – Must be
“ISSUE”
REQUEST-TYPE TEXT FIELD 1 Mandatory (or can also be STATUS in 20
case of multi bureau
implementation)
REQUEST-RECEIVED- DATE- FIELD 1 Mandatory Request date time. 20
TIME TIME
17 | P a g
e
Issue-Single
In a multi bureau implementation USER can also opt to issue for a single
bureau’s output. In order to issue-single, USER must supply tracking id for the bureau
along with acknowledgement id. This can be done only after a normal issue request (by
which user will get separate tracking ids for individual bureau products)
ISSUE-SINGLE
MAXIMUM MAX
ELEMENT FORMA TYPE OCCURRENC VALIDATIO DESCRIPTION LENGT
T E N H
HEADER - OBJEC 1 Mandatory Issue header -
T
ACKNOWLEDGEMENT- TEXT FIELD 1 Mandatory Acknowledgement Id 20
ID
TRACKING-ID NUMERI FIELD 1 Mandatory Tracking id of bureau 20
C
Response format. Valid values: 01,
RESPONSE-FORMAT TEXT FIELD 1 Mandatory 02, 50
03, O4, 05 and 06
HEADER
MAXIMUM MAX
ELEMENT FORMA TYPE OCCURRENC VALIDATIO DESCRIPTION LENGTH
T E N
APPLICATION-ID TEXT FIELD 1 Mandatory Loan application Id 20
CUST-ID TEXT FIELD 1 Mandatory Customer id 20
Response type – Must be
REQUEST-TYPE TEXT FIELD 1 Mandatory “ISSUE- SINGLE” 20
REQUEST-RECEIVED- DATE- FIELD 1 Mandatory Request date time. 20
TIME TIME
18 | P a g
e
Response
MultiBureau checks for the completion of request when it receives an issue
request from USER. If processing is completed already, output will be created and sent
in the format (html, bureau string, html only etc) asked by issue request. Otherwise,
status will be sent as IN- PROCESS.
Bureau is taking too long to process a request and MultiBureau has tried 10
times* to get response over an interval of 6 hours** and yet didn’t receive
response from bureau
sections) after
30 seconds, if STATUS is IN-PROCESS.
All the bureau details that completed/being processed/rejected for a request will
be available in the response under three object arrays.
1. FINISHED array will contain all the bureau products that are completed for the
request. There is a bureau level status column present in finished array which will
contain SUCCESS (if there is a successful response from bureau) or BUREAU-
ERROR (if there is an error response from bureau). It will also contain the output
in the format requested by USER (html/bureau-string etc).
2. IN-PROCESS array will contain all the bureau products which are being
processed by MultiBureau. A bureau product hit can be in IN-PROCESS array
because of either a communication error or the delay from bureau to respond to
that request.
3. REJECTED array will contain all the bureau products which are being rejected by
MultiBureau. MultiBureau gives up the attempt to hit a bureau product and rejects
same if:
19 | P a g
e
a. When request is put on DL-QUEUE by MultiBureau.
b. There is some internal validation error (at MultiBureau end – termed as
L1, L2 and L3 validations)
Important: Above three (FINISHED, IN-PROCESS and REJECTED) will be in array
format only for multi bureau implementations. For single bureau implementations, they
will be in the form of single object (not array).
RESPONSE
MAXIMUM MAX
ELEMENT FORMA TYPE OCCURRENC VALIDATIO DESCRIPTION LENGTH
T E N
HEADER - OBJEC 1 NA Response header -
T
ACKNOWLEDGEMEN TEXT FIELD 1 NA Acknowledgement Id 20
T-ID
HEADER
MAXIMUM MAX
ELEMENT FORMA TYPE OCCURRENC VALIDATIO DESCRIPTION LENGTH
T E N
APPLICATION-ID TEXT FIEL 1 NA Loan application Id 20
D
CUST-ID TEXT FIEL 1 NA Customer id 20
D
RESPONSE-TYPE TEXT FIEL 1 NA Response type – Will be 20
D “RESPONSE”
REQUEST-RECEIVED- DATE- FIEL 1 NA Request date time. 20
TIME TIME D
FINISHED
MAXIMUM MAX
ELEMENT FORMA
TYP OCCURRENC VALIDATIO DESCRIPTION LENGT
T E E N H
TRACKING-ID NUMBER FIELD 1 NA Tracking id of a bureau-product 20
BUREAU TEXT FIELD 1 NA Bureau name 20
PRODUCT TEXT FIELD 1 NA Product name 20
20 | P a g
e
Status. Valid values:SUCCESS,
STATUS TEXT FIELD 1 NA BUREAU- ERROR 20
Parsed bureau response object in
RESPONSE_JSON_O TEXT OBJE 1 NA JSON format -
BJECT CT
BUREAU-STRING TEXT FIELD 1 NA Bureau response as it is 32767
HTML-REPORT TEXT FIELD 1 NA Html report of bureau response 32767
BYTE
PDF-REPORT S FIELD 1 NA PDF report of bureau response 32767
ARRA
Y
IN-PROCESS
MAXIMUM MAX
ELEMENT FORMA TYPE OCCURRENC VALIDATIO DESCRIPTION LENGTH
T E N
TRACKING-ID NUMBER FIEL 1 NA Tracking id of a bureau-product 20
D
BUREAU TEXT FIEL 1 NA Bureau name 20
D
PRODUCT TEXT FIEL 1 NA Product name 20
D
Status. Valid
STATUS TEXT FIEL 1 NA values:WAITING, 30
D COMMUNICATION-
ERROR
REJECT
MAXIMUM MAX
ELEMENT FORMAT TYPE OCCURRENC VALIDATIO DESCRIPTION LENGTH
E N
TRACKING-ID NUMBER FIELD 1 NA Tracking id of a bureau-product 20
BUREAU TEXT FIELD 1 NA Bureau name 20
PRODUCT TEXT FIELD 1 NA Product name 20
Status. Valid
values:
STATUS TEXT FIELD 1 NA INTERNAL- 30
ERROR DL-
QUEUE
ERRORS - OBJEC 50 NA Errors -
T
21 | P a g
e
ERRORS
MAXIMUM MAX
ELEMENT FORMAT TYPE OCCURRENC VALIDATIO DESCRIPTION LENGTH
E N
CODE TEXT FIELD 1 NA Warning code 10
DESCRIPTION TEXT FIELD 1 NA Description 100
22 | P a g
e
Appendix – 1: Sample java code to connect to MultiBureau
Send Request
ArrayList<NameValuePair>(); postParameters.add(new
BasicNameValuePair("INSTITUTION_ID", "isntitution_id"));
postParameters.add(new BasicNameValuePair("AGGREGATOR_ID",
"aggregator_id")); postParameters.add(new
httpPost.setEntity(new UrlEncodedFormEntity(postParameters));
Consume Response
InputStream responseContent =
entity.getContent();
23 | P a g
e
24 | P a g
e