Funexpert API


Get portfolio of client

Description

This API will be called when user requests to get its Portfolio. And In Response it will receive array of Transactions which are available in its Portfolio.

Type

Post

Resource URL

https://api.fundexpert.in/rest/user/portfolio

Parameters

Input :


Field
Required/Optional
Type
Description
appId
Required
string
unique id given by consumer to user
sessionId
Required
string
session Id for each user's session
userId
Required
string
unique Id of user

Output :


Field
Description
fullPortFolioOfUser
Full portfolio of user

Example Response

For Login:


{

"appId": your app id,
"sessionId": your session id,
"userId": your user id

}

On Success:


{

"success":true,
"transactions":
[
{
"folioNumber": "53674776/3",
"amfiiCode": "53749",
"optionType": "GROWTH",
"units": "1500.43",
"nav": "55.45",
"action": "Invest",
"date": "2016-05-03"
},
{
"folioNumber": "54344776/3",
"amfiiCode": "53259",
"optionType": "REINVEST",
"units": "1500.43",
"nav": "55.45",
"action": "redeem",
"date": "2016-08-27"
}
]

}

On Failure:


{

"success": false,
"error":
{
"message": "User portfolio not uploaded.
"code": 707
}

}