NZ Post
The Autohive NZ Post integration lets your agent look up New Zealand addresses using NZ Post address data. Your agent can use it to:
- Search addresses. Find full addresses from a few words, such as a street number and street name.
- Get address details. See the postcode, suburb, city, coordinates, and rural delivery status.
- Check addresses. Compare an address you hold against NZ Post records and see how well it matches.
- Check mail delivery. See whether NZ Post reports mail delivery to an address.
- Get postal details. Look up the formatted postal address for a Delivery Point Identifier (DPID).
Search Addresses and Get Address use the ParcelAddress API. Use these actions to collect addresses for NZ Post shipping labels. NZ Post ParcelAddress rules
Set up the integration
You do not need an NZ Post account or an API key. Autohive connects to NZ Post for you. An API key is a secret code that lets one app act for you in another.
- Open your agent in Autohive.
- In Agent settings, find Add integrations and agents, click Add integrations, and select NZ Post.
- Save your agent.
To check the connection requirements, open Integrations from your profile menu, select NZ Post, and choose Accounts.

Use the integration
A capability is one action your agent can take. You can turn each NZ Post capability on or off.
- Follow our Create your first agent guide to build an agent.
- Turn on the NZ Post capabilities you want your agent to use.
- Start prompting your agent with the address task you want to do.
Available capabilities
A few terms show up below:
- A DPID (Delivery Point Identifier) is the number NZ Post gives to each mail delivery point.
- An address ID is a different number. It comes from Search Addresses and works only with Get Address.
- A match score is how closely an address you typed fits an NZ Post record.
- A partial address is a street, suburb, or town that is not yet a full delivery address.
Search for an address
- Search Addresses: Find New Zealand addresses from part of an address.
- Needs at least four characters, such as
151 Victoria. - Optional number of results, from 1 to 10. The default is 10.
- Returns the full address, an address ID, and a DPID when NZ Post has one.
- Needs at least four characters, such as
- Search Partial Addresses: Get suggestions for streets, suburbs, towns, and postcodes.
- Needs a few letters, such as
willis. - Optional number of results, from 1 to 10.
- Returns suggestions with a partial address ID. A suggestion is not a confirmed delivery address.
- Needs a few letters, such as
Get address details
- Get Address: See the details for one address.
- Needs the address ID from Search Addresses.
- Returns the postcode, suburb, city, coordinates, and whether it is a rural delivery address.
- Get Postal Address Details: See the formatted postal address for one delivery point.
- Enter the DPID from Check Address or Search Addresses as text.
- Returns address lines, postcode, coordinates, and delivery details.
Check an address
- Check Address: Compare an address against NZ Post records.
- Needs the first address line. Lines 2 to 5 are optional.
- Optional number of matches, from 1 to 10.
- Returns possible matches with a DPID, a match score, and a mail delivery flag.
- Does not pick a match for you or fix the address.
Key features
Matches, not answers
- Check Address lists candidates. It does not choose one.
- A high match score does not prove an address is correct.
- Ask your agent to show the candidates when more than one is close.
Delivery flag
- Each match has a delivery flag.
Ymeans NZ Post reports mail delivery.Nmeans it does not. - A rural postal address marked
Nis not valid for mail delivery. - The flag is separate from the match score. Check both.
Three kinds of ID
- Use the address ID from Search Addresses with Get Address.
- Use a DPID with Get Postal Address Details.
- Search Partial Addresses returns a partial address ID. No NZ Post action accepts this ID.
Clear results
- An empty list means NZ Post found no matches. It is not an error.
- Some responses include a warning when NZ Post returns only part of the results. The warning is kept in the result.
- Errors from NZ Post come back as a plain error message.
Common use cases
Collect addresses for NZ Post shipping labels
- Use Search Addresses to show possible delivery addresses as a customer types.
- Use Get Address to get the suburb and postcode for the selected address before you create the shipping label.
Check a postal address
- Use Check Address to find possible matches and check the mail delivery flag.
- Use the selected match’s DPID with Get Postal Address Details to get the formatted address.
Rural delivery checks
- Find out if an address is a rural delivery address.
- Check that a rural postal address can receive mail.
Notes
- New Zealand only. Searches cover New Zealand addresses.
- Ten results at most. Each search returns up to ten results. There are no extra pages.
- Shared limits. NZ Post sets a limit on how many requests all Autohive customers can make each second. If you hit it, wait and try again.
- Search words. NZ Post ignores punctuation in a search, except forward slashes.
- Look-up only. This integration does not create shipping labels, book pickups, or get shipping rates.
- Keep a backup. Let people type an address by hand if NZ Post is not available.
Remove the integration
To stop using NZ Post, open your agent’s settings and remove NZ Post from Add integrations and agents. Nothing else needs to be disconnected.
Data impact: Removing NZ Post does not change any data held by NZ Post.