Investment transactions
You can retrieve a list of investment transactions such as new investment, sales of investment , other investment incomes and valuation records using the following API:
HTTP Method | POST |
Path | /api/search/investment |
Reference | searchinvestmenttransaction |
Request Body | InvestmentTransactionSearch object in JSON, the required fields are - fundvehicleIds - investorIds - assetIds |
Request Body JSON format
{
"fromDate": "", // leave blank for a search without specific start date
"toDate": "", // leave blank for a search without specific end date
"fundvehicleIds ": [], // required**
"subTypes": [], // leave blank for all subtypes search
"investorIds": [], // required**
"assetIds": [], // required**
}
Request body example
Below is a basic example of the "Investment transaction search" body request.
{
"fromDate": "",
"toDate": "",
"fundvehicleIds": [17,26,27],
"subTypes": [],
"investorIds": [22,33,42,43,44],
"assetIds": [28,29,30,31]
}
curl -X POST "https://<Quantium Web API URL>/api/search/investment" -H "accept: */*" -H "Authorization: Bearer <Your bearer token>" -H "Content-Type: application/json-patch+json" -d "{\"fromDate\":\"\",\"toDate\":\"\",\"fundvehicleIds\":[17,26,27],\"subTypes\":[],\"investorIds\":[22,33,42,43,44],\"assetIds\":[28,29,30,31]}"
var payload = {
"fromDate": "",
"toDate": "",
"fundvehicleIds": [17,26,27],
"subTypes": [],
"investorIds": [22,33,42,43,44],
"assetIds": [28,29,30,31]
};
$.ajax({
url: `https://Quantium web api url/api/search/investment`,
type: 'post',
dataType: 'json',
contentType: 'application/json',
success: function (data) {
$('#target').html(data.msg);
},
data: JSON.stringify(payload)
});
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "Your token");
client.BaseAddress = new Uri($"https://Quantium web api url/api/search/investment");
var response = await client.PostAsync(urlpart, new StringContent(data, Encoding.UTF8, "application/json"));
var responseResult = await response.Content.ReadAsStringAsync();
return responseResult;
}
Response
Code | Meaning |
200(OK) | The successful request will return transactions in the response body |
400 (Bad request) | Invalid input, the reason provided, in the response body |
Investment transaction list result example
[
{
"transactionId": 5084,
"transactionType": "",
"entity": "Limited Partner 1 Asia Program ",
"dealName": "1239 - Asset 01",
"assetName": "Asset 01",
"investor": "Limited Partner 1 Asia Investment",
"expenseSubSubTypeItem": null,
"assetSubSubTypeItem": null,
"subTypeId": 0,
"subtype": "LN - Advance",
"typeId": 0,
"type": null,
"viewBy": null,
"dueDate": null,
"noticeDate": null,
"transactionDate": "2021-07-02",
"paymentDate": "2021-07-02",
"reference": "",
"amount": 0,
"currencyCode": "USD",
"status": "Complete",
"investmentCost": 2400,
"returnOfInvestmentCost": 0,
"realizedGainLoss": 0,
"unrealizedGainLoss": 0,
"investeeFundName": null
},
{
...
// transactions
}
]
Updated over 1 year ago