Entity lookup (PREVIEW)

Note

This endpoint is currently in preview and is subject to breaking changes. It is based on a different request format from the rest of the bronID API.

Authentication

Read the authentication guide at API Authentication (PREVIEW)

Request format

Method

GET

Parameters

NameTypeDescription
country (required)string3 letter country ISO
id (required)stringThe unique identifier of the entity to look up. This is a identifier that is specific to the country. For example, in Australia, this would be an ABN or ACN, in New Zealand it would be a NZBN.

Response

The response is a JSON object.

NameTypeDescription
matchbooleanIndicates if the entity was found.
countrystring3 letter country ISO
namestringThe main name of the entity.
namesarrayAn array of objects containing the different names the entity is known by.
entityNumberstringThe main entity number of the entity found based on the lookup.
entityNumbersarrayAn array of objects containing the different entity numbers (ABN, ACN, NZBN etc.) the entity is known by. These are dependent on the country.
entityStatusstringText description of the entity status as found in the registry.
entityTypestringText description of the bronID entity type. See entity types
entityTypeCodestringThe value of the entity type as it should be submitted to bronID verifications. See entity types
addressobject or nullThe address of the entity.

Names array

The names array contains the different names the entity is known by.

NameTypeOptionsDescription
valuestringThe name of the entity.
typestringbusinessName, tradingName, formerNameThe type of the name.

Entity numbers array

The entity numbers array contains the different entity numbers the entity is known by.

NameTypeOptionsDescription
valuestringThe entity number.
typestringABN, ACN, NZBN, etc.The type of the entity number. The options are dependent on the country.

Address object

The address object contains the address of the entity.

NameTypeDescription
textstring or nullThe address of the entity as a single line of text.
statestring or nullThe state of the address.
postcodestring or nullThe postcode of the address.

API call

GET
/v5/lookup
// api endpoint
const apiEndpoint = 'https://dev.bronid.com/v5/lookup';
// lookup parameters
const queryParams = {
	country: 'AUS',
	id: '33051775556',
};

// Convert the query parameters to a query string
const queryString = new URLSearchParams(queryParams).toString();
// add the query string with a "?" prefix e.g. ?country=AUS&id=33051775556
const urlWithQuery = `${apiEndpoint}?${queryString}`;

// API authentication
const headers = {
	Authorization: 'ApiKey XL7ULiU6B4QE9Y2iWFZnhtMDKFN2:api_sec_NJAtNcRtUrPlf7xYDrMNP9URI-ZfN314',
};

// Perform the fetch request
fetch(urlWithQuery, {
	method: 'GET',
	headers: headers,
})
	.then(response => {
		if (!response.ok) {
			throw new Error(`HTTP error! Status: ${response.status}`);
		}

		return response.json(); // Parse JSON response
	})
	.then(data => {
		console.log('Response data:', data);
	})
	.catch(error => {
		console.error('Fetch error:', error);
	});

Sample response (matched):

HTTP Status 200

{
	"match": true,
	"country": "AUS",
	"name": "TELSTRA CORPORATION LIMITED",
	"names": [
		{
			"value": "TELSTRA INFRACO",
			"type": "businessName"
		},
		{
			"value": "TELECOM AUSTRALIA",
			"type": "businessName"
		},
		{
			"value": "TELSTRA",
			"type": "tradingName"
		},
		{
			"value": "TELSTRA CORPORATION LIMITED",
			"type": "tradingName"
		}
	],
	"entityNumber": "33051775556",
	"entityNumbers": [
		{
			"value": "33051775556",
			"type": "ABN"
		},
		{
			"value": "051775556",
			"type": "ACN"
		}
	],
	"entityStatus": "Active",
	"entityType": "Australian Public Company",
	"entityTypeCode": "publicCompany",
	"address": {
		"text": "VIC 3000",
		"state": "VIC",
		"postcode": "3000"
	}
}

Sample response (not matched):

HTTP Status 404

{
	"match": false,
	"message": "Could not find entity."
}