CDSL parser
Documentation

This documentation will guide you on how to parse CDSL PDF and what JSON response will be retured after extracting data from the CDSL PDF

Check out CDSL parser demo

Postman logo

Try CASreader API in postman

Download CASreader collection and import it from postman to get started

Download CASreader postman collection

CDSL parser endpoint:

https://api.casreader.com/parse/cdsl

Method:

POST

Parameters (form-data):

  1. file - CDSL CAS pdf. File size limit is 10 MB.
  2. password - Password of the file. Optional and case sensitive.
  3. key - Client access key. Required and case sensitive.

Response:

JSON, charset=utf-8. JSON strcuture is documented below.

JSON Response

Field Data type
success
Status of API response, has value either true or false.
Boolean
data
Entire parsed data of the uploaded statement
if success is true JSON Object of data
if success is false JSON Object of error

data

Field Data type
CasType
Type of uploaded CAS PDF
ENUM of type CasType
ClientCode
Client/User id as in your database. This will be set by you
String
ParsedData
Parsed data of the statement
JSON Object of CcParsedModel

CcParsedModel

Field Data type
StatementPeriod
Period of the PDF file
JSON Object of CcStatementPeriodModel
InvestorInfo
Information of investor
JSON Object of CcInvestorModel
AccountInfo
Account details held by investor
JSON Object of CcAccountListModel
CdslInfo
Cdsl account details
JSON Object of CcCdslAccountModelList
NsdlInfo
Nsdl account details
JSON Object of CcNsdlAccountModelList
MutualFundFolioInfo
Independently held Mutual Fund's details
JSON Object of CcMffAccountModelList

CcStatementPeriodModel

Field Data type
From
Starting date of tenure of uploaded PDF.
String
To
Ending date of tenure of uploaded PDF.
String

CcInvestorModel

Field Data type
Name
Name of the investor.
String
Address
Residential Address of the Investor.
String
PinCode
Pin code of investor’s home address.
String

CcAccountListModel

Field Data type
TotalAccount
Number of accounts (NSDL, CDSL and Independent Mutual Fund folios) held by the investor.
Integer
GrandTotal
Total investment amount of investor
Double
Accounts
List of all the accounts held by investor.
JSON Array of CcAccountModel

CcCdslAccountModelList

Field Data type
TotalAccount
Number of CDSL accounts held by investor.
Integer
TotalValue
Sum of amount invested under CDSL accounts.
Double
Accounts
List of all the CDSL accounts
JSON Array of CcCdslAccountModel

CcNsdlAccountModelList

Field Data type
TotalAccount
Total NSDL account held by investor.
Integer
TotalValue
Total invsetment value in NSDL accounts.
Double
Accounts
List of all the NSDL accounts.
JSON Array of CcNsdlAccountModel

CcMffAccountModelList

Field Data type
TotalAccount
Total mutual fund folios held by investor
Integer
TotalValue
Total invsetment value in Mutual fund folios
Double
Accounts
List of all the mutual fund folios
JSON Array of CcMffAccountModel

CcAccountModel

Field Data type
AccountType
Account is either NSDL, CDSL or independently held Mutual Fund.
String
Value
Total investment held with this DP
Double
AccountClass
Classification for type of account.
ENUM of type CdslCasAccountClass

CcCdslAccountModel

Field Data type
AccountType
Type of the account: CDSL
String
DpName
Name of Demat account service
String
BoId
Unique identifier of DP
String
EmailId
Email id of investor.
String
BoStatus
Status of Account.
String
BoSubStatus
Sub status of Account.
String
Bsda
BSDA status of account.
String
Rgess
RGESS status of account.
String
Value
Total investment held with this DP.
Double
EquityList
All the equities help in CDSL account
JSON Object of CcCdslEquityListModel
MutualFundList
All the mutual funds in CDSL account
JSON Object of CcCdslMfModelListModel
GovernmentSecurityList
All the government securities in CDSL account
JSON Object of CcCdslGovSecurityListModel
CorporateBondList
All the corporate bonds in CDSL account
JSON Object of CcCdslCorpBondListModel

CcNsdlAccountModel

Field Data type
AccountType
Type of the account: NSDL
String
DpName
Name of Demat account service provider
String
DpId
Unique identifier of DP
String
ClientId
Unique identifier of investor in the DP
String
EmailId
Email id of investor.
String
BoStatus
Account active status
String
BoSubStatus
Account active sub status
String
Bsda
BSDA account status.
String
Rgess
Rgess account status.
String
Value
Total investment held with this DP
Double
EquityList
All the equities help in NSDL account
JSON Object of CcNsdlEquityListModel
MutualFundList
All the mutual funds in NSDL account
JSON Object of CcNsdlMfModelListModel
GovernmentSecurityList
All the government securities in NSDL account
JSON Object of CcNsdlGovSecurityListModel
CorporateBondList
All the corporate bonds in NSDL account
JSON Object of CcNsdlCorpBondListModel

CcMffAccountModel

Field Data type
AccountType
Type of the account: MFF
String
Value
Total investment held with physical folios.
Double
MutualFundFolioList
All the mutual fund folios details.
JSON Object of CcMutualFundFolioListModel

CcCdslEquityListModel

Field Data type
TotalEquity
Total number of equity held under the current DP in CDSL account.
Integer
TotalValue
Total value of equity shares held by this CDSL account
Double
Equities
List of all the CDSL equities.
JSON Array of CcCdslEquityModel

