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
Incorrect validation case for swiss #336
Comments
Hi @harryparmar, For example: searching for It might be an option to provide a If it is a different API, please let ne know. |
Hi @arthurdejong I am talking about their soap service https://www.uid-wse.admin.ch/V5.0/PublicServices.svc?wsdl ValidateVatNumber method.its possible this is bug on their end as rather than giving boolean false it causes data validation error exception. |
This function can be used to performa a lookup of organisation information by the Swiss Federal Statistical Office web service. Related to #336
According to the documentation in https://dam-api.bfs.admin.ch/hub/api/dam/assets/11007266/master the SOAP interface expects the vatNumber parameter to be without the "MWST" suffix. There might be some confusion between the difference of a UID and a proper VAT number. When the module was added to python-stdnum it was expected that the "MWST" suffix was what differentiated the UID from the VAT number. If you have any clarifications in this area I'd be happy to update the implementation. Btw, since researching this got me 90% to the way of implementing support for checking the SOAP service I've added a |
for example with stdnum both CHE394021985MWST and CHE394021985 MWST are valid.
But from Swiss govt office API CHE394021985MWST returns data validation error while CHE394021985 MWST works. So Space is expected.
The text was updated successfully, but these errors were encountered: