Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 54 Next »

API Versions

This documentation relates to Version 1, the current version of the greenID Business API. Version 1 became available to customers as of 

Authentication

HTTP basic authentication is used for accessing the endpoint. The username is your greenID customer account ID that you use for greenID Business, and the password is your greenID web services password for that account. 

<<KS: Is the above sufficient for a developer to know how to use this?>>

Exceptions and Error Handling

We return an error response in JSON format if an exception occurs. An example of this is as follows:

{
  "error": "Not found",
  "message": "No verification with ID: 1775",
  "status": 404
}

Example errors include:

<<KS: I think we need to include details of what is validated and the status/error codes returned for each? Check std API docs>>

  • Not Found (404)
  • Unauthorized (401)
  • Internal Server Error (500)

Methods Available

The following webservice methods are available for the greenID Business API version 1:

get BusinessVerification: <<KS - make this a link to the new page for this. Text below can be an 'excerpt' and use 'excerpt include' here?>>

The greenID Business API ‘get Business Verification’ method allows customers to extract the current details of a business verification. Given a greenID Business reference number, the API call returns information about the top-level business, sub-businesses, and all associated individuals (including their verification status).

Additional methods will be made available in future, for example a method to create a new business verification via the API.

get BusinessVerification. <<KS - I think this needs to be split out to a new page?>>

<<KS: Add this text as an 'excerpt on the new page'>>

The greenID Business API ‘get Business Verification’ method allows you to extract the current details of a business verification, including it's verification status. Given a greenID Business reference number, the API call returns information about the business to be verified (i.e. the 'top level' or 'root business'), it's sub-businesses (for example shareholder businesses), and all associated individuals (including their verification status).

The 'get BusinessVerification' method is available as a RESTful endpoint. The URL to call is as follows:

<<KS: Do we need to specify something in the above text about using 'get' in conjunction with the below url?? Jo to advise... >> 

http://au.vixverify.com/vixbiz/api/v1/businessVerification/<verification_reference_id>

Input Parameters

NameTypeRequiredDescription
verification_reference_idStringYes

The <verification_reference_id> is the unique 'Ref. No' of the business verification within the greenID Business system.

This must be obtained from the greenID Admin Panel version of the system. It can be found on the greenID Business Admin page where all your business verifications are listed, or on the 'Verify a business' details page of the required business verification.

Output

The output from the get BusinessVerification call will be in JSON format, and contains four main sections:

  1. businessVerificationReference
  2. Entities
  3. Relationships
  4. rootBusiness

An entity could be an individual or business, and relationships are the connections between different entities. Each of these will have a unique ID.

<<KS: Describe rootBusiness. Should it be listed first? Think maybe we need a bit more info in this section to describe each section?>>

businessVerificationReference

Field NameDescriptionTypeExample
businessVerificationReferenceThe value of the verification_reference_id that was requested Integer1097

Entities

The 'entities' section contains details of the relevant parties within the business. There are two types of entities which can be contained within this section - individuals and businesses. The type of entity is specified by the 'entityType'. A particular entity may be present within multiple 'relationships' within the business (for example as a director and as a shareholder), but they should only be represented once within the entities section. For example: If individual 'Jack Black' is both a director and shareholder, there will only be one entity returned for him*

*Note: For an individual occurring in multiple places within a business structure to be recognised as the same 'entity', their name and address as retrieved from the business register (or manually captured for manually added individuals) must be identical - else they will be assumed to be different 'entities' (i.e. different people) and there will then be more than one entry in the entities section for them.

The following section provides details of the fields in each entity structure.

Entity Object (individual)

<<KS: since order of the fields returned is not guaranteed, should we order them logically within the docs e.g. all name fields together? They do however generally appear in the order specified below, so perhaps we leave it?

Also - there are many fields repeated for business and for individual, could they rather be defined only once?>> 

Field NameDescriptionTypeExample
addressA structure encoding the address of the entity Address-
dataSource

Details of the data source (e.g. a company register) from which this entity's details were retrieved.

<<KS: I can't see that a 'Datasource' structure is being returned. Has this changed? 'dataSource' seems to just have the description of the data source now - no 'type'>>

DataSource

<<??>>

-
dobDate of birth for this individualString"25/05/1947"
entityTypeThe type of this entity. (Possible values are 'individual' and 'business')String"individual"
fromDataSource

Whether or not details about this entity were obtained from a business register* (i.e. this will be 'true' if if the results from a lookup of a business on a business register included details of this individual. Example: The results of lookup of a company included details of an individual who is a director).

Boolean"true" or "false"
givenNameThe given name of this individualString"John"
idThe unique ID of this entityInteger789112
middleNamesMiddle name(s) for this individualString"Clive"
notesA list of notes associated with this entity

List of Notes

-
surnameThe surname of this individualString"Smith"
verificationA structure encoding verification details for the entityVerification-
verificationNeverRequired

Whether or not verification is required for this entity

If 'true', then this entity does not need to be verified within any relationship within the business structure in order for the overall business verification to be 'verified'.

Boolean"true" or "false"

Entity Object (Business)

Field NameDescriptionTypeExample
addressA structure encoding the address of the entity <<KS: Clarify this... if a business, does it only have country code? Doesn't always seem to have this though?>>Address-
businessNumberThe business number for this entity. This will be the business number for the business as registered on the stated 'dataSource'. Example: if the business was retrieved from the NZBN Register, then the business number will be the NZBN. String"111307361"
businessStatusThe status of the business as returned from a business register. (Possible values will differ dependent on the business register)String"Registered"
businessSubtypeThe business subtypeString"AU Limited Company"
businessTypeThe type of businessString"company"
countryOfRegistrationThe country where the business is registered, in the form of a two-letter country code. This will only be populated if the business is registered on the stated business register (see dataSource). String"AU"
dataSourceDetails of the data source (i.e. business register) from which this entity's details were retrieved.String"the New Zealand Business Number Register"
documentsA list of documents associated with this businessList of Documents-
entityTypeThe type of this entityString"business"
existenceVerifiedWhether or not the existence of this business has been verified. Existence is verified either by the business being found on a business register (see foundInRegister), or by the upload and verification of supporting documents.Boolean"true" or "false"
foundInRegister

Whether or not this business was found on a business register 

