You'll need to make sure you're a non-resident taxpayer. You do this by working out your tax residency status. This is different from your immigration status.
In general, non-resident taxpayers pay tax to New Zealand on income they earn from New Zealand sources. If you come from a country or territory having a double tax agreement with New Zealand, this may affect how you're taxed.
There are special rules which apply to certain non-resident taxpayers. These rules may, for example, exempt certain income if the conditions are met or set a special tax rate. We have identified some of these special situations.
International tax can be complex and you may want to consult a tax professional if you're in doubt about your situation.