Daily Api
Daily Api
Circular
DEPARTMENT: INSPECTION
All Members are advised to take note of the above and comply.
Ajinkya Nikam
Senior Manager
National Stock Exchange of India Limited
Page 2 of 2
Annexure A
API Specifications
Member Holding Statement and Bank Account Balances Daily Submissions
Version 2.0
Table of Contents
Contents
Contents
Table of Contents ............................................................................................................................................................... 1
Preface ............................................................................................................................................................................... 2
Purpose .............................................................................................................................................................................. 2
Target Audience ................................................................................................................................................................. 2
Organization of This Document .......................................................................................................................................... 2
Introduction........................................................................................................................................................................ 3
Authorization ..................................................................................................................................................................... 3
Message Format ................................................................................................................................................................ 3
Exchange APIs: ................................................................................................................................................................. 4
Loginssss ....................................................................................................................................................................... 4
Logout............................................................................................................................................................................ 5
Process for Submission of Holding Statements ............................................................................................................. 6
Process for Submission of Bank Account Balances..................................................................................................... 12
Standard HTTP response codes ....................................................................................................................................... 15
Master codes .................................................................................................................................................................... 15
1
Member API Version 1.0
Preface
Purpose
This document describes the Web API based communication and messaging format between the
Exchange (NSE) and Trading Members.
Target Audience
• Business and Tech teams at Trading Member
• Business and Tech teams at Exchange (NSE)
Chapters Description
Overview of the document covering security features of the API and online
Introduction
messaging guidelines.
This chapter gives details of the API’s exposed by exchanges. These API’s
Exchange API
will be consumed by Trading Members.
2
Member API Version 1.0
Introduction
REST API endpoints accessible over internet using HTTPS protocol will be provided to Trading Members
to push the required Holding Statement and Bank Account Balance data on daily basis.
Authorization
➢ All the TM’s will process user registration on existing inspection system.
➢ Member Portal Registration:
o https://inspection.nseindia.com/MemberPortal/
o User will sign-up and receive registration
confirmation.
o Please refer user User manual for API registration and
data submission through API on Production
➢ On Successful login, Token will be provided to Consumers.
➢ The API consumer application is expected to send Token in header in every API HTTP request.
➢ Token: A unique identifier generated for all successful login.
For e.g.,
Header Header Value
Key
Authorization Bearer <Token received from Login API>
Message Format
o Messages will be in JSON.
o Following headers need to be provided in all API calls.
• Content-Type: Header value should be “application/json” or “multipart/form-data” as specified in API details.
o All request and response messages are in JSON (JavaScript Object Notation) format. (Refer
http://www.json.org/ for details).
o Some of the key specifications related to JSON and standards followed for the API’s are as
follows
• JSON is built on 2 structures. Object or Map containing key value pairs and an ordered list of
values
• A value could be Boolean (true/false), number, decimal, String or a structure (List or
Object)
• Object or key value pair structure consists of keys which are strings and values of any of
the above types. E.g. {“ClientCode”:”Test1”, “PanNo”:”ABCDE1234F”}
• List contains list of Clients. E.g. [“Test1”, “Test2”, “Test3”]
• A Boolean has only 2 values true or false
• String values are enclosed in single quote or double quotes. e.g. “ClientCode”, “PanNo”
• Numbers and decimals are represented without any thousand - separator character
Decimal indicator is dot (“.”)
• All dates, times and date times are represented as strings and in Indian standard time.
Dates are formatted using format “DD-MM-YYYY”. Time are formatted as
“hh24:mm:ss”. Date times are formatted as “DD-MM-YYYY hh24:mm:ss”
o Request Payload will be compressed by gzip
3
Member API Version 1.0
Exchange APIs:
Following are the API endpoints for integrations between Exchange and Trading Members:
Method API EndPoint Remarks
To Login and
generate
POST https://api.nseindia.com/inspectionapi/login
Session
Token
POST https://api.nseindia.com/inspectionapi/logout To logout
To submit-
https://api.nseindia.com/inspectionapi/tradingHoldingUpload/{version}
POST holding-
statement
Member to
submit their
POST https://api.nseindia.com /inspectionapi/tradingEodBalanceUpload/{version}
Bank account
balance
Login
This API validates the user credentials. On successful login, a unique token will be provided per request and
session will be established with user’s system. In subsequent API calls, this token should be passed in HTTP
header “Authorization” as mentioned in API Help Document.
Note:
➢ The password needs to be sent in encrypted format using AES256. The encryption secret key will be
generated on user registration.
➢ Login session validity will be for 30 mins.
Method API EndPoint Header Content-Type
POST https://api.nseindia.com /inspectionapi/login NA application/json
"memberCode":"00000",
"loginId":"ApiUser00000",
"password":"0CxUgThnqlK6gaKU2HnL2A=="
4
Member API Version 1.0
"memberCode":"00000",
"code":["601"],
"loginId":"ApiUser00000",
"token":"eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIwOTEwMCIsImlzcyI6IkFwaVVzZXIwOTEwMC
IsImV4cCI6MTYzMjIwNzYyOCwiaWF0IjoxNjMyMjA0MDI4LCJqdGkiOiJhNWI0YjZiZi1lZTQwLT
Q4NzItOGM4ZC0xNjE5ZjA2Nzk2NTEifQ.gGmBfpIbtP59X6gK28z4l6llOkFgOBOIGjAX-
WhjkY5DPJRxHJWTc-TOcDyPjLGAvnHNIvh-SZRRawkxFSNgYw",
"status":"success"
Logout
This API closes the current session and gets the user logged off.
"memberCode":"00000",
"loginId":"ApiUser00000"
5
Member API Version 1.0
Response Object Structure (JSON)
"code":["601"],
"status":"success"
3. Date in file name should be the date for which member is submitting data. for e.g., if member is submitting data for
01-01-2023 then file name will be PAN_HS_01012022_01.gz
5. System will unzip the gzip file received and process data validations.
6. Member will specify filePeriodDate and date in dd-mm-yyyy which will be the date for which member
wants to upload Holding statements in JSON Body Parameter i.e date in “filePeriodDate”,”date” json keys
and in file name must be same.
7. System will not accept data for T Day if TM has not submitted the data for T-1 day. TM needs to first submit
T-1 day data and then can submit data for T Day i.e. Data for Wednesday cannot be submitted until Monday
and Tuesday's data is submitted.
8. If there is any error then error file will generate else success file will be generated.
9. System will provide response in JSON with gZip having record status with code in case of errors or incorrect:
date, data type (Member PAN, Date, Member's Demat Account No., Client PAN, ISIN Code), blank fields
and duplicate records and store data in csv format in Member folder on server.
10. The submission for Friday and Saturday has to be made on Monday. Further, incase of holiday the
submission has to be made on next trading day, e.g. if there is holiday on Monday, the submission has to be
made for Friday; Saturday and Monday on Tuesday.
6
Member API Version 1.0
Alpha Details
4.7 ISIN Code isin Char(12) Security ISIN Numeric repeated
ISIN Code for every
row
NA
GMS,KG,QUINT
AL,
MT,BARRELS,M Details
4.10 Unit Type unitType Char(20) Unit Type MBTU repeated
BALES,DRUMS, for every
OTHERS.NA row
Pledged Quantity of Details
4.11 Balance totalPldgQty Char(20) Total Pledged Qty securities in repeated for
(Qty.) Numeric form. every row
Decimals shall be
allowed upto 3
digits
4.12 Free Balance Quantity of Details
(Qty.) freeBalQty Char(20) Free Balance Qty securities in repeated
Numeric form. for every row
Decimals shall be
allowed upto 3
digits
4.13 Quantity of Details
Total (Qty.) totalQty Char(20) Total Qty securities in repeated
Numeric form. for every row
Decimals shall be
allowed upto 3
digits
8
Member API Version 1.0
XXXXX0782X
0000000000000000
XXXXX0782X
0000000000000000
XXXXX0782X
9
Member API Version 1.0
Expected
Field Data Values and
Sr.No Description Field Name Type Description Validation Type of Field
Overall
Response Header field. Only
1 Header Code hdrCode Num(4) Header Code Code once per request
Acknowldge Header field. Only
2 ID ackId Num(15) Acknowledge ID Unique ID once per request
Basic PAN
level Header field. Only
3 Member PAN memberPan Char(10) Member PAN no Validations once per request
Response Header field. Only
4 Header Status hdrStatus String Request Status Status once per request
DD-MM- Header field. Only
5 Date date Char(10) Date for which data is YYYY once per request
being submitted
Response Holding Data
6 Holding Data holdingData String Array Response Array
6.1 Record Id recId String Record id of referred data Record Id Details repeated for
Provided in every row
request
6.2 Response Code code String Master code for referred Record Details repeated for
data Specific every row
Response
Code
6.3 Status status String Success or failure of Record Details repeated for
referred data Specific every row
Response
Status
Date for which data is
File Period being submitted DD-MM- Only once per
7 Date filePeriodDate Char(10) YYYY request
10
Member API Version 1.0
Below will be the response in case of file/date related validations fails. (Ex: Invalid file name or format OR previous perio d data not found)
{
"hdrCode": [ "805" ],
"ackId": "1133525032022213862333",
"memberPan": " XXXXX0782X ",
"hdrStatus": "Kindly first submit data for 31-Mar-2022",
"date": "01-04-2022",
"holdingData": [
{
"unitType": "NA",
"dmat": "0000000000000000",
"ucc": "251868",
"freeBalQty": "1",
"clientName": "XYZ",
"totalQty": "1",
"securityType": "PREF",
"accountType": " POOL",
"totalPldgQty": "0",
"pan": "XXXXX0782X",
"isin": "XX0000000000",
"nameOfCommodity": "NA"
}
],
"filePeriodDate": "01-04-2022"
}
JSON Success Response:
{
"hdrCode": [ "601" ],
"ackId": "1133525032022213862333",
"memberPan": " XXXXX0782X ",
"hdrStatus": "success",
"date": "25-03-2022",
"holdingData": [
{
"recId": "1",
"code": [ "601"],
"status": "success"
},
{
"recId": "2",
"code": [ "601"],
"status": "success"
}
],
"filePeriodDate": "25-03-2022"
}
11
Member API Version 1.0
{
"hdrCode": [ "603" ],
"ackId": "C",
"memberPan": "XXXXXX3359X",
"hdrStatus": "partial",
"date": "01-04-2022",
"holdingData": [
{
"code": ["601"],
"status": "success"
},
{
"code": [ "906", "902", "907"],
"status": "error"
},
{
"code": ["902"],
"status": "error"
}
],
"filePeriodDate": "01-04-2022"
}
5. Date in file name should be the date for which member is submitting data. for eg., if member is submitting data for 01-
01-2023 then file name will be PAN_BA_01012022.gz and Balance Date in json must be same as date in file name
6. System will not accept data for T Day if TM has not submitted the data for T-1 day. TM needs to first submit T-1
day data and then can submit data for T Day i.e. Data for Wednesday cannot be submitted until Monday and
Tuesday's data is submitted.
7. System will reject pushed data and provide response with errors in case of incorrect date, data type, blank fields or
duplicate records.
8. On submission, system will provide errors in response in-case of failure. TM has to correct and resubmit the data to
Exchange. In case of success, system will provide success JSON response.
9. The submission for Friday and Saturday has to be made on Monday. Further, incase of holiday the submission has
to be made on next trading day, e.g. if there is holiday on Monday, the submission has to be made for Friday;
Saturday and Monday on Tuesday.
12
Member API Version 1.0
10. Files will be Store on Server for both success and failure condition.
"BankBalanceData": [{
"Bank Account No": "00000000000000",
"IFSC": "XXXX0000000",
"Bank Account Type": "ANY OTHER",
"03-05-2021": "102007496"
},
13
Member API Version 1.0
Expected
Sr.
Field Description Field Name Data Type Description Values &
No.
Validations
1.1 Bank Account No. Bank Account No Number Bank Account Number Max Length :20
IFSC Basic IFSC level
1.2 IFSC String IFSC Code
Validations
Bank Account
1.3 Bank Account Type String Bank Account Type Max Length :20
Type
1.4 Balance Date String Balance Amount Amount
Success or failure with
1.7 Status Status String
reason
14
Member API Version 1.0
HTTP
Description
Code
200 Success
400 Bad Request
401 Unauthorized
404 Not Found
409 Conflict
412 Precondition Failed
413 File size greater
than 200 MB
500 Internal Server
Error
501 Not Implemented
503 Service Unavailable
Master codes
Cod
e Description
601 SUCCESS
602 GENERAL ERROR
603 PARTIAL_SUBMISSION
604 ENTIRE_HOLDINGDATA_IS_INCORRECT
605 SOMETHING_WENT_WRONG
606 METHOD_UNKOWN_CD
608 PREVIOUS_REQUEST_IS_IN_PROGRESS
701 INVALID_MEMBER_CODE_OR_LOGIN_ID_OR_PASSWORD
702 USER_IS_DISABLED
703 INVALID_MEMBER_CODE_OR_LOGIN_ID
704 INVALID_DECLARATION
705 JSON_KEY_NOT_PROPER
706 ERROR
803 KINDLY_CHECK_AUTH_TOKEN_TOKEN_WRONG_OR_TOKEN_EXPIRED
804 REQUEST_EXCEEDS_MAX_NUMBER_OF_RECORDS
805 KINDLY_FIRST_SUBMIT_DATA_FOR_PREVIOUS_DAYS
806 MEMBER_PAN_NO_NOT_PROPER
807 DATE_DOES_NOT_BELONG_TO_SELECTED_HOLDING_PERIOD
808 HOLDING_DATE_FORMAT_NOT_PROPER
810 HOLDING_FILEPERIODDATE_DATE_FORMAT_NOT_PROPER
901 DEMAT_ACCOUNT_NO_NOT_PROPER
902 INVALID_MEMBER_ACCOUNT_TYPE
903 UCC_NOT_PROPER
904 CLIENT_NAME_NOT_PROPER
905 CLIENT_PAN_NOT_PROPER
906 ISIN_CODE_NOT_PROPER
907 INVALID_SECURITY_TYPE
908 PLEDGE_BALANCE_NOT_PROPER
15
Member API Version 1.0
PLEDGE_BALANCE_NOT_PROPER_CHECK_IF_THIS_SPLIT_CHARACTER_IS_REQUIRED_HERE_SHOULD_CONTAIN_M
909 AX_3_DIGIT_AFTER_DECIMAL
910 FREE_BALANCE_NOT_PROPER
FREE_BALANCE_NOT_PROPER_CHECK_IF_THIS_SPLIT_CHARACTER_IS_REQUIRED_HERE_SHOULD_CONTAIN_MAX_
911 3_DIGIT_AFTER_DECIMAL
912 TOTAL_NOT_PROPER
TOTAL_NOT_PROPER_CHECK_IF_THIS_SPLIT_CHARACTER_IS_REQUIRED_HERE_SHOULD_CONTAIN_MAX_3_DIGIT
913 _AFTER_DECIMAL
914 TOTAL_SHOULD_BE_SUM_OF_PLEDGED_AND_FREE_BALANCE
916 ACTION_NOT_PROPER
917 NOT_VALID_RECORD_BLANKNULL_VALUES_NOT_ALLOWED
918 DUPLICATE_ROW
919 INVALID_REQUEST_ID
920 INVALID_VERSION_NO
921 INVALID_SYNTAX
922 INVALID_FILE_FORMAT
923 INVALID_URL
924 INVALID_CONTENT_TYPE
925 AUTH_SERVER_DOWN
926 HS_SERVER_DOWN
927 EODBB_SERVER_DOWN
928 ACCOUNT_INACTIVE
929 API_REGISTRATION_IS_NOT_DONE
930 NOT_ALLOWED_BECAUSE_HOLDING_PERIOD_IS_NOT_YET_STARTED
931 NOT_ALLOWED_TO_UPLOAD_DATA_BECAUSE_VALID_ACCESSIBLE_DAYS_ARE_EXPIRED
932 INVALID_NAME_OF_SEC
933 INVALID_UNIT_TYPE
956 SYSTEM_BUSY_TRY_AFTER_SOME_TIME
510 INVALID_FILE_NAME
511 INVALID_FILESEQUENCE
512 WRONG_DATE
513 INVALID_FILE_TYPE
514 INVALID_MEMBER_PAN
515 WRONG_FILE_FOMAT
516 DUPLICATE_FILE
517 WRONG_FILE_HEADER
518 INTERNAL_SERVER_EXCEPTION
519 FILE_MISSING
520 FILE_SIZE_SHOULD_BE_LESS_THAN_200MB_KINDLY_REDUCE_RECORDS_IN_FILE.
521 MEMBER_CODE_NOT_FOUND
522 ERROR_WHILE_COPYING_FILE
524 ERROR_WHILE_UNCOMPRESSING_GZIP_FILE
526 ERROR_WHILE_READING_CSV_FILE
527 PLEASE_UPLOAD_MULTIPART_FILE
530 PAN_NOT_MATCHED
959 API_CALL_NOT_ALLOWED
958 CACE_SERVER_DOWN
809 HOLDING_PERIOD_NOT_PROPER
934 INVALID_COMM_NAME
533 FILE_IS_UNDER_PROCESS
531 DELETED_PERIOD
File Ended
16
Annexure B
https://inspection.nseindia.com/MemberPortal/
If first time login, members will have to change the password and re-login with new password.
For first time login on member portal, OTP will be sent on registered mobile number or email id.
Once correct OTP is entered user will be logged in successfully.
2. After successfully login, on left hand corner click on “Inspection” tab and proceed for API registration.
4. After clicking the “Register API” button and member will have to submit the following information in
Registration form.
7. Member must encrypt its raw password by using secret key. This encrypted password
need to be used while calling login API. Java and .Net Code Snippet of AES encryption is
added at the end of the document.
https://api.nseindia.com/inspectionapi/login
Holding Upload:
https://api.nseindia.com/inspectionapi/tradingHoldingUpload/{version}
Logout:
https://api.nseindia.com/inspectionapi/logout
Note:
1. Version is 1.0
2. API endpoint cannot be accessed from the browser (like google chrome, internet explorer, etc.).
3. Members may have to develop application to consume the API’s.
4. Use 7Zip tool to generate .gz.
{
"memberCode":"00000",
"loginId":"ApiUser00000",
"password":"qi8H8R7OM4xMUNMPuRAZxlY==" }
LOGIN: https://api.nseindia.com/inspectionapi/login
Click on “Headers” tab [Check below image]
- In “Key” column enter Content-Type and in “VALUE” column enter
‘application/json’.
- Click on “Body” tab =>> Select “binary” radio button [Please check
below image]
- Click on “Select File” button and upload your gzip File. [Please check
below image]
- The saved response file need to be extracted with the 7zip tool and the
below response file will be available.
Login Response Object Structure (JSON)
{
"memberCode":"00000",
"code":["601"],
"loginId":"ApiUser00000",
"token":"eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIwOTEwMCIsImlzcyI6IkFwaVVzZXIwOTEwMC
IsImV4cCI6MTYzMjIwNzYyOCwiaWF0IjoxNjMyMjA0MDI4LCJqdGkiOiJhNWI0YjZiZi1lZTQwLT
Q4NzItOGM4ZC0xNjE5ZjA2Nzk2NTEifQ.gGmBfpIbtP59X6gK28z4l6llOkFgOBOIGjAX-
WhjkY5DPJRxHJWTc-TOcDyPjLGAvnHNIvh-SZRRawkxFSNgYw",
"status":"success" }
{
"memberPan": "ZZZZZ00000Z",
"filePeriodDate": "26-03-2022",
"date": "26-03-2022",
"holdingData": [
{
"recId": "1",
"dmat": "0000000000000000",
"accountType": "XYZ",
"ucc": "111111",
"clientName": "MANNNNNNN NNNNNN",
"pan": "ZZZZZ000X",
"isin": "IN0000000000",
"securityType": " XYZ ",
"nameOfCommodity": "NA",
"unitType": "NA",
"totalPldgQty": "0",
"freeBalQty": "1",
"totalQty": "1"
},
{
"recId": "2",
"dmat": "0000000000000000",
"accountType": "POOL",
"ucc": "111111",
"clientName": " ZZZZZZZZZZ ",
"pan": "ZZZZZ0000Z",
"isin": "IN0000000000",
"securityType": "XYZ",
"nameOfCommodity": "NA",
"unitType": "NA",
"totalPldgQty": "0",
"freeBalQty": "1",
"totalQty": "1"
}
]
}
Convert above text file into gzip File format. [Check procedure shown for /login
endpoint.]
Open Postmen select “POST” method & enter holding upload URL in address
bar.
https:// api.nseindia.com/inspectionapi/tradingHoldingUpload/{version}
- Click on “Body” tab =>> Select “form-data” radio button [Please check below
image]
In “Key” column enter File and also select file from dropdown in “Key”
- In “VALUE” column Click on “Select Files” button and upload your .gzip
File.
- The response will be in GZIP format. In postman tool click on Save Response
and then click on
Save to a file
- The saved response file need to be extracted with the 7zip tool and the below
response file will be available.
- Note: File Nomenclature should be in this format
PAN_HS_DDMMYYYY_Seqno.gz
{
"hdrCode": [
"601"
],
"ackId": "00000000000000",
"memberPan": "XXXXX0000X",
"hdrStatus": "success",
"date": "26-03-2022",
"holdingData": [
{
"recId": "1",
"code": [
"601"
],
"status": "success"
},
{
"recId": "2",
"code": [
"601"
],
"status": "success"
}
],
"filePeriodDate": "26-03-2022"
}
Note:-
• “date” should have date for which data is submitted. If data is submitted for 25-03-2022
then it should be the date and if data is submitted for 10-12-2019 then it should be the
date
• filePeriodDate and date will be the same date i.e the date for which data is submitted
4. How to upload EOD bank statement data with /tradingEodBalanceUpload/{version} API
endpoint?
• Create holding statement text file in JSON format.
EOD Bank Balance Request Object Structure (JSON)
"BankBalanceData": [
{
"Bank Account No": "00000000000000",
"IFSC": "XXXX0000000",
"Bank Account Type": " XYZ ",
"03-05-2021 ": 00000000
},
{
"Bank Account No": "00000000000000",
"IFSC": "XXXX0000000",
"Bank Account Type": " XYZ ",
"03-05-2021": "00000000"
}
]
}
• Convert above text file into gzip File format. [Check procedure shown for /login endpoint.]
• Open Postmen select “POST” method & enter holding upload URL in address bar.
https://api.nseindia.com/inspectionapi/tradingEodBalanceUpload/{version
}
- Click on “Headers” tab [Check bellow image]
In “Key” column enter Content-Type and in “VALUE” column enter
multipart/form-data.
In “Key” column enter Authorization and in “VALUE” column enter token
which is generate in
Login api.[Note: - You need to add a “Bearer” before token. It should have
space between Bearer & Token. E.g. Bearer<space>Token]
- Click on “Body” tab =>> Select “form-data” radio button [Please check below
image] In “Key” column enter File and also select file from dropdown in
“Key”
In “VALUE” column Click on “Select Files” button and upload your .gzip
File.
- Click on “Send” button.
- The response will be in GZIP format. In postman tool click on Save Response
and then click on
Save to a file
- The saved response file need to be extracted with the 7zip tool and the below
response file will be available.
Note: file Nomenclature should be in this format
PAN_BA_DDMMYYYY.gz Eod Bank Balance Response Object
Structure (JSON)
"BankBalanceData": [
{
"Bank Account No": "00000000000000",
"IFSC": "XXXX0000000",
"Bank Account Type": " XYZ ",
"03-05-2021 ": 00000000
},
{
"Bank Account No": "00000000000000",
"IFSC": "XXXX0000000",
"Bank Account Type": " XYZ ",
"03-05-2021": "00000000"
}
]
}
• Open Postmen select “POST” method & enter holding upload URL in address bar.
• https:// api.nseindia.com/inspectionapi/logout
- Click on “Headers” tab [Check bellow image]
In “Key” column enter Content-Type and in “VALUE” column enter
application/json.
In “Key” column enter Authorization and in “VALUE” column enter token
which is generate in
Login api.[Note: - You need to add a “Bearer” before token. It should have
space between
Bearer & Token. E.g. Bearer<space>Token]
- Click on “Body” tab =>> Select “binary” radio button [Please check below
image]
- Click on “Select File” button and upload your gzip File. [Please check below
image]
{
"code": [
"601"
],
"status": "success"
}
NOTE:
1) If account is inactive due to 5 incorrect password attempts, on Member
Portal reset the password to reactivate the account. A new key will be
generated on reset.
2) Password encrypted using online site may be incorrect, develop own code
snippet for encrypting password given below on point 8 and 10. Kindly
don’t use online sites for encrypting password.
3) JSON text file for testing generated online may be incorrect. Kindly don’t
use online sites for generating text files.
• To view the statements uploaded for Holding, Cash Equivalent and Eod
Bank Balance respectively go to below pages on Member Portal:
i. Inspection->Statement Upload->Holding Statement->View
Submission
ii. Inspection->Statement Upload->Cash & Cash Equivalent
Balances->View Submission
iii. Go Inspection->Statement Upload->Bank Account Balances-
>View Submission
• As shown in images below, by clicking on file name you can download the file.
And by clicking on “Delete” button member can delete the file and re-upload
the file through API.
Download
Delete
Technology Used:
Language: - java version "11.0.12" 2021-07-20 LTS
*****End of document*****