Overview
Use this method to add a questionnaire completed by the applicant to their personal profile.
Request example
The following example demonstrates a questionnaire structure that you can use to create a JSON body based on the questionnaire parameters.
In the tables below, you can see the possible questionnaire attributes.
Important
Make sure to always provide a questionnaire
id
that exists on your client key.
{
"id": "Example_Questionnaire",
"sections": {
"section_id_1": { // Section ID
"items": {
"item_id_0": { // Item ID
"values": [ // Item values
"EUR",
"USD"
]
},
"item_id_1": {
"value": "String Value"
}
}
},
"section_id_2": {
"items": {
"item_id_3": {
"value": null
}
}
},
"section_id_3": {
"items": {
"item_id_4": {
"value": "856090714", // Image ID
}
}
}
}
}
Questionnaire attributes
The following are the root attributes of each questionnaire:
Field | Type | Description |
---|---|---|
id | String | Unique identifier of the questionnaire. You assign this ID to the questionnaire when creating it. |
sections | Object | Includes the objects each of those is a separate group of questions added to the questionnaire. A section object has an ID representing the section given when the questionnaire was created. Each section consists of items (single questions), and has its own score based on the score of the items included. |
score | Double | When setting up a questionnaire, you have the option to set up the risk scoring. It means that you can add a value to each possible answer. When the applicant selects this answer, the assigned value is added to the score. You can set up the score for the following question types: dropdown , checkboxes , multiple choice .The section score depends on the score values given to the items it contains. Upon completion of the questionnaire, the system sums up the section score values which results in the entire questionnaire score. |
Note
Each questionnaire
ID
attribute should be unique. If you intend to change the questionnaire structure, IDs should not be reused.
sections
element fields
sections
element fieldsThe following table describes the sections
attributes.
Name | Type | Description |
---|---|---|
id | String | Unique section identifier. |
condition | String | Condition that makes a section visible, depending on the value of the specified sectionId.itemId={options.value} . |
items | Object | Includes the objects each of those stands for a single question added to the questionnaire, and has an ID—item identifier—representing this question. |
items
element fields
items
element fieldsThe items
object contains internal objects each of those stands for a single question added to the questionnaire, and has the attributes described in the table below.
Field | Type | Description | Supported values |
---|---|---|---|
id | String | Unique item identification number. | Any unique item identifier. |
condition | String | Condition that makes the item show up. | sectionId.itemId={options.value} ( Example: 1-Section.1-2=someValue ) |
value | String | Contains the value that represents an answer to a question. | Any string value. |
values | Array of strings | Contains the values that represent multiple answers to a question (e.g. for checkboxes). | Any string values. |
score | Double | Score that is an estimation of the sum of all answers in one question. | Double value. |
dataScores | Array of objects | Compartmentalized information about risk scoring for each answer (for example, a question may have multiple answers to choose from in the checkboxes). | Each object includes the following:
|
Questionnaire example
{
"id": "Example_Questionnaire",
"sections": {
"accountDetails": {
"items": {
"1-0": {
"values": [
"EUR",
"USD"
]
},
"1-1": {
"value": "Luciano"
},
"1-2": {
"value": "yes"
},
"1-3": {
"value": "test.com"
},
"1-4": {
"value": "merchant"
},
"1-5": {
"value": "yes"
},
"1-email": {
"value": "[email protected]"
}
}
},
"bankDetails": {
"items": {
"2-1": {
"value": "Test Bank"
},
"2-2": {
"value": "Italy"
},
"2-3": {
"value": "Non-American"
},
"2-4": {
"value": "Naples, Italy"
},
"2-5": {
"value": "F833FK"
},
"2-6": {
"value": "IFKD87FG"
},
"2-7": {
"value": "yes"
},
"2-8": {
"value": null
}
}
},
"employmentStatus": {
"items": {
"countryOfIncome": {
"value": "ITA"
},
"uploadTheDocumentsTo": {
"value": null
},
"whatIsYourCurrentEmp": {
"value": "self-employed"
}
}
},
"withInstitution": {
"items": {
"3-1": {
"value": null
}
}
}
}
}