Skip to main content
POST
/
v4
/
nsdl
/
parse
Parse NSDL CAS PDF
curl --request POST \
  --url https://api.casparser.in/v4/nsdl/parse \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form pdf_file='@example-file' \
  --form 'pdf_url=<string>' \
  --form 'password=<string>'
{
  "meta": {
    "cas_type": "NSDL",
    "statement_period": {
      "from": "2023-12-25",
      "to": "2023-12-25"
    },
    "generated_at": "2023-11-07T05:31:56Z"
  },
  "investor": {
    "name": "<string>",
    "pan": "<string>",
    "email": "jsmith@example.com",
    "address": "<string>",
    "pincode": "<string>",
    "mobile": "<string>",
    "cas_id": "<string>"
  },
  "summary": {
    "total_value": 123,
    "accounts": {
      "demat": {
        "count": 123,
        "total_value": 123
      },
      "mutual_funds": {
        "count": 123,
        "total_value": 123
      },
      "insurance": {
        "count": 123,
        "total_value": 123
      },
      "nps": {
        "count": 123,
        "total_value": 123
      }
    }
  },
  "demat_accounts": [
    {
      "demat_type": "NSDL",
      "dp_id": "<string>",
      "dp_name": "<string>",
      "client_id": "<string>",
      "bo_id": "<string>",
      "value": 123,
      "linked_holders": [
        {
          "name": "<string>",
          "pan": "<string>"
        }
      ],
      "holdings": {
        "equities": [
          {
            "isin": "<string>",
            "name": "<string>",
            "units": 123,
            "value": 123,
            "transactions": [
              {
                "date": "2023-12-25",
                "description": "<string>",
                "type": "PURCHASE",
                "amount": 123,
                "units": 123,
                "nav": 123,
                "balance": 123,
                "dividend_rate": 123,
                "additional_info": {
                  "credit": 123,
                  "debit": 123,
                  "stamp_duty": 123,
                  "order_no": "<string>",
                  "price": 123,
                  "income_distribution": 123,
                  "capital_withdrawal": 123
                }
              }
            ],
            "additional_info": {
              "open_units": 123,
              "close_units": 123
            }
          }
        ],
        "corporate_bonds": [
          {
            "isin": "<string>",
            "name": "<string>",
            "units": 123,
            "value": 123,
            "transactions": [
              {
                "date": "2023-12-25",
                "description": "<string>",
                "type": "PURCHASE",
                "amount": 123,
                "units": 123,
                "nav": 123,
                "balance": 123,
                "dividend_rate": 123,
                "additional_info": {
                  "credit": 123,
                  "debit": 123,
                  "stamp_duty": 123,
                  "order_no": "<string>",
                  "price": 123,
                  "income_distribution": 123,
                  "capital_withdrawal": 123
                }
              }
            ],
            "additional_info": {
              "open_units": 123,
              "close_units": 123
            }
          }
        ],
        "government_securities": [
          {
            "isin": "<string>",
            "name": "<string>",
            "units": 123,
            "value": 123,
            "transactions": [
              {
                "date": "2023-12-25",
                "description": "<string>",
                "type": "PURCHASE",
                "amount": 123,
                "units": 123,
                "nav": 123,
                "balance": 123,
                "dividend_rate": 123,
                "additional_info": {
                  "credit": 123,
                  "debit": 123,
                  "stamp_duty": 123,
                  "order_no": "<string>",
                  "price": 123,
                  "income_distribution": 123,
                  "capital_withdrawal": 123
                }
              }
            ],
            "additional_info": {
              "open_units": 123,
              "close_units": 123
            }
          }
        ],
        "aifs": [
          {
            "isin": "<string>",
            "name": "<string>",
            "units": 123,
            "value": 123,
            "transactions": [
              {
                "date": "2023-12-25",
                "description": "<string>",
                "type": "PURCHASE",
                "amount": 123,
                "units": 123,
                "nav": 123,
                "balance": 123,
                "dividend_rate": 123,
                "additional_info": {
                  "credit": 123,
                  "debit": 123,
                  "stamp_duty": 123,
                  "order_no": "<string>",
                  "price": 123,
                  "income_distribution": 123,
                  "capital_withdrawal": 123
                }
              }
            ],
            "additional_info": {
              "open_units": 123,
              "close_units": 123
            }
          }
        ],
        "demat_mutual_funds": [
          {
            "isin": "<string>",
            "name": "<string>",
            "units": 123,
            "value": 123,
            "transactions": [
              {
                "date": "2023-12-25",
                "description": "<string>",
                "type": "PURCHASE",
                "amount": 123,
                "units": 123,
                "nav": 123,
                "balance": 123,
                "dividend_rate": 123,
                "additional_info": {
                  "credit": 123,
                  "debit": 123,
                  "stamp_duty": 123,
                  "order_no": "<string>",
                  "price": 123,
                  "income_distribution": 123,
                  "capital_withdrawal": 123
                }
              }
            ],
            "additional_info": {
              "open_units": 123,
              "close_units": 123
            }
          }
        ]
      },
      "additional_info": {
        "bo_status": "<string>",
        "bo_sub_status": "<string>",
        "bo_type": "<string>",
        "bsda": "<string>",
        "email": "jsmith@example.com",
        "status": "<string>",
        "nominee": "<string>",
        "linked_pans": [
          "<string>"
        ]
      }
    }
  ],
  "mutual_funds": [
    {
      "folio_number": "<string>",
      "amc": "<string>",
      "registrar": "<string>",
      "value": 123,
      "linked_holders": [
        {
          "name": "<string>",
          "pan": "<string>"
        }
      ],
      "schemes": [
        {
          "isin": "<string>",
          "name": "<string>",
          "type": "Equity",
          "units": 123,
          "nav": 123,
          "value": 123,
          "cost": 123,
          "gain": {
            "absolute": 123,
            "percentage": 123
          },
          "transactions": [
            {
              "date": "2023-12-25",
              "description": "<string>",
              "type": "PURCHASE",
              "amount": 123,
              "units": 123,
              "nav": 123,
              "balance": 123,
              "dividend_rate": 123,
              "additional_info": {
                "credit": 123,
                "debit": 123,
                "stamp_duty": 123,
                "order_no": "<string>",
                "price": 123,
                "income_distribution": 123,
                "capital_withdrawal": 123
              }
            }
          ],
          "nominees": [
            "<string>"
          ],
          "additional_info": {
            "advisor": "<string>",
            "rta_code": "<string>",
            "amfi": "<string>",
            "open_units": 123,
            "close_units": 123
          }
        }
      ],
      "additional_info": {
        "pan": "<string>",
        "pankyc": "<string>",
        "kyc": "<string>"
      }
    }
  ],
  "insurance": {
    "life_insurance_policies": [
      {
        "policy_number": "<string>",
        "provider": "<string>",
        "policy_name": "<string>",
        "life_assured": "<string>",
        "status": "<string>",
        "sum_assured": 123,
        "premium_amount": 123,
        "premium_frequency": "<string>",
        "additional_info": {}
      }
    ]
  },
  "nps": [
    {
      "pran": "<string>",
      "cra": "<string>",
      "value": 123,
      "funds": [
        {
          "name": "<string>",
          "units": 123,
          "nav": 123,
          "value": 123,
          "cost": 123,
          "additional_info": {
            "tier": 1,
            "manager": "<string>"
          }
        }
      ],
      "linked_holders": [
        {
          "name": "<string>",
          "pan": "<string>"
        }
      ],
      "additional_info": {}
    }
  ]
}

Authorizations

x-api-key
string
header
required

Your API key for authentication. Use sandbox-with-json-responses as Sandbox key.

Body

Provide either pdf_file OR pdf_url (one is required)

pdf_file
file

CAS PDF file to parse (required if pdf_url not provided)

pdf_url
string<uri>

URL to the CAS PDF file (required if pdf_file not provided)

password
string

Password for the PDF file (if required)

Response

Successful operation

meta
object
investor
object
summary
object
demat_accounts
object[]
mutual_funds
object[]
insurance
object
nps
object[]

List of NPS accounts