For developers · Beta

Read CAS statements inside your own app

CAMS, KFintech, NSDL and CDSL CAS PDFs to checked JSON, with the page behind every number. As a package in your own systems, or one HTTPS call.

  • Runs offline
  • casparser-compatible
  • Node, browser, CLI

Try it now: no key, no sign-up

curl https://api.sachfolio.com/v1/samples/dev-sample

Our sample statement, read by the API. Add .casparser for casparser's shape.

With the package

npm install @sachfolio/cas-reader
import { readCas } from "@sachfolio/cas-reader/node";
import { toCasparser } from "@sachfolio/cas-reader";

const cas = await readCas(bytes, { password }); // pages, checks, exact decimals
const json = toCasparser(cas);                  // or casparser's shape

Why teams choose it

Statement parsing without a data processor

Your users' PAN, folios and transactions stay in your systems.

Runs where you run it

Node 22 or the browser. No network calls of its own.

Every number has a source

Page and line for each value, as exact decimal strings.

Checks, not guesses

Balances, units × NAV and totals, each pass or fail.

Switch from casparser in one line

toCasparser() returns casparser's shape. Python drop-in included.

Returns and privacy built in

XIRR included; redactCas() keeps personal data out of logs.

A vendor who answers

Email support and quick fixes for layout changes.

The output

casparser-shaped JSON, from an invented statement

From our sample statement, --format casparser.

  • Exact decimal strings for every amount, unit and NAV
  • Stamp duty, STT and TDS as their own rows
  • Failed checks listed in parse_warnings
  • JSON Schema for the full cas-document v1 format
{
  "statement_period": { "from": "01-Jan-1990", "to": "30-Sep-2026" },
  "file_type": "CAMS",
  "cas_type": "DETAILED",
  "folios": [{
    "folio": "1111111 / 11",
    "amc": "Sahyadri Mutual Fund",
    "schemes": [{
      "scheme": "Sahyadri Flexi Cap Fund - Direct Plan - Growth",
      "isin": "INF000A01AB9",
      "open": "0.000",
      "close": "150.000",
      "valuation": { "date": "2026-09-29", "nav": "110.0000",
                     "cost": "14999.25", "value": "16500.00" },
      "transactions": [{
        "date": "2026-05-21",
        "description": "SIP Purchase - Instalment No - 1/12",
        "amount": "4999.75", "units": "50.000",
        "nav": "99.995", "balance": "50.000",
        "type": "PURCHASE_SIP"
      }, {
        "date": "2026-05-21",
        "description": "*** Stamp Duty ***",
        "amount": "0.25",
        "type": "STAMP_DUTY_TAX"
      }]
    }]
  }]
}

Honest limits

What it reads today

StatementStatus
CAMS CAS, detailed and summarySupported
KFintech CAS, detailed and summarySupported
NSDL or CDSL demat CASMutual fund units and ETFs; shares, bonds and NPS not read
MF Central CASNot yet
Capital gains, lot by lotSupported (include=gains); no tax rates
Schedule 112A rows for the ITRNot yet
Re-printed ("print to PDF") copies, scanned imagesRejected with a clear error code

Unsupported files fail with an error code, never a guess.

Plans

100 statements for ₹1,000, with gains and XIRR included

Only reads that return a result count. Prices before GST, where it applies.

PlanStatementsPriceBuy
Free10 a month, plus the sandbox on our samples₹0Get a free key
Basic100 within 30 days₹1,000Buy Basic
Pro500 within 30 days₹3,000Buy Pro
MoreBigger volumes, or on your own serversTalk to usEmail us

Checks, XIRR and capital gains included. No auto-renewal · Refund within 7 days · Delivery · Terms

Hosted API (beta)

Or one HTTPS call, from our servers in Mumbai

The same JSON as the package. Read in memory, never stored.

  • POST /v1/parse with your key; format=casparser for casparser's shape, include=analytics,gains, redact=true
  • Real statements with a Free, Basic or Pro key

Sandbox: no key, no sign-up

GET /v1/samples/{name} returns exactly what POST /v1/parse?include=analytics,gains returns for our samples.

curl https://api.sachfolio.com/v1/samples/dev-sample
curl https://api.sachfolio.com/v1/samples/cams-detailed.casparser
SampleWhat it showsFiles
dev-sampleA complete read, with one check failing on purposePDF · JSON
cams-detailedA partial read: coverage shows the gapPDF · JSON
kfin-summaryA KFintech summary: holdings only, so history checks are unavailablePDF · JSON

The sample PDFs are invented and have no password. Offline: open the app's sample and choose Save a copy → Everything as JSON.

Switching from casparser · OpenAPI description · llms.txt

Get the package

Tell us what you're building and your monthly volume.

Never send us your users' statements.