Table of Contents |
---|
RegistrationResultV2
Name | Type | Description |
---|---|---|
registrationResult | String | The outcome of the registration process. It will be one of:
|
userData | UserDataV2 | The personal details and identity card image information. |
currentStatus | CurrentStatusV2 | The current status of the verification attempt. |
UserDataV2
Name | Type | Description |
---|---|---|
name | The person's name. | |
address | Address | The person's address. |
dob | DateOfBirth | The person's date of birth. |
documentNumber | String | The document number that was extracted from an identity card. |
documentType | String | The document type of the identity card. Please refer to the list of supported Identity Card Types. |
imageCode | String | A reference to the image and OCR results in greenID. |
base64Face | String | This member is currently unpopulated, and is reserved for future use. |
faceMimeType | String | This member is currently unpopulated, and is reserved for future use. |
extraUserData | List<NameValuePair> | A list of extra data items. |
CurrentStatusV2
Name | Type | Description |
---|---|---|
sourceList | This member contains a list of SourceV2 objects, each of which corresponds to a data source that is available to the person for the purpose of becoming fully verified. The SetFields web method expects a source name chosen from this list as the sourceId input parameter. | |
verificationResult | This member contains all of the verification information currently available for a verification attempt. It is a complete record of all checks that have been performed, their results, and an indicator of the overall verification status. | |
sourceFields | This member contains a list of fields that are required for a particular data source. This includes the field’s name, type and other pertinent information for displaying and collecting a value for the field. This member will only be populated when a method that fetches source fields is called, i.e. GetFields. | |
checkResult | LastCheckResultV2 | This member indicates the outcome of a check against a data source that was performed during a call to the SetFields web method. This member also indicates whether the check is still in progress. |
verificationToken | String | This field is for the SimpleUI, and can be ignored. |
LastCheckResultV2
Name | Type | Description |
---|---|---|
stillWorking | boolean | This member indicates whether the check is still in progress. This feature is still under development; currently the value is always false. |
state | String | This member gives the current state of the check. Valid values are:
|
SourceListV2
SourceV2
Name | Type | Description |
---|---|---|
state | String | This member reflects the current state of the source. The valid values are the same as the state member of the LastCheckResultV2 object. If a source has not been used, then this member will be “EMPTY”. |
passed | boolean | This member indicates whether this source has been passed, i.e. the check is in one of the verified states. |
name | String | This member is the name of the data source. This name is expected to be used to refer to this data source in calls to the SetFields web method. |
available | boolean | This member indicates whether this data source is currently available; sometimes a particular data source may not be available. |
notRequired | boolean | This member indicates whether this data source can help a person become fully verified. If the value is true, then there is no point using this data source because it cannot help the person become fully verified. |
oneSourceLeft | boolean | This member indicates whether completing this data source will make a person fully verified. This member is very valuable because it indicates which sources should be attempted first, thereby shortening the verification process. |
order | int | The order in which the source would be displayed if it were being displayed by greenID. Sources that are more likely to result in the person becoming fully verified are at the top of the list, i.e. their “order” number is lower. |
attributes | List<NameValuePair> | This member contains a list of HTML attributes that should be applied to any HTML input collecting input from a person. For example, the HTML attribute “class=’required’” would be represented by a NameValuePair withname=”class” and value=”required”. |
version | int | The version of this data source. For details, please refer to Data Source Versions. |
SourceFieldsV2
Name | Type | Description |
---|---|---|
fieldList | This member contains a list of fields that are required for a particular data source. The members of list represent HTML fields for collecting input from the person. | |
rawData | String | This member contains an HTML fragment that, if displayed, will present HTML fields for collecting data from a person in order to perform a check against a data source. Some customer may prefer this approach rather than generating their own HTML from the data contained in the fieldList member. |
FieldListV2
FieldV2
Name | Type | Description |
---|---|---|
type | String | The type of HTML input that is required (at least strongly suggested) for collecting the data for this field from the person. For example, a value of “text” would indicate a simple HTML text input is appropriate. |
name | String | The name of the HTML input that would collect data for this field from the person. The name also indicates what the data field is, for example, the value “aec_givenname” indicates the field holds the given name for the AEC data source. |
value | String | This member contains any pre-existing value for the HTML field. For example, the Field with the name “aec_givenname” will be pre-populated with the person’s given name (derived from the person’s master record established during the call to the RegisterUser web method) the first time the GetFields method is called with the sourceId “aec”. |
label | String | This member contains label. Please refer to the section on Labels above. |
order | int | An integer that defines an ordering on the fields. |
selectItem | List<NameValuePair> | This member contains a list of item names and values for a select item FieldV2. |
attribute | List<NameValuePair> | This member contains a list of the names and values of any HTML attributes that this Field has. For example, the attribute class=”required” would be represented by a NameValuePair with name=”class” and value=”required”. |
CurrentStatus
The CurrentStatus object is the sole return type of all the web methods in the API. It is intended to provide information about what has just happened, as well as giving an overview of the person’s current verification status, and the list of data sources that will help the person become fully verified. Always presenting this information helps to reduce the chattiness between greenID and the customer application.
...