Affluenza REST API

<back to all web services

GetInvestmentReportRequest

The following routes are available for this service:
POST,OPTIONS/reports/Investment

To override the Content-type in your clients HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/GetInvestmentReportRequest HTTP/1.1 
Host: 107.22.237.214 
Content-Type: text/jsv
Content-Length: length

{
	portfolioId: 00000000000000000000000000000000,
	date: 0001-01-01,
	calcOption: Accrual,
	displayCurrency: String,
	appKey: 0,
	token: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	status: Success,
	response: 
	{
		intervals: 
		[
			{
				name: String,
				startDate: 0001-01-01,
				endDate: 0001-01-01
			}
		],
		finalNetWorthByInterval: 
		[
			{
				date: 0001-01-01,
				counterPartyValues: 
				[
					{
						description: String,
						marketData: 
						{
							inflation: 0,
							prefixed: 0,
							postFixed: 0
						},
						value: 0
					}
				],
				total: 0,
				accumulatedTotal: 0
			}
		],
		cashFlowMaturityByInterval: 
		[
			{
				date: 0001-01-01,
				counterPartyValues: 
				[
					{
						description: String,
						marketData: 
						{
							inflation: 0,
							prefixed: 0,
							postFixed: 0
						},
						value: 0
					}
				],
				total: 0,
				accumulatedTotal: 0
			}
		],
		netIncomeByInterval: 
		[
			{
				date: 0001-01-01,
				counterPartyValues: 
				[
					{
						description: String,
						marketData: 
						{
							inflation: 0,
							prefixed: 0,
							postFixed: 0
						},
						value: 0
					}
				],
				total: 0,
				accumulatedTotal: 0
			}
		],
		netRentabilityByInterval: 
		[
			{
				date: 0001-01-01,
				counterPartyRentabilities: 
				[
					{
						description: String,
						value: 0
					}
				],
				indexType: 
				{
					inflation: 0,
					prefixed: 0,
					postFixed: 0
				},
				rentability: 
				{
					netPeriod: 0,
					annualized: 0,
					accumulated: 0,
					accumulatedAnnualized: 0
				},
				benchmarks: 
				[
					{
						marketData: 
						[
							{
								description: String,
								value: 0,
								type: Annualized
							}
						],
						value: 0,
						description: String
					}
				],
				principalBenchmarkDiscountedNetWorth: 0
			}
		]
	},
	errorMessage: 
	{
		message: String,
		statusCode: 0
	}
}