PortfolioLinkApi

<back to all web services

GetRaTaxInfo

The following routes are available for this service:
All Verbs/tax/ra
GetRaTaxInfo Parameters:
NameParameterData TypeRequiredDescription
IncomequerydoubleNo
PensionFundContributionsquerydoubleNo
DonationsquerydoubleNo
AgequeryintNo
GetRaTaxInfoResponse Parameters:
NameParameterData TypeRequiredDescription
IncomeformdoubleNo
PensionFundContributionsformdoubleNo
TaxPayableformdoubleNo
NetIncomeAfterContributionsformdoubleNo
TaxBracketformTaxBracketNo
ContributionsVolformdoubleNo
TaxPayableVolformdoubleNo
NetIncomeVolformdoubleNo
TaxBracketVolformTaxBracketNo
TaxBracket Parameters:
NameParameterData TypeRequiredDescription
LowerformdecimalNo
UpperformdecimalNo
RateformdecimalNo

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /tax/ra HTTP/1.1 
Host: api.portfoliolink.co.za 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"income":0,"pensionFundContributions":0,"donations":0,"age":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"income":0,"pensionFundContributions":0,"taxPayable":0,"netIncomeAfterContributions":0,"taxBracket":{"lower":0,"upper":0,"rate":0},"contributionsVol":0,"taxPayableVol":0,"netIncomeVol":0,"taxBracketVol":{"lower":0,"upper":0,"rate":0}}