CcCdslMfModelListModel

Field Data type
TotalMutualFund
Total number of mutual fund held under the current DP in CDSL account
Integer
TotalValue
Total value of mutual funds held by this CDSL account
Double
MutualFunds
List of all the CDSL mutual funds.
JSON Array of CcCdslMfModel

CcCdslGovSecurityListModel

Field Data type
TotalGovernmentSecurity
Total number of government security held under the current DP in CDSL account
Integer
TotalValue
Total value of government securities held by this CDSL account
Double
GovernmentSecurities
List of all the CDSL government securities
JSON Array of CcCdslGovSecurityModel

CcCdslCorpBondListModel

Field Data type
TotalCorporateBond
Total number of corporate bonds held under the current DP in CDSL account
Integer
TotalValue
Total value of corporate bonds held by this CDSL account
Double
CorporateBonds
List of all the CDSL corporate bonds.
JSON Array of CcCdslCorpBondModel

CcNsdlEquityListModel

Field Data type
TotalEquity
Total number of equity share held under the current DP in NSDL account
Integer
TotalValue
Total value of equity shares held by this NSDL account
Double
Equities
List of all the NSDL equity shares
JSON Array of CcNsdlEquityModel

CcNsdlMfModelListModel

Field Data type
TotalMutualFund
Total number of mutual fund held under the current DP in NSDL account
Integer
TotalValue
Total value of mutual funds held by this NSDL account
Double
MutualFunds
List of all the NSDL mutual funds
JSON Array of CcNsdlMfModel

CcNsdlGovSecurityListModel

Field Data type
TotalGovernmentSecurity
Total number of government security held under the current DP in NSDL account
Integer
TotalValue
Total value of government securities held by this NSDL account
Double
GovernmentSecurities
List of all the NSDL government securities
JSON Array of CcNsdlGovSecurityModel

CcNsdlCorpBondListModel

Field Data type
TotalCorporateBond
Total number of corporate bonds held under the current DP in NSDL account.
Integer
TotalValue
Total value of corporate bonds held by this NSDL account
Double
CorporateBonds
List of all the NSDL corporate bonds.
JSON Array of CcNsdlCorpBondModel

CcMutualFundFolioListModel

Field Data type
TotalMutualFundFolio
Total number of mutual fund folios
Integer
MutualFundFolios
List of all the mutual fund folios
JSON Array of CcMutualFundFolioModel

CcCdslEquityModel

Field Data type
Isin
ISIN id of Equity
String
IsinName
Name of the secutiry
String
CurrentBalance
Current balance of the equity
Double
Value
Value of the equity
Double

CcCdslMfModel

Field Data type
Isin
ISIN id of mutual fund
String
IsinName
Name of the fund
String
CurrentBalance
Current balance of the fund
Double
Value
Value of the fund
Double

CcCdslGovSecurityModel

Field Data type
Isin
ISIN id of Government Security
String
IsinName
Issuer of government security
String
CurrentBalance
Number of bonds held of the given security
Double
Value
The value of security
Double

CcCdslCorpBondModel

Field Data type
Isin
ISIN id of Corporate Bond
String
IsinName
Issuer of corporate bond
String
CurrentBalance
Number of bonds held of the given corporate bond
Double
Value
The value of corporate bond
Double

CcNsdlEquityModel

Field Data type
Isin
ISIN id of Equity
String
IsinName
Name of Share
String
CurrentBalance
Numbers shares held of equity
Double
Value
Market value of current share holding
Double

CcNsdlMfModel

Field Data type
Isin
ISIN id of Mutual Fund
String
IsinName
Name of Mutual Fund
String
CurrentBalance
Numbers units held of mutual fund
Double
Value
Market value of the mutual fund
Double

CcNsdlGovSecurityModel

Field Data type
Isin
ISIN id of Government Security
String
IsinName
Issuer of government security
String
CurrentBalance
Number of bonds held of the given security
Double
Value
The value of security
Double

CcNsdlCorpBondModel

Field Data type
Isin
ISIN id of Corporate Bond
String
IsinName
Issuer of corporate bond
String
CurrentBalance
Number of bonds held of the given corporate bond
Double
Value
The value of corporate bond
Double

CcMutualFundFolioModel

Field Data type
Isin
ISIN id of Mutual Fund
String
IsinName
Name of Mutual Fund
String
FolioNumber
Folio number of Mutual fund.
String
ArnCode
ARN code linked to mutual fund.
String
ClosingBalance
Name of Mutual Fund
Double
Nav
Average NAV of investment.
Double
Value
Market value of the mutual fund.
Double
InvestmentValue
Investment amount of mutual fund.
Double

CasType

Enum value Enum name
0
Nsdl
1
Cdsl
2
Cams

CdslCasAccountClass

Enum value Enum name
0
Cdsl
1
Nsdl
2
Mff

error

Code (Integer) Error (String)
17 credits are expired or pdf limit was reached
18 pdf file size was exceeded. maximum file size limit is 10 MB
20 key is disabled
21 cams parser is disabled for the key
22 nsdl parser is disabled for the key
23 cdsl parser is disabled for the key
31 account is disabled, contact us
32 invalid client access key
33 client ip is not whitelisted for the key
404 this end point does not exists
500 internal server error
599 file was corrupted or not uploaded completely
699 incorrect pdf file
799 incorrect password
999 not a pdf file
Tunnel in