Tax Calculation - Tax ID Validation Configurations
Created by jg (Unlicensed)
Last updated: May 11, 2018 by Yamam Al Ghourani (Unlicensed)
System Settings
Default - order.tax.number.patterns
Provider Specific - provider.<PROVIDER ID>.order.tax.number.patterns
All of these system settings are JSON inputted text fields which identify key value pairs between the Country code(s) and the regex pattern(s) to use.
So an example would be:
{ "AT":"(AT)?U[0-9a-zA-Z]{8}", "BE":"(BE)?0[0-9]{9}", "BG":"(BG)?[0-9a-zA-Z]{9,10}", "CY":"(CY)?[0-9a-zA-Z]{9}", "DK":"(DK)?[0-9]{8}", "EE":"(EE)?[0-9]{9}", "FI":"(FI)?[0-9]{8}", "FR":"(FR)?[0-9a-zA-Z]{2}[0-9]{9}", "DE":"(DE)?[0-9]{9}", "EL":"(EL)?[0-9]{9}", "HU":"(HU)?[0-9]{8}", "IE":"(IE)?[0-9][0-9a-zA-Z]{1}[0-9]{5}[0-9a-zA-Z]", "IT":"(IT)?[0-9]{11}", "LV":"(LV)?[0-9]{11}", "LT":"(LT)?([0-9]{9}|[0-9]{12})", "LU":"(LU)?[0-9]{8}", "MT":"(MT)?[0-9]{8}", "NL":"(NL)?[0-9a-zA-Z]{12}", "PL":"(PL)?[0-9]{10}", "PT":"(PT)?[0-9]{9}", "RO":"(RO)?[0-9]{2,10}", "SK":"(SK)?[0-9]{10}", "SI":"(SI)?[0-9]{8}", "ES":"(ES)?[0-9a-zA-Z][0-9]{7}[0-9a-zA-Z]", "SE":"(SE)?[0-9]{10}01", "GB":"(GB)?([0-9]{9}|[0-9]{12}|GD[0-4][0-9]{2}|HA[5-9][0-9]{2})" }