Skip to main content

Overview

CAS Parser extracts structured data from Consolidated Account Statement (CAS) PDFs issued by Indian depositories and registrars.

Choosing how to get the CAS

Parsing is the last step. Before it, you need the PDF — and there are five ways to get one. They differ in what you ask the investor to do, not in the data you end up with. Five ways to get a CAS, grouped by where the CAS is now. Investor has the file: PDF upload or Portfolio Links. CAS is in their inbox: Email inbox import or Inbound email. No CAS yet: CAS Generator, mutual funds only, which emails the CAS to the investor's inbox. Every path ends at CAS Parser, which returns unified JSON. Five ways to get a CAS, grouped by where the CAS is now. Investor has the file: PDF upload or Portfolio Links. CAS is in their inbox: Email inbox import or Inbound email. No CAS yet: CAS Generator, mutual funds only, which emails the CAS to the investor's inbox. Every path ends at CAS Parser, which returns unified JSON. Start from where the CAS is now. If the investor has the file, take it in your app with PDF upload, or send them a Portfolio Link if you’d rather not build the UI. If it’s in their inbox, they can connect the inbox or forward the email. If they have no CAS yet, CAS Generator has CAMS or KFintech email one to them, which puts you on the inbox path. CAS Generator covers mutual funds only; the other four return whatever the investor’s CAS covers.
Lowest friction first. If the investor is already in your app with the file, upload wins. If they don’t have it, inbound email asks least of them — forwarding an email needs no OAuth consent.

Supported CAS types

Use /v4/smart/parse — it auto-detects the CAS type and applies the correct parser.
Cross-depository coverage: CDSL and NSDL eCAS statements contain holdings from both depositories (CDSL + NSDL), not just the issuing depository. This includes demat and non-demat assets across all accounts.

Parse a PDF file

Parse from URL

If your CAS PDF is hosted online:

Response format

All CAS types return a unified JSON structure:

Asset classes extracted

CAS Parser extracts 9 asset classes from your CAS:

Password requirements

For all CAS types except KFintech, the password is the investor’s PAN number. If parsing fails, verify the PAN and check that the PDF is an original digitally-generated statement.

Error handling

Next steps

Gmail Import

Import CAS from user email

CAS Generator

Request CAS programmatically