curl --request POST \
--url https://api.anysite.io/api/nzbn/companies \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"nzbn": "<string>",
"timeout": 300
}
'import requests
url = "https://api.anysite.io/api/nzbn/companies"
payload = {
"nzbn": "<string>",
"timeout": 300
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({nzbn: '<string>', timeout: 300})
};
fetch('https://api.anysite.io/api/nzbn/companies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anysite.io/api/nzbn/companies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'nzbn' => '<string>',
'timeout' => 300
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/nzbn/companies"
payload := strings.NewReader("{\n \"nzbn\": \"<string>\",\n \"timeout\": 300\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/nzbn/companies")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"nzbn\": \"<string>\",\n \"timeout\": 300\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/nzbn/companies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"nzbn\": \"<string>\",\n \"timeout\": 300\n}"
response = http.request(request)
puts response.read_body[
{
"nzbn": "<string>",
"name": "<string>",
"@type": "NzbnCompany",
"entity_status_code": "<string>",
"entity_status": "<string>",
"entity_type_code": "<string>",
"entity_type_description": "<string>",
"registration_date": "<string>",
"last_updated_at": "<string>",
"source_register": "<string>",
"source_register_id": "<string>",
"australian_business_number": "<string>",
"australian_company_number": "<string>",
"overseas_company": false,
"country_of_origin": "<string>",
"annual_return_filing_month": 123,
"annual_return_last_filed": "<string>",
"financial_report_filing_month": 123,
"has_constitution_filed": false,
"extensive_shareholding": false,
"removal_commenced": false,
"number_of_shares": 123,
"charities_number": "<string>",
"balance_date": "<string>",
"emails": [
{
"@type": "NzbnEmail",
"email_address": "<string>",
"purpose": "<string>",
"start_date": "<string>"
}
],
"phones": [
{
"@type": "NzbnPhone",
"phone_number": "<string>",
"country_code": "<string>",
"area_code": "<string>",
"purpose": "<string>",
"start_date": "<string>"
}
],
"websites": [
"<string>"
],
"addresses": [
{
"@type": "NzbnAddress",
"address_type": "<string>",
"care_of": "<string>",
"address_line_1": "<string>",
"address_line_2": "<string>",
"address_line_3": "<string>",
"address_line_4": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"start_date": "<string>",
"end_date": "<string>"
}
],
"industry_classifications": [
{
"@type": "NzbnIndustryClassification",
"code": "<string>"
}
],
"trading_names": [
{
"name": "<string>",
"@type": "NzbnTradingName",
"start_date": "<string>",
"end_date": "<string>"
}
],
"trading_areas": [
{
"trading_area": "<string>",
"@type": "NzbnTradingArea",
"start_date": "<string>",
"end_date": "<string>"
}
],
"roles": [
{
"@type": "NzbnRole",
"role_type": "<string>",
"role_status": "<string>",
"first_name": "<string>",
"middle_names": "<string>",
"last_name": "<string>",
"entity_name": "<string>",
"entity_nzbn": "<string>",
"start_date": "<string>",
"end_date": "<string>",
"addresses": [
{
"@type": "NzbnAddress",
"address_type": "<string>",
"care_of": "<string>",
"address_line_1": "<string>",
"address_line_2": "<string>",
"address_line_3": "<string>",
"address_line_4": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"start_date": "<string>",
"end_date": "<string>"
}
]
}
],
"share_allocations": [
{
"@type": "NzbnShareAllocation",
"allocation": 123,
"shareholders": [
{
"@type": "NzbnShareholder",
"type": "<string>",
"first_name": "<string>",
"middle_names": "<string>",
"last_name": "<string>",
"full_name": "<string>",
"entity_name": "<string>",
"entity_nzbn": "<string>",
"appointment_date": "<string>",
"vacation_date": "<string>",
"address": {
"@type": "NzbnAddress",
"address_type": "<string>",
"care_of": "<string>",
"address_line_1": "<string>",
"address_line_2": "<string>",
"address_line_3": "<string>",
"address_line_4": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"start_date": "<string>",
"end_date": "<string>"
}
}
]
}
],
"insolvencies": [
{
"@type": "NzbnInsolvency",
"insolvency_type": "<string>",
"commenced": "<string>",
"appointees": [
{
"@type": "NzbnInsolvencyAppointee",
"first_name": "<string>",
"middle_names": "<string>",
"last_name": "<string>",
"full_name": "<string>",
"organisation_name": "<string>",
"email": "<string>",
"appointment_date": "<string>",
"vacation_date": "<string>",
"address": {
"@type": "NzbnAddress",
"address_type": "<string>",
"care_of": "<string>",
"address_line_1": "<string>",
"address_line_2": "<string>",
"address_line_3": "<string>",
"address_line_4": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"start_date": "<string>",
"end_date": "<string>"
}
}
]
}
],
"ultimate_holding_company": {
"@type": "NzbnUltimateHoldingCompany",
"name": "<string>",
"type": "<string>",
"number": "<string>",
"nzbn": "<string>",
"country": "<string>",
"effective_date": "<string>"
}
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}/nzbn/companies
Get a New Zealand business’s full registry record from the NZBN register by its New Zealand Business Number: name, entity status and type, registration date, Australian Business Number, directors and officers, shareholders and share allocations, trading names and areas, industry classification, registered/service/postal addresses, contact details, annual return filing month, constitution status and insolvency history.
Price: 1 credit
⚠️ Common errors: 412: No business found for the given NZBN
curl --request POST \
--url https://api.anysite.io/api/nzbn/companies \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"nzbn": "<string>",
"timeout": 300
}
'import requests
url = "https://api.anysite.io/api/nzbn/companies"
payload = {
"nzbn": "<string>",
"timeout": 300
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({nzbn: '<string>', timeout: 300})
};
fetch('https://api.anysite.io/api/nzbn/companies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anysite.io/api/nzbn/companies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'nzbn' => '<string>',
'timeout' => 300
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/nzbn/companies"
payload := strings.NewReader("{\n \"nzbn\": \"<string>\",\n \"timeout\": 300\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/nzbn/companies")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"nzbn\": \"<string>\",\n \"timeout\": 300\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/nzbn/companies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"nzbn\": \"<string>\",\n \"timeout\": 300\n}"
response = http.request(request)
puts response.read_body[
{
"nzbn": "<string>",
"name": "<string>",
"@type": "NzbnCompany",
"entity_status_code": "<string>",
"entity_status": "<string>",
"entity_type_code": "<string>",
"entity_type_description": "<string>",
"registration_date": "<string>",
"last_updated_at": "<string>",
"source_register": "<string>",
"source_register_id": "<string>",
"australian_business_number": "<string>",
"australian_company_number": "<string>",
"overseas_company": false,
"country_of_origin": "<string>",
"annual_return_filing_month": 123,
"annual_return_last_filed": "<string>",
"financial_report_filing_month": 123,
"has_constitution_filed": false,
"extensive_shareholding": false,
"removal_commenced": false,
"number_of_shares": 123,
"charities_number": "<string>",
"balance_date": "<string>",
"emails": [
{
"@type": "NzbnEmail",
"email_address": "<string>",
"purpose": "<string>",
"start_date": "<string>"
}
],
"phones": [
{
"@type": "NzbnPhone",
"phone_number": "<string>",
"country_code": "<string>",
"area_code": "<string>",
"purpose": "<string>",
"start_date": "<string>"
}
],
"websites": [
"<string>"
],
"addresses": [
{
"@type": "NzbnAddress",
"address_type": "<string>",
"care_of": "<string>",
"address_line_1": "<string>",
"address_line_2": "<string>",
"address_line_3": "<string>",
"address_line_4": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"start_date": "<string>",
"end_date": "<string>"
}
],
"industry_classifications": [
{
"@type": "NzbnIndustryClassification",
"code": "<string>"
}
],
"trading_names": [
{
"name": "<string>",
"@type": "NzbnTradingName",
"start_date": "<string>",
"end_date": "<string>"
}
],
"trading_areas": [
{
"trading_area": "<string>",
"@type": "NzbnTradingArea",
"start_date": "<string>",
"end_date": "<string>"
}
],
"roles": [
{
"@type": "NzbnRole",
"role_type": "<string>",
"role_status": "<string>",
"first_name": "<string>",
"middle_names": "<string>",
"last_name": "<string>",
"entity_name": "<string>",
"entity_nzbn": "<string>",
"start_date": "<string>",
"end_date": "<string>",
"addresses": [
{
"@type": "NzbnAddress",
"address_type": "<string>",
"care_of": "<string>",
"address_line_1": "<string>",
"address_line_2": "<string>",
"address_line_3": "<string>",
"address_line_4": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"start_date": "<string>",
"end_date": "<string>"
}
]
}
],
"share_allocations": [
{
"@type": "NzbnShareAllocation",
"allocation": 123,
"shareholders": [
{
"@type": "NzbnShareholder",
"type": "<string>",
"first_name": "<string>",
"middle_names": "<string>",
"last_name": "<string>",
"full_name": "<string>",
"entity_name": "<string>",
"entity_nzbn": "<string>",
"appointment_date": "<string>",
"vacation_date": "<string>",
"address": {
"@type": "NzbnAddress",
"address_type": "<string>",
"care_of": "<string>",
"address_line_1": "<string>",
"address_line_2": "<string>",
"address_line_3": "<string>",
"address_line_4": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"start_date": "<string>",
"end_date": "<string>"
}
}
]
}
],
"insolvencies": [
{
"@type": "NzbnInsolvency",
"insolvency_type": "<string>",
"commenced": "<string>",
"appointees": [
{
"@type": "NzbnInsolvencyAppointee",
"first_name": "<string>",
"middle_names": "<string>",
"last_name": "<string>",
"full_name": "<string>",
"organisation_name": "<string>",
"email": "<string>",
"appointment_date": "<string>",
"vacation_date": "<string>",
"address": {
"@type": "NzbnAddress",
"address_type": "<string>",
"care_of": "<string>",
"address_line_1": "<string>",
"address_line_2": "<string>",
"address_line_3": "<string>",
"address_line_4": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"start_date": "<string>",
"end_date": "<string>"
}
}
]
}
],
"ultimate_holding_company": {
"@type": "NzbnUltimateHoldingCompany",
"name": "<string>",
"type": "<string>",
"number": "<string>",
"nzbn": "<string>",
"country": "<string>",
"effective_date": "<string>"
}
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
API token from the dashboard
Headers
Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes