Loading...
Sign in to see the examples with your own API key.

New Zealand addresses

Customers across the Tasman? Switch on the New Zealand addresses add-on and the same subscription finds New Zealand addresses too, at their own two endpoints: NZ Autocomplete and NZ Get.

Switching it on

On the Add-ons tab of your console, or through the API with your subscription's admin key. Either way it reaches the NZ endpoints within a minute.

PUT https://api.getaddress.io/subscription/add-ons/nz-addresses?api-key={your-admin-key} 

Body

{
    "enabled": true
}

Response

{
    "name": "main",
    "add_on": "nz-addresses",
    "enabled": true,
    "add_ons": [ "nz-addresses" ]
}

Send {"enabled": false} to switch it off. The address API key is refused here (403); only the admin key can change add-ons. An add-on name that does not exist is a 404. A 400 means nothing changed: the subscription is Free, or the card was declined.

Attribution

New Zealand address data is LINZ's, under CC BY 4.0. If you display or redistribute it, credit LINZ as the Data Attribution page shows.

Top