Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

Name

Type

Required

Restrictions

accountId

String

Yes

GreenID issues each customer with an accountId, which is a unique identifier by which greenID knows the caller.  This accountId must be supplied with every call to any method in this API.

password

String

Yes

Each customer is issued a password that must be supplied with every call to any web method in this API.

verificationId

String

May be null

Each verification attempt for a person must have a verificationId, which is a unique identifier that greenID and the caller use to refer to a verification attempt for an individual person.  If the caller supplies theverificationId, then greenID stores and uses that identifier; otherwise, greenID will generate a unique verificationId.  The verificationId is returned to the caller.

ruleId

String

Yes

Callers have one or more rules configured for their greenID account.  This string must identify one of those rules.  Contact greenID for the names of the rules configured for your account.  If only one rule is configured, then the string “default” will automatically select that rule.

name

Name

Yes

 

email

String

Yes

Must be a valid email address.

currentResidentialAddress

AusAddress

Yes

 

previousResidentialAddress

AusAddress

May be null

 

dob

DateOfBirth

Yes

Must be a valid date in the past

homePhone

String

May be null

If present, must be 10 digits only.

workPhone

String

May be null

If present, must be 10 digits only.

mobilePhone

String

May be null

If present, must be 10 digits only, starting with “04”.

deviceIDData

String

May be null

This field is only needed for customers using the ReD Shield device verification service. Customers not using this service can leave this field blank. If you are using the ReD Shield device verification service, then please contact Edentiti for technical details regarding this field.

generateVerificationToken

boolean

No

This parameter indicates whether a verification token is required. If "true", the registerVerification method will produce a verification token, referred to as a userToken or verificationToken, just as the getUserToken method would.  For information about verification tokens, please refer to the getUserToken method.  If a verification token is not required, this parameter should be set to  “false”.

extraData

nameValuePair[]

NoThis allows the customer to send extra data that will need to be agreed upon before implementation. It will be a simple key/value format. If there is no previous agreement for certain keys to be sent in this field then it will be ignored.

Return Value

...

This method is used to get a list of data sources, which, if completed, will help a person become fully verified.  The method will also return the person’s verification status to date.

Input Parameters

 

Name

Type

Required

Restrictions

accountId

String

Yes

 

password

String

Yes

 

verificationId

String

Yes

The verficationId parameter must be a valid verficationId that has been previously registered, via the RegisterUser web method, with greenID.  If the verficationId cannot be found in the greenID database, then anInvalidTokenException will be thrown.

userToken

String

No

The userToken parameter is reserved for the SimpleUI.  All customers should ignore this parameter, and set it to null.

optionalData

List<NameValuePair>

No

The optionalData parameter is used to send additional request information to greenID.  The various parameters are mentioned as required in this documentation.

 

Return Value

This method returns CurrentStatus object.  The following members will be populated:

  • verificationResult – this  field contains the results of checks that have been performed to date, and the person’s current verification status.
  • sourceList – this field will contain a list of data sources, which will help the person become fully verified.

Exceptions

The following exceptions may be thrown:

  • InvalidCustomerIdException – the accountId input parameter was missing or not recognised.

  • InvalidCertificateException – if certificates are used to connect, then this exception may be thrown if an invalid certificate is used.

  • InvalidPasswordException – the password input parameter was missing or incorrect.

GetFields

This method is used to get a list of source fields required for a particular data source.  The method will also return the person’s verification status to date

Input Parameters

 

Name

Type

Required

Restrictions

accountId

String

Yes

 

password

String

Yes

 

verficationId

String

Yes

The verficationId parameter must be a valid verficationId that has been previously registered, via the RegisterUser web method, with greenID.  If the verficationId cannot be found in the greenID database, then an InvalidTokenException will be thrown.

userToken

String

No

The userToken parameter is reserved for the SimpleUI.  All customers should ignore this parameter, and set it to null.

sourceId

String

Yes

The sourceId parameter is the name of the data source for which the fields are being requested.  It must be a non-blank string that is a valid data source name.  For a complete list of available data sources, please refer to <insert reference here>.  If the data source cannot be found, then the list of fields will be empty.

optionalData

List<NameValuePair>

No

The optionalData parameter is used to send additional request information to greenID.  The various parameters are mentioned as required in this documentation.

Return Value

This method returns CurrentStatus object.  The following members will be populated:

  • verificationResult – this  field contains the results of checks that have been performed to date, and the person’s current verification status.
  • sourceFields – this field will contain a list of fields that are required for the named data source.  If the data source could not be identified correctly, then this list will be empty.
  • sourceList – this field will contain an updated list of data sources, which will help the person become fully verified.  This field is provided for convenience, so that the caller does not need to call GetSources immediately after this call.

Exceptions

The following exceptions may be thrown:

  • InvalidCustomerIdException – the accountId input parameter was missing or not recognised.

  • InvalidCertificateException – if certificates are used to connect, then this exception may be thrown if an invalid certificate is used.

  • InvalidPasswordException – the password input parameter was missing or incorrect.

SetFields

This method is used to provide data fields to greenID for the purpose of performing a check against a data source.  If all the fields are present and valid, then greenID will perform the check against the data source, and the result will be returned to the caller.

Input Parameters

 

Name

Type

Required

Restrictions

accountId

String

Yes

 

password

String

Yes

 

verificationId

String

Yes

The verificationId parameter must be a valid verificationId that has been previously registered, via the RegisterUser web method, with greenID.  If the verificationId cannot be found in the greenID database, then an InvalidTokenException will be thrown.

userToken

String

No

The userToken parameter is reserved for the SimpleUI.  All customers should ignore this parameter, and set it to null.

sourceId

String

Yes

The sourceId parameter is the name of the data source for which the fields are being requested.  It must be a non-blank string that is a valid data source name.  For a complete list of available data sources, please refer to <insert reference here>.  If the data source cannot be found, then an exception will be thrown.

inputFields

InputFields

Yes

The inputFields parameter contains a list of NameValuePair objects, each of which describes a single input field.  For example, a Medicare card number would be a single NameValuePair, with name = “Medicare card number” and value = “2xxxxxxxxx”.

optionalData

List<NameValuePair>

No

The optionalData parameter is used to send additional request information to greenID.  The various parameters are mentioned as required in this documentation.

 

Return Value

This method returns CurrentStatus object.  The following members will be populated:

  • verificationResult – this  field contains the results of checks that have been performed to date, and the person’s current verification status.
  • sourceList – this field will contain an updated list of data sources, which will help the person become fully verified.  This field is provided for convenience, so that the caller does not need to call GetSources immediately after this call.

Exceptions

The following exceptions may be thrown:

  • InvalidCustomerIdException – the accountId input parameter was missing or not recognised.

  • InvalidCertificateException – if certificates are used to connect, then this exception may be thrown if an invalid certificate is used.

  • InvalidPasswordException – the password input parameter was missing or incorrect.

  • A runtime exception will be thrown if the person has already completed the check, or if the user has been locked out of the data source, for example, by too many previous attempts.

  • IllegalStateException – if the check identified by the sourceId input parameter cannot be found.

GetUserToken

This method is used to get a token that can be used for a verification session within the API.  This also extends to use via the SimpleUI.  Please consult greenID Web for full details.  If you need to implement the "returning person" scenario using the SimpleUI, then you will need a token issued by this method.

Input Parameters

 

Name

Type

Required

Restrictions

account

String

Yes

 

password

String

Yes

 

verificationId

String

Yes

The verificationId parameter must be a valid verificationId (or userId) that has been previously registered, via the RegisterUser orRegisterVerification web method, with greenID.  If the verificationId/userId cannot be found in the greenID database, then an InvalidTokenException will be thrown.  

optionalData

List<NameValuePair>

NoThe optionalData parameter is used to send additional request information to greenID.  The various parameters are mentioned as required in this documentation.

Return Value

This method returns a String object that contains the token.

Exceptions

The following exceptions may be thrown:

  • InvalidPasswordException – the account or password input parameters were missing or incorrect.

  • InvalidCertificateException – if certificates are used to connect, then this exception may be thrown if an invalid certificate is used.

  • VerificationIdNotFoundException – if the verificationId cannot be found.

  • InvalidFieldException - if one of the fields violates the validation constraints.

  • InvalidSourceIPAddressException - if IP address restriction is enabled and the IP address of the requesting client is not an allowed IP address, then this exception will be thrown.

  • VerificationFaultException - there was an error while attempting to contact the data source.

  • SystemException - there was an internal error in greenID while processing the request.