python-stdnum icon indicating copy to clipboard operation
python-stdnum copied to clipboard

Add validation for New Zealand Business Number (NZBN)

Open unho opened this issue 5 years ago • 2 comments

  • https://www.nzbn.govt.nz/whats-an-nzbn/about/
  • https://www.nzbn.govt.nz/using-the-nzbn/implementation-tools-and-resources/

unho avatar Jun 02 '19 10:06 unho

Sorry to bump this after such a long period, is there any intention of this being added?

CryoViking avatar Mar 12 '24 06:03 CryoViking

I'm personally a little busy lately so I can't make any realistic promises on this. However, you can help researching some details of the format.

All I was able to find in a quick search is that it is supposed to be 13 digit GS1 Global Location Number and there is an API available for lookups. That means that you can probably use the stdnum.ean module to validate the number after checking that the length is 13 digits.

arthurdejong avatar Mar 17 '24 13:03 arthurdejong