Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing support for tax numbers #15

Open
koblas opened this issue Jun 29, 2022 · 4 comments
Open

Missing support for tax numbers #15

koblas opened this issue Jun 29, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@koblas
Copy link
Owner

koblas commented Jun 29, 2022

@teebu
Copy link

teebu commented Apr 4, 2023

Netherland TIN (tax identification number)
https://www.oecd.org/tax/automatic-exchange/crs-implementation-and-assistance/tax-identification-numbers/Netherlands-TIN.pdf

However, I am confused if its the same as Netherland BSN. They seem to be different validation methods though.

@koblas
Copy link
Owner Author

koblas commented Apr 5, 2023

@teebu When I look at the NL BSN and the PDF they appear to be the same. Both have the same 9,8,7,6,5,4,3,2 sum factor validation. I did also find that BSN on the government of NL website indicates that it's used for tax purposes along with this document.

https://expatax.nl/bsn-citizen-service-number-your-dutch-tax-identification-number/

@teebu
Copy link

teebu commented Apr 6, 2023

The BSN uses something called Elfproef is Dutch for 11-proof, while the TIN uses the checksum with weights.

The elfproef uses mod 11 and checks if its 0. While the checksum method uses the checkdigit for validation.

Something I found here:
https://www.npmjs.com/package/elfproef, https://github.com/MrLuit/elfproef/blob/master/src/index.ts

They both seem to produce same results but are different methods to get there. I don't understand how that works.

https://www.oecd.org/tax/automatic-exchange/crs-implementation-and-assistance/tax-identification-numbers/Netherlands-TIN.pdf

Microsoft has them both 9 digits, except BSN is with space format, and TIN no spaces
https://learn.microsoft.com/en-us/microsoft-365/compliance/sit-defn-netherlands-tax-identification-number?view=o365-worldwide
https://learn.microsoft.com/en-us/microsoft-365/compliance/sit-defn-netherlands-citizens-service-number?view=o365-worldwide

@koblas
Copy link
Owner Author

koblas commented Apr 23, 2023

Fliping this around. What are you looking for, the "problem" with OECD is that it only lists the identification number (BSN) for individuals. I think you're fishing for the entity (corporation) tax identifier. This article might help.

https://business.gov.nl/starting-your-business/registering-your-business/lei-rsin-vat-and-kvk-number-which-is-which/

It might be that you're looking for the RSIN Rechtspersonen en Samenwerkingsverbanden Identificatie Nummer.

@koblas koblas added the enhancement New feature or request label Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants