DIY integration via API - MF Holdings Import
A backend-to-backend integration - plug our APIs with your UI to suit your system's design π¨βπ¨ π»π
With smallcase Gateway, you can easily import the latest snapshot and transaction details of a userβs mutual fund holdings natively in a seamless manner
This guide only talks about how to do API-only integration for importing MF holdings
More details about the feature and how it works here - Standard integration via SDK.
Build your flow
1. Create a transactionId by calling the create transaction API π§βπ»
Generate a transactionId for the intent MF_HOLDINGS_IMPORT
using Create Transaction API.
2. Collect user PAN and mobile in your UI, and trigger mobile OTP using our API π₯
Once you collect user's PAN and mobile, the next step is to verify the mobile number. Use the Get OTP API to trigger OTP on user's mobile number. The user will receive the OTP on the provided phone number from MFCentral.
3. Collect OTP in your UI, and verify OTP using our API π
Once the user enters OTP on your UI, use the Verify OTP API to verify the same.
4. Consume the holdings data from your webhook endpoint πͺ
After the successful verification of the OTP, your server will receive the holdings response on the registered webhook endpoint.
Sequence diagram
This diagram suggests the sequence of interactions between different entities involved:
- Your Server
- Gateway API
- Gateway MF API
Response structure
Refer here
Sample response
Refer here
Analytics
smallcase Gateway also provides analytics in the webhook response as described in the above response structure for each and every import done by the user
One can also get updated analytics periodically by using the same holdings import snapshot using the Analytics API provided by smallcase Gateway
Updated over 1 year ago