curl --request POST \
--url https://api.casparser.in/v4/smart/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": {}
}
]
}This endpoint parses CAS (Consolidated Account Statement) PDF files from NSDL, CDSL, or CAMS/KFintech and returns data in a unified format. It auto-detects the CAS type and transforms the data into a consistent structure regardless of the source.
curl --request POST \
--url https://api.casparser.in/v4/smart/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": {}
}
]
}Your API key for authentication.
Use sandbox-with-json-responses as Sandbox key.
Successful operation
Was this page helpful?