New Zealand

Here are the details to validate tax registration numbers as per New Zealand's validation rules:

Country Code: NZ

REPORTING_TYPE_CODE/ Validation Type

REPORTING_TYPE_NAME

No of Digits

Format

Check Digit

Check Digit Validation

Default Validation

Example TRN No

ORA_NZ_BN

New Zealand Business Number

13

Numeric Characters Only

Yes, 13th Digit (Last Digit)

It is a 3-step process as stated below:

  1. Multiply value of each position left to right all 12 digits by 1,3,1,3,1,3,1,3,1,3,1,3.

  2. Add the resulting 12 products and arrive at a sum.

  3. Subtract the sum from nearest equal or higher multiple of ten = Check Digit.

Good:

  • 9429039501974

Bad:

  • AR1234567 - Invalid format, only numbers are allowed

  • 171003406287654 -Invalid format, too long

  • 1710034062 -Invalid format, too short

  • 9429039501976 -Invalid check digit

ORA_NZ_GST

New Zealand Goods and Services Tax Registration Number

8 or 9

Numeric Characters Only

Yes, last digit

  1. If the IRD number is < 10-000-000 or > 150-000-000 then the number is invalid. (This step ensures that the IRD number is in the al-ready issued range, or is in the range expected to be issued in the next 10 years.)

  2. Check Digit Validation:

    1. Remove the trailing check digit.

    2. If the resulting number is seven digits long, pad to eight digits by adding a leading zero.

    3. Multiply each digit with a 'weighting factor' as per its position. Coefficient: 3, 2, 7, 6, 5, 4, 3, 2.

    4. Multiply each digit with a 'weighting factor' as per its position. Coefficient: 3, 2, 7, 6, 5, 4, 3, 2.

    5. Divide the sum by 11.

      • If the remainder is 0 then the calculated check digit is 0.

      • If the remainder is not 0 then subtract the remainder from 11, giving the calculated check digit.

        1. If the calculated check digit is in the range 0 to 9, then that digit is the check digit.

        2. If the calculated check digit is 10,then follow the below steps.

        1. Multiply each digit with a 'weighting factor' as per its position. Coefficient: 7, 4, 3, 2, 5, 2, 7, 6.

        2. Multiply each digit with a 'weighting factor' as per its position. Coefficient: 7, 4, 3, 2, 5, 2, 7, 6.

        3. Multiply each digit with a 'weighting factor' as per its position. Coefficient: 7, 4, 3, 2, 5, 2, 7, 6.

        • Multiply each digit with a 'weighting factor' as per its position. Coefficient: 7, 4, 3, 2, 5, 2, 7, 6.

        • Multiply each digit with a 'weighting factor' as per its position. Coefficient: 7, 4, 3, 2, 5, 2, 7, 6.

        1. Multiply each digit with a 'weighting factor' as per its position. Coefficient: 7, 4, 3, 2, 5, 2, 7, 6.

        2. Multiply each digit with a 'weighting factor' as per its position. Coefficient: 7, 4, 3, 2, 5, 2, 7, 6.

Good:

  • 49091850

  • 35901981

  • 49098576

  • 136410132

Bad:

  • AR1234567 - Invalid format, only numbers are allowed

  • 171003406287654 -Invalid format, too long

  • 136410133 -Invalid check digit

  • 9125568- Not in the range < 10-000-000 or > 150-000-000