To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
HTTP + CSV
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /riskprofiles/calculate/risktolerance HTTP/1.1
Host: api.portfoliolink.co.za
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"currency":"String","willingnessToTakeRisk":0,"preferencesWhenHoldingRiskAssets":0,"knowledgeable":0,"experience":0,"perceptionOfStockMarket":0,"pastInvestmentLosses":0,"override":false,"overrideMessage":"String","overrideRiskProfileId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"totalScore":0,"riskProfile":"String","riskProfileId":0,"generalMessage":"String","override":false,"overrideMessage":"String","overrideRiskProfileId":0,"willingnessToTakeRisk":0,"preferencesWhenHoldingRiskAssets":0,"knowledgeable":0,"experience":0,"perceptionOfStockMarket":0,"pastInvestmentLosses":0}