We are closing CASreader. The service will stop on 30 June 2022. Please contact us for more detail @ product@expowealth.in
This documentation will guide you on how to parse CAMS or Karvy CAS PDF and what JSON response will be retured after extracting data from the CAMS or Karvy CAS PDF
Check out CAMS and Karvy parser demo
Download CASreader collection and import it from postman to get started
https://api.casreader.com/parse/cams
POST
JSON, charset=utf-8. JSON strcuture is documented below.
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 |
Field | Data type |
---|---|
CasType
Uploaded pdf type |
ENUM of type CasType |
CamsCasType
Whether the file holds Transaction or Summary level data |
ENUM of type CamsCasType |
PdfFileType
Provider of consolidated account statement. Either CAMS or KARVY or |
String |
Warning
Warning if Cams file is incomplete, NONE otherwise Example: Incomplete portfolio |
String |
ClientCode
Client/User id as held in your database. This field will be set by you. |
String |
StatementPeriod
Period of the PDF file |
JSON Object of CamsStatementPeriodModel |
InvestorInfo
Information of investor |
JSON Object of CamsInvestorModel |
PortfolioSummary
Current holdings summary information |
JSON Array of CcPortfolioSummary |
OrderItems
Scheme level aggregated investment information |
JSON Array of CcOrderItemModel |
ReducedFolio
Reduced portfolio on FIFO basis of transaction-level information |
JSON Array of CcReducedFolioModel |
Field | Data type |
---|---|
From
Starting date of tenure of uploaded PDF |
String |
To
Ending date of tenure of uploaded PDF |
String |
Field | Data type |
---|---|
Email
Email id of the investor |
String |
Name
Name of the investor |
String |
Address
Residential Address of the Investor |
String |
PinCode
Pin code of investor’s home address |
String |
Contact
Phone number of investor |
String |
Field | Data type |
---|---|
Registrar
Registrar of mutual fund |
String |
SchemeRtaCode
RTA code of mutual fund |
String |
Isin
ISIN of the scheme NA if ISIN is not available It will be available ASAP |
String |
SchemeName
Name of mutual fund |
String |
Folio
Folio number of mutual fund |
String |
AdvisorCode
Code of distributor |
String |
Pan
PAN number of investor |
String |
PanStatus
PAN card of the investor, linked or not |
String |
KycStatus
KYC status of investor, as given in the PDF |
String |
Units
No. of units held at evaluation date |
Double |
EvaluationDate
Date of NAV used to calculate the Amount for current holdings |
String |
Amount
Amount on evaluation date |
Double |
Nav
Nav on evaluation date |
Double |
Field | Data type |
---|---|
Index
Iterator of the folio item in the PDF |
Integer |
KycStatus
KYC status of investor, as given in the PDF |
String |
PanStatus
PAN card of the investor, linked or not |
String |
Registrar
Registrar of mutual fund |
String |
SchemeRtaCode
RTA code of mutual fund |
String |
Isin
ISIN of the scheme NA if ISIN is not available It will be available ASAP |
String |
SchemeName
Name of mutual fund |
String |
Folio
Folio number of mutual fund |
String |
AdvisorCode
Code of distributor |
String |
Pan
PAN number of investor |
String |
OpeningBalance
Number of units held by investor at the starting period of statement |
Double |
ClosingBalanceParsed
Number of units held by investor at the end period of statement. (As mentioned in the statement) |
Double |
ClosingBalanceManaged
Number of units held by investor at the end period of statement. (Calculated by accounting for Buy and sell transactions) |
Double |
FolioItems
List of transaction level information of each mutual fund per folio number |
JSON Array of CcFolioItemModel |
Field | Data type |
---|---|
SchemeRtaCode
RTA code of mutual fund |
String |
Isin
ISIN of the scheme NA if ISIN is not available It will be available ASAP |
String |
SchemeName
Name of mutual fund |
String |
Folio
Folio number of mutual fund |
String |
FolioItems
Reduced portfolio of each mutual fund per folio number |
JSON Array of CcFolioItemModel |
Field | Data type |
---|---|
Index
Iterator to identify unique folio per scheme |
Integer |
Type
Transaction description |
String |
BuySell
Transaction type (Either buy or sell) |
String |
DateString
Date of transaction |
String |
Nav
NAV at the time of transaction |
Double |
Units
No. of units in transaction |
Double |
Folio
Folio number of transaction |
String |
Amount
Amount of transaction |
Double |
DateNumeral
Time stamp non formatted date |
DateTime |
Rate
Rate of dividend. Only applicable if Type is Dividend |
Double |
Enum value | Enum name |
---|---|
0
|
Nsdl |
1
|
Cdsl |
2
|
Cams |
Enum value | Enum name |
---|---|
0
|
Transaction |
1
|
Summary |
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 |