# Add special party identifier which is not in python-stdnum

**URL:** https://discuss.tryton.org/t/add-special-party-identifier-which-is-not-in-python-stdnum/5378
**Category:** Developer
**Created:** [June 22, 2022, 4:17pm UTC](https://discuss.tryton.org/t/add-special-party-identifier-which-is-not-in-python-stdnum/5378 "2022-06-22T16:17:08Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)
#### Post date: [June 22, 2022, 4:17pm UTC](https://discuss.tryton.org/t/add-special-party-identifier-which-is-not-in-python-stdnum/5378/1 "2022-06-22T16:17:09Z")

</div>

For the Netherlands I’m missing the Business Number or Chamber of Commerce Number. This number is not in the python-stdnum package because it’s just a number and there is no validation or something like that.

How can I add that number to the list of identifiers on `party`? Do you accept a review which adds this to the list?

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [June 22, 2022, 4:25pm UTC](https://discuss.tryton.org/t/add-special-party-identifier-which-is-not-in-python-stdnum/5378/2 "2022-06-22T16:25:46Z")

</div>

> [@edbo](#):
>
> For the Netherlands I’m missing the Business Number or Chamber of Commerce Number. This number is not in the python-stdnum package because it’s just a number and there is no validation or something like that.

Are you sure there are any validation?

> [@edbo](#):
>
> How can I add that number to the list of identifiers on `party`? Do you accept a review which adds this to the list?

Well if it has a general enough usage, we can accept to add it.

---

<div class="post-metadata">

### Author: ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)
#### Post date: [June 22, 2022, 5:36pm UTC](https://discuss.tryton.org/t/add-special-party-identifier-which-is-not-in-python-stdnum/5378/3 "2022-06-22T17:36:25Z")

</div>

> [@ced](#):
>
> > [@edbo](#):
> >
> > For the Netherlands I’m missing the Business Number or Chamber of Commerce Number. This number is not in the python-stdnum package because it’s just a number and there is no validation or something like that.
> 
> Are you sure there are any validation?

You can enter some details on their website to see which company belongs to the number and they have an API where you have to pay for which does the same. The number itself allows the customer to check if you are the company who you are saying you are.  
More information about the number:  
[https://www.kvk.nl/english/registration/kvk-number-all-you-need-to-know/](https://www.kvk.nl/english/registration/kvk-number-all-you-need-to-know/)

> [@ced](#):
>
> > [@edbo](#):
> >
> > How can I add that number to the list of identifiers on `party`? Do you accept a review which adds this to the list?
> 
> Well if it has a general enough usage, we can accept to add it.

You can compare it with the German Company Register Number ([Unternehmensregister - Die zentrale Plattform für die Zugänglichmachung von Unternehmensdaten](https://www.unternehmensregister.de/ureg/?submitaction=language&language=en)) So basically every company in the Netherlands has one.

---

<div class="post-metadata">

### Author: ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)
#### Post date: [June 22, 2022, 5:39pm UTC](https://discuss.tryton.org/t/add-special-party-identifier-which-is-not-in-python-stdnum/5378/4 "2022-06-22T17:39:43Z")

</div>

> [@ced](#):
>
> Well if it has a general enough usage, we can accept to add it.

I imagine that when it is accepted, this will become available in the next major version (6.6) not a bugfix release (6.4.X) right?.

The identifiers are a global list defined in `party.py` Is is possible for the time being to add the new identifier to that list? I tried to do that, but it doesn’t show up in the configuration.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [June 22, 2022, 6:20pm UTC](https://discuss.tryton.org/t/add-special-party-identifier-which-is-not-in-python-stdnum/5378/5 "2022-06-22T18:20:22Z")

</div>

> [@edbo](#):
>
> > [@ced](#):
> >
> > Are you sure there are any validation?
> 
> You can enter some details on their website to see which company belongs to the number and they have an API where you have to pay for which does the same. The number itself allows the customer to check if you are the company who you are saying you are.

For me there is at least a validation about the length that it is 8 digits.  
So it could be proposed for inclusion in python-stdnum.  
Also as there is a service to check the existence, python-stdnum could also accept to have a method to call this API.

> [@edbo](#):
>
> I imagine that when it is accepted, this will become available in the next major version (6.6) not a bugfix release (6.4.X) right?.

Yes but I would prefer it to be in python-stdnum first.

> [@edbo](#):
>
> The identifiers are a global list defined in `party.py` Is is possible for the time being to add the new identifier to that list?

The Selection field can be extended like any field in the ` __setup__ ` class method.  
In any case the private variable `IDENTIFIER_TYPES` should be modified.

---

<div class="post-metadata">

### Author: ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)
#### Post date: [June 23, 2022, 12:25pm UTC](https://discuss.tryton.org/t/add-special-party-identifier-which-is-not-in-python-stdnum/5378/6 "2022-06-23T12:25:09Z")

</div>

> [@ced](#):
>
> For me there is at least a validation about the length that it is 8 digits

Indeed that’s something which can be checked.

> [@ced](#):
>
> Also as there is a service to check the existence, python-stdnum could also accept to have a method to call this API.

This is a very tricky one. In their website there is a search function which can be used to search the company based on the input. This input can be the 8 digit number and a company will pop up. A Python script can be used to use that function to validate based on the number.

> [@ced](#):
>
> > [@edbo](#):
> >
> > I imagine that when it is accepted, this will become available in the next major version (6.6) not a bugfix release (6.4.X) right?.
> 
> Yes but I would prefer it to be in python-stdnum first.

I will see what they say about it.

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [July 23, 2022, 12:25pm UTC](https://discuss.tryton.org/t/add-special-party-identifier-which-is-not-in-python-stdnum/5378/7 "2022-07-23T12:25:44Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
