WealthCrop NAV & Advisory API Docs
Enterprise OpenAPI 3.1 specifications for Mutual Fund Distributors (ARN-297008), Registered Investment Advisors (RIA), and Fintech Frontend Developers.

1. Authentication

Authenticate requests by passing your API key in HTTP request headers.

X-API-Key: YOUR_API_KEY_HERE
accept: application/json

2. Strict Compliance & Channel Rules

WealthCrop enforces regulatory channel separation at the database layer:

  • MFD Endpoints (/api/v1/investor/mfd/*): Exclusively queries REGULAR / NORMAL distribution plans (ARN channel). Blocked if a Direct code is queried.
  • RIA Endpoints (/api/v1/investor/ria/*): Exclusively queries DIRECT fee-based advisory plans. Blocked if a Regular code is queried.

3. Upload & Process CAS PDF

POST /api/v1/cas/upload

Uploads password-protected CSDL/NDSL Consolidated Account Statements (CAS) PDF files, decrypts using PAN, and normalizes all historical transactions, folios, and scheme holdings into standard structured DB entities.

ParameterTypeInDescription
file *requiredfile (binary)formDataCAS PDF document binary upload
password *requiredstringformDataPDF decryption password (Investor PAN / Case-insensitive)
curl -X 'POST' \ 'https://api.wealthcrop.in/api/v1/cas/upload' \ -H 'accept: application/json' \ -H 'X-API-Key: YOUR_API_KEY' \ -F 'file=@cas_statement.pdf;type=application/pdf' \ -F 'password=ABCDE1234F'

Response Example (200 OK)

{ "status": "success", "investor_pan": "ABCDE1234F", "folios_parsed": 8, "schemes_found": 14, "transactions_ingested": 112, "total_current_value": 1245800.50 }

4. Get User Holdings

GET /api/v1/cas/holdings

Fetches normalized mutual fund portfolio holdings, current NAV valuations, folio allocations, and XIRR performance metrics for a specific investor.

ParameterTypeInDescription
pan *requiredstringqueryInvestor Permanent Account Number (PAN)
curl -X 'GET' \ 'https://api.wealthcrop.in/api/v1/cas/holdings?pan=ABCDE1234F' \ -H 'accept: application/json' \ -H 'X-API-Key: YOUR_API_KEY'

5. Request CAS Mailback

POST /api/v1/cas/request-mailback

Triggers automated CAS statement request dispatched directly to the investor's registered email via CSDL/KFintech/CAMS infrastructure.

Request Payload Example

{ "email": "[email protected]", "pan": "ABCDE1234F", "from_date": "2020-01-01" }

8. Pre-Calculated Rolling Matrix Analytics

GET /api/v1/investor/mfd/analytics/rolling-matrix/{wealthcrop_code}

Ultra-fast pre-calculated rolling consistency matrix returning probability buckets.

ParameterTypeInDescription
wealthcrop_code *requiredstringpathScheme code (e.g. WR00000694)
horizonintegerqueryRolling horizon in years (e.g. 3)

9. Portfolio Overlap Engine

POST /api/v1/analytics/portfolio-overlap

Calculates stock-level portfolio concentration and overlap percentages across two or more scheme codes.

Request Payload Example

{ "schemes": [ { "wealthcrop_code": "WR00000694", "weight": 0.5 }, { "wealthcrop_code": "WR00000829", "weight": 0.5 } ] }

10. AI Services Engine

POST /api/v1/ai/ask

Generates contextual AI responses powered by AWS Bedrock for financial and scheme inquiries.

curl -X 'POST' \ 'https://api.wealthcrop.in/api/v1/ai/ask' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "query": "Explain the risk profile of HDFC Balanced Advantage Fund" }'

11. SIP Step-Up Calculator

POST /api/v1/mfd/sip/step-up/calculator

Calculates future wealth accumulation with compounding annual step-up contributions.

{ "initial_monthly_sip": 10000, "annual_step_up_percent": 10, "expected_annual_return": 12, "investment_tenure_years": 10 }