• Resolved andyvb

    (@andyvb)


    On the demo version you provide i test the following Belgium VAT number : BE0473933585
    This is a valid BE Vat number.
    Message "VAT ID not valid"
    
    I've activated the debug log file on the demo website.
    2023-04-09T07:08:09+00:00 INFO Error: VAT ID not valid (Country: [BE]; VAT ID: [0473933585]; Company: [KARAKATSANI]; Method: [soap])
    
    Below you can see its a valid company / VAT number.
    https://www.companyweb.be/search?query=BE0473933585
    
    What is the reason this is happening?
    
    Same for
    BE0799297321
    
    This one is working!
    BE0692826755
    
    2023-04-09T07:08:09+00:00 INFO Error: VAT ID not valid (Country: [BE]; VAT ID: [0473933585]; Company: [KARAKATSANI]; Method: [soap])
    2023-04-09T07:15:10+00:00 INFO Error: VAT ID not valid (Country: [BE]; VAT ID: [0799297321]; Company: [KARAKATSANI]; Method: [soap])
    2023-04-09T07:15:49+00:00 INFO Success: VAT ID is valid (Country: [BE]; VAT ID: [0692826755]; Company: [KARAKATSANI]; Method: [soap])
    
    NOK VIES : https://www.companyweb.be/search?query=BE0473933585
    NOK VIES : https://www.companyweb.be/search?query=BE0799297321
    OK : https://www.companyweb.be/search?query=BE0692826755
    
    You can also use the official belgium government site.
    Syntax BE is 10 numbers -> 0799.297.321
    BE VAT = BE0799297321
    https://kbopub.economie.fgov.be/kbopub/zoeknummerform.html?nummer=0799297321&actionLu=Zoek
    
    Kind Regards from Belgium
    Andy
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Omar AlDabbas

    (@omardabbas)

    Hi @andyvb

    The official reference for VAT numbers is the VIES service, and both numbers are returning “invalid”.

    You can check here.

    The other website might have older version of database, the latest is the one available on VIES.

    Omar

    Thread Starter andyvb

    (@andyvb)

    Meanwhile, i have found the correct info.
    It’s not because VIES gives the message “VAT ID is not valid” that the VAT number is not correct or not in use.

    Check a VAT number (VIES) – Your Europe (europa.eu)

    In this case it was a valid VAT number but the VAT number has not been activated for intra-EU transactions.

    If a company is doing business with companies in the same country the VAT number doesn’t have to be validated for intra-EU transactions and if this is the case the VAT number gives invalid in VIES.

    So, i will have to check… but to be 100% ok i think the plugin should have the option for VAT numbers VIES VALIDATION but with the option to exclude a specific country.
    So you can specify your own country that no VIES validation has to be done.
    Other countries have to be VIES validated so you know that Intra-EU transactions with this company are ok.

    And i don’t know if it’s possible if there is no VIES validation you can check if the VAT number thats is entered complies to the correct rules of that country?
    VAT Number Formats : EU country codes, VAT numbers and enquiry letters for EC Sales Lists – GOV.UK (www.gov.uk)

    For belgium for example : Belgian VAT numbers have 12 characters [BE + 10 digits]. The first number following the prefix is always “0”. The last 2 digits constitute a control number.

    Sample Check VAT nr Belgium BE0685.583.429
    Modulo 97 (Last 2 numbers are check)
    6855834 / 97 = 70.678
    70.678 * 97 = 6.855.766
    6855834 – 6855766 = 68
    97 – 68 = 29 (Check is ok)

    Plugin Author Omar AlDabbas

    (@omardabbas)

    Thanks @andyvb for the feedback.

    We will look into this as an enhancement for the plugin, as of now, we believe the original issue of this thread is solved as it’s not related to the plugin itself.

    Omar

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Message “VAT is not valid”’ is closed to new replies.