PortfolioLinkApi

<back to all web services

GetRetirementGoal

Requires Authentication
The following routes are available for this service:
All Verbs/goals/retirement/{Id}
GetRetirementGoal Parameters:
NameParameterData TypeRequiredDescription
IdpathintNo
RetirementGoalResponse Parameters:
NameParameterData TypeRequiredDescription
ResultsformClientGoalResultsNo
ClientGoalResults Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
ClientIdformintNo
ClientGoalIdformintNo
GoalTypeIdformintNo
DateformintNo
EndDateformintNo
CurrentBalanceformdecimalNo
EndBalanceformdecimalNo
TaxableAnnualIncomeformdecimalNo
AnnualIncomeformdecimalNo
SuggestedIncomeformdecimal?No
CashReserveformdecimalNo
AdditionalSaPropertyformdecimalNo
StatusformstringNo
MessageformstringNo
ResultsformObjectNo
Results2formstringNo
ResultsTypeformstringNo
UpdatedAsAtformDateTimeNo
CreatedAsAtformDateTimeNo
PortfolioIdformintNo
DocumentStatusformstringNo
DocumentExternalIdformstringNo
DocumentExternalTypeformstringNo
LifeExpectancyAgeformintNo

To override the Content-type in your clients, use the 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 /goals/retirement/{Id} HTTP/1.1 
Host: api.portfoliolink.co.za 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	results: 
	{
		id: 0,
		clientId: 0,
		clientGoalId: 0,
		goalTypeId: 0,
		date: 0,
		endDate: 0,
		currentBalance: 0,
		endBalance: 0,
		taxableAnnualIncome: 0,
		annualIncome: 0,
		suggestedIncome: 0,
		cashReserve: 0,
		additionalSaProperty: 0,
		status: String,
		message: String,
		results: {},
		results2: String,
		resultsType: String,
		updatedAsAt: 0001-01-01,
		createdAsAt: 0001-01-01,
		portfolioId: 0,
		documentStatus: String,
		documentExternalId: String,
		documentExternalType: String,
		lifeExpectancyAge: 0
	}
}