(i.e. this will be 'true' if a lookup was performed against a business register using the business number, the business was successfully found and it's details retrieved)

Boolean"true" or "false"
fromDataSource

Whether or not this entity came from a data source (e.g. a lookup of a company register).

Whether or not details about this entity were obtained from a business register (i.e. this will be 'true' if:

  • this business was found via a lookup against a business register (in this case 'foundInRegister' will also be true) OR
  • the results from a lookup of a business on a business register included a reference to this business. Example: The results of lookup of a company included details of this business as a shareholder.
Boolean"true" or "false"
idThe unique ID of this entityInteger1096
nameThe name of this business (i.e. the legal entity name)String"Acme Pty Ltd"
notesA list of notes associated with this entityList of Notes-
verificationA structure encoding verification details for the entityVerification-
verificationNeverRequired

Whether or not verification is required for this entity

If 'true', then this entity does not need to be verified within any relationship within the business structure in order for the overall business verification to be 'verified'.

Boolean"true" or "false"

Address Object

For business entities: if the business was not found on a business register via a search, then the 'location' of the business is indicated by the country code within the Address. No other address fields are currently provided for a business. If the business was found on a business register, then the Address will be empty but the 'country of registration' will be provided. 

For individual entities: If the address was not validated, then only the country and the 'full address' will be provided. If the address was validated, then the individual address fields populated will depend on the country and the type of address. 


Field NameDescriptionTypeExample
countryCodeThe address country code i.e. a two digit code.String"NZ"
countryNameThe human-readable version of the country name.String"New Zealand"
fullAddressThe full address in a single StringString"67 HAVEN ROAD, NELSON 7010, NEW ZEALAND"
postcodeThe address postcode (only available if address has been validated)String"7010"
streetNameThe address street name (only available if address has been validated)String"HAVEN"
streetNumberThe street number (only available if address has been validated)String"67"
streetTypeThe type of street (only available if address has been validated)String"ROAD"
townCity

The town or city of the address (only available if address has been validated)

Only applicable to New Zealand addresses

String"NELSON"
suburbThe suburb of the address (only available if address has been validated)String"PAPAMOA BEACH"
state

The abbreviation for the state (only available if address has been validated)

Only applicable to Australian addresses 

String"NSW"

DataSource Object

<<KS: Don't think this exists anymore...>>

Field NameDescriptionTypeExample
nameThe human-readable name of this data sourceString"the New Zealand Business Number Register"
typeThe type of the business returnedString"company (nzco)"

Document Object

Field NameDescriptionTypeExample
creationTimeThe date and time when this document was created (uploaded). Format is UTC (Universal Time Coordinated)String"2018-08-15 06:18:19.929+0000"
documentURLA URL where this document can be downloaded fromString"https://au.vixverify.com/vixbiz/api/v1/document/1854"
evidenceTypeThe type of evidence that this document providesString"Statutory declaration"
fileSizeThe size of the document file, in bytes.Integer297054
nameThe original document filename String"file.pdf"
verificationThe verification associated with this documentVerification-

Note Object

Field NameDescriptionTypeExample
authorThe author of a noteStringjohn.doe@example.com
context

If present, the context in which the note was added e.g. when exempting an entity from verification etc. 

<<KS: Do we know the possible values? If so, we should list these here>>

StringexemptFromVerification
creationTimeA timestamp for when this note was created. Format is UTC (Universal Time Coordinated) String2018-08-08 00:00:09.217+0000
textThe note textString"A note"

Verification Object

Field NameDescriptionTypeExample
dateDueThe due date for this verificationString2018-08-08 00:00:09.217+0000
dateNominatedThe date that this verification was nominated (created)String2018-08-07 23:16:47.065+0000
greenIDVerificationIdOnly returned if the verification is for an Individual, and the individual is being verified via greenID. This is the verification identifier within the greenID core system for the individual. StringpnP7urdr
status

The status of this verification

<<KS: Can we list all possible values and what object types applicable to?>>

String"Verified"

Relationships

Within a business structure, there are numerous 'relationships' between the entities (individuals and businesses). Each of the entities are defined within the 'Entities' structure, and then details of how they are related to each other will be provided in this section. A single entity (e.g. a particular individual or business) may be involved in multiple relationships within the business.

Each relationship has a relationship 'type', and the 2 participants in that relationship - the 'relatedEntity' and the 'businessRelatedTo.

For example: 

A business 'Superclean Windows' has two shareholders 'Peter Jones' and 'Wonderful Windows'. 'Wonderful Windows' in turn has a shareholder of 'Jack Jones'. The relationships will be as follows:

  • a relationship with a type of' 'shareholder', Peter Jones will be the 'relatedEntity' and Superclean Windows will be the 'businessRelatedTo'. 
  • a relationship with a type of' 'shareholder', Wonderful Windows will be the 'relatedEntity' and Superclean Windows will be the 'businessRelatedTo'.
  • a relationship with a type of' 'shareholder', Jack Jones will be the 'relatedEntity' and Wonderful Windows will be the 'businessRelatedTo'.

Relationship Object

The following section gives details on the fields in each relationship structure.

Field NameDescriptionTypeExample
businessRelatedToThe ID of the business entity in which the relationship exists. An example would be the company that is owned by a shareholder (specified as the 'relatedEntity') in a shareholding relationship.Integer789587
fieldsA list of fields associated with this relationship. These provide information about the relationship, for example the percentage of shares held in a 'shareholder' relationship.List of Fields-
idThe ID of this relationshipInteger789557
relatedEntityThe ID of the entity which is related to the business specified in the "businessRelatedTo" field. An example would be the shareholder in a shareholding relationship. A related entity can be a business or an individual.Integer789558
typeThe type of this relationshipString"Company office holder", "Shareholder", "Ultimate Holding Company" etc.
verificationNotRequired

Whether or not the 'related entity' requires verification within the context of this relationship.

Note: an entity may be 'verificationNotRequired' in one relationship within the business, but still require verification due to their involvement in another relationship.

For example: Peter as a 10% shareholder does not require verification, but Peter as a director does require verification

Boolean"true" or "false"
verificationNotRequiredReasonIf 'verificationNotRequired' is true, this will detail why the entity is exempt from verification within the context of this relationship String"Ownership percentage is below threshold of 25"

Field Object

'Fields' are a collection of name / value pairs providing information about a relationship. The fields will vary depending on the country, business type, and the type of the relationship.

For example: A shareholder relationship may have fields for "allocationNumber", "ownershipPercentage" and "shareClassTitle", but a company office holder relationship may just have "type".

Field NameDescriptionTypeExample
nameThe name of this fieldString"controllerType", "additionalInformation", "allocationNumber", "shareAllocation", "totalSharesInCapitalGroup", "ownershipPercentage" etc.
valueIf present, gives the value of this field. If a field is not populated, then 'value' will not be present or will be empty.String"Director"
verificationThreshold

If present, gives the verification threshold for this field. Any value less than the verificationThreshold will result in the relationship defaulting to 'verification not required'.

Generally this only exists in relation to an ownership percentage.

String"25"

rootBusiness Object

This object provides details about the 'root business' that this overall business verification pertains to. This would be the business that you are aiming to verify and originally searched for or manually created. 

Field NameDescriptionTypeExample
addressA structure encoding the address of the entity. Only the country details will be populated. Address-
businessNumberThe business number for this entity. If the business was manually created or does not have a business number registered within the relevant country then this will not be provided.String"111307361"
businessStatusThe status of the business as returned from a business registerString"Registered"
businessTypeThe type of businessString"company"
countryOfRegistrationThe country where the business is registered, in the form of a two-letter country codeString"AU"
dataSourceDetails on the data source (e.g. a company register) used for getting information on this entity.DataSource-
documentsA list of documents associated with this entityList of Documents-
entityTypeThe type of this entityString"business"
existenceVerifiedWhether or not the existence of this entity has been verified or notBoolean"true" or "false"
foundInRegisterWhether or not this entity was found in a company registerBoolean"true" or "false"
fromDataSourceWhether or not this entity came from a data source (e.g. a lookup of a company register).Boolean"true" or "false"
idThe ID of this entityInteger1097
nameThe name of this businessString"Acme Pty Ltd"
notesA list of notes associated with this entityList of Notes-
verificationA structure encoding verification details for the entityVerification-
verificationNeverRequiredWhether or not verification is required for this entityBoolean"true" or "false"
  • No labels