You will need a building consent, and you may need a resource consent to install a new wastewater system or to make proposed alterations to that system. The consents ensure the system complies with the building code and does not endanger the environment or public health.
You may need a resource consent for discharging the treated wastewater (water from showers, baths, washing machines and toilets) onto or into your land.