Retrieving entity questionnaire answers
When an entity has finished processing, you can retrieve the answers from the questionnaire, product, and plan selection logic blocks.
Retrieving questionnaire answers
Name
Value
Name
Type
Description
Request
curl --location 'https://enterprise.personr.co/api/1.1/wf/api-entity-questionnaire' \
--form 'applicantId="4242424242424x424242424242424242"'var axios = require('axios');
var FormData = require('form-data');
var data = new FormData();
data.append('applicantId', '4242424242424x424242424242424242');
var config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://enterprise.personr.co/api/1.1/wf/api-entity-questionnaire',
headers: {
...data.getHeaders()
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});{
"applicantId": "1726733114679x00000000000",
"flow": "Example Flow",
"sourceKey": "Example Source Key",
"externalUserId": [
"Example External User ID",
"Another External User ID"
],
"selectedProducts": [
"Product A"
],
"selectedProductIds": [
"ProductA-20394"
],
"selectedPlans": [
"Plan A"
],
"selectedPlanIds": [
"Plan A-20394"
],
"questionnaire": [
{
"flowQuestion": "Example Question",
"questionId": "1724124467705x000000000000",
"internalQuestionId": "Example Internal Question ID",
"flowAnswer": [
"No",
"Yes"
]
},
{
"flowQuestion": "Another Example Question",
"questionId": "1724124485940x00000000000",
"internalQuestionId": "Example Internal Question ID",
"flowAnswer": "Yes"
}
]
}Last updated
Was this helpful?