Skip to main content

Overview

CDSL OTP Fetch retrieves eCAS (electronic Consolidated Account Statement) PDF files directly from CDSL’s CAS portal (https://www.cdslindia.com/cas/) via OTP authentication. What you get:
  • Download URLs for up to 6 monthly eCAS PDFs
  • All holdings: Demat + Non-Demat assets (stocks, bonds, mutual funds, AIFs, etc.)
  • Cross-depository: Includes holdings from both CDSL and NSDL accounts
  • No manual portal login required
Critical: CDSL eCAS statements are not limited to CDSL demat accounts. They contain a consolidated view of all holdings across both CDSL and NSDL depositories, including both demat and non-demat assets. Similarly, NSDL eCAS also contains holdings from both depositories.
What you need:
  • PAN number
  • CDSL BO ID (16-digit Client ID)
  • Date of birth
  • At least one CDSL demat account (required to access CDSL CAS portal)
Portal access requirement: Only users with at least one CDSL demat account can access the CDSL CAS portal. NSDL does not have an equivalent OTP-based fetch portal yet.

Two-step flow

Step 1: Request OTP

Step 1 takes 15-20 seconds due to automated captcha solving. Set your timeout accordingly.

Step 2: Verify OTP and get PDF URLs

Full example

Response format

The response contains download URLs only. To get parsed data, pass each URL to /v4/smart/parse with pdf_url parameter.

Credit usage

You’re only charged when Step 2 succeeds. Failed OTP attempts are not charged.

Error handling

Using with Portfolio Connect SDK

Next steps

CAS Generator

Generate CAS via email

Portfolio Connect SDK

Frontend widget with CDSL fetch