Get Risk Assessment Questions
GET/accounts/risk-profile-questions
This endpoint allows you to fetch a list of risk assessment questions.
Response Object Details
idint |
Unique identifier of the question. Please note that you will need this when you want to submit answers on the risk-profile endpoint. |
questionstring |
The question to be answered |
answer_typestring |
the type of answer expected (options are: "input" and "options") |
base url
import requests
url = '{{BASE_URL}}/accounts/risk-profile-questions'
payload = {}
headers = {'Authorization': 'Bearer hswP8mvPJ455pwziUMnrpWDK1tSLd8'}
response = requests.request('GET', url, headers=headers, data=payload)
print response.text,
Response JSON
{ "data":[
{
"id":1,
"question":"How old are you?",
"answer_type":"input",
"options":[
]
},
{
"id":2,
"question":"What is your major source of income right now? ",
"answer_type":"options",
"options":[
{
"id":1,
"answer":"Full time employee"
},
{
"id":2,
"answer":"Part-time employee"
},
{
"id":3,
"answer":"Business owner"
},
{
"id":4,
"answer":"Student"
},
{
"id":5,
"answer":"Unemployed"
}
]
},
{
"id":3,
"question":"What is your current net worth?",
"answer_type":"options",
"options":[
{
"id":6,
"answer":"Less than 1 million"
},
{
"id":7,
"answer":"1 - 5 million"
},
{
"id":8,
"answer":"5 - 20 million"
},
{
"id":9,
"answer":"20 - 50 million"
},
{
"id":10,
"answer":"50 - 100 million"
},
{
"id":11,
"answer":"Greater than 100 million"
}
]
},
{
"id":4,
"question":"What is your marital status?",
"answer_type":"options",
"options":[
{
"id":12,
"answer":"Single"
},
{
"id":13,
"answer":"Married"
},
{
"id":14,
"answer":"Divorced"
},
{
"id":15,
"answer":"Widowed"
}
]
},
{
"id":5,
"question":"How many dependents do you currently have?",
"answer_type":"options",
"options":[
{
"id":16,
"answer":"None"
},
{
"id":17,
"answer":"1-2 dependents"
},
{
"id":18,
"answer":"3-4 dependents"
},
{
"id":19,
"answer":"5-6 dependents"
},
{
"id":20,
"answer":"7-9 dependents"
},
{
"id":21,
"answer":"10 or more dependents"
}
]
},
{
"id":6,
"question":"Given the best and worst case returns of these investments,
which would you prefer?",
"answer_type":"options",
"options":[
{
"id":22,
"answer":"N150,000 gain best case; N80,000 loss worst case"
},
{
"id":23,
"answer":"N320,000 gain best case; N190,000 loss worst case"
},
{
"id":24,
"answer":"N700,000 gain best case; N360,000 loss worst case"
}
]
}
],
"errors":null,
"message":"Request successful",
"status":"success"
}
base url
import requests
url = '{{BASE_URL}}/accounts/risk-profile-questions'
payload = {}
headers = {'Authorization': 'Bearer hswP8mvPJ455pwziUMnrpWDK1tSLd8'}
response = requests.request('GET', url, headers=headers, data=payload)
print response.text,
Response JSON
{ "data":[
{
"id":1,
"question":"How old are you?",
"answer_type":"input",
"options":[
]
},
{
"id":2,
"question":"What is your major source of income right now? ",
"answer_type":"options",
"options":[
{
"id":1,
"answer":"Full time employee"
},
{
"id":2,
"answer":"Part-time employee"
},
{
"id":3,
"answer":"Business owner"
},
{
"id":4,
"answer":"Student"
},
{
"id":5,
"answer":"Unemployed"
}
]
},
{
"id":3,
"question":"What is your current net worth?",
"answer_type":"options",
"options":[
{
"id":6,
"answer":"Less than 1 million"
},
{
"id":7,
"answer":"1 - 5 million"
},
{
"id":8,
"answer":"5 - 20 million"
},
{
"id":9,
"answer":"20 - 50 million"
},
{
"id":10,
"answer":"50 - 100 million"
},
{
"id":11,
"answer":"Greater than 100 million"
}
]
},
{
"id":4,
"question":"What is your marital status?",
"answer_type":"options",
"options":[
{
"id":12,
"answer":"Single"
},
{
"id":13,
"answer":"Married"
},
{
"id":14,
"answer":"Divorced"
},
{
"id":15,
"answer":"Widowed"
}
]
},
{
"id":5,
"question":"How many dependents do you currently have?",
"answer_type":"options",
"options":[
{
"id":16,
"answer":"None"
},
{
"id":17,
"answer":"1-2 dependents"
},
{
"id":18,
"answer":"3-4 dependents"
},
{
"id":19,
"answer":"5-6 dependents"
},
{
"id":20,
"answer":"7-9 dependents"
},
{
"id":21,
"answer":"10 or more dependents"
}
]
},
{
"id":6,
"question":"Given the best and worst case returns of these investments,
which would you prefer?",
"answer_type":"options",
"options":[
{
"id":22,
"answer":"N150,000 gain best case; N80,000 loss worst case"
},
{
"id":23,
"answer":"N320,000 gain best case; N190,000 loss worst case"
},
{
"id":24,
"answer":"N700,000 gain best case; N360,000 loss worst case"
}
]
}
],
"errors":null,
"message":"Request successful",
"status":"success"
}