All error codes › BR-CO-09
BR-CO-09 – VAT ID without country prefix
Erroren16931applies to Romanian e-Factura
What the rule says
The Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48) shall have a prefix in accordance with ISO code ISO 3166-1 alpha-2 by which the country of issue may be identified. Nevertheless, Greece may use the prefix ‘EL’.
How to fix it
VAT IDs must start with the 2-letter country code, e.g. RO12345678, DE123456789.
UBL: cac:PartyTaxScheme/cbc:CompanyID
Paste the XML and see every error with the exact fix and the correct amounts.
Where it is checked in the XML
Context: //cac:PartyTaxScheme[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']
Test (XPath):
( contains( ' 1A AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH EL ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GQ GR GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS XI YE YT ZA ZM ZW ',substring(cbc:CompanyID,1,2) ) )
Related rules
BR-CO-03Both VAT point date and date code givenBR-CO-04Invoice line without VAT categoryBR-CO-05Document level allowance reason code (BT-98) and Document level allowance reason (BT-97)…BR-CO-06Document level charge reason code (BT-105) and Document level charge reason (BT-104)…BR-CO-07Invoice line allowance reason code (BT-140) and Invoice line allowance reason (BT-139)…BR-CO-08Invoice line charge reason code (BT-145) and Invoice line charge reason (BT-144) shall…BR-CO-10Sum of line amounts is wrongBR-CO-11Sum of allowances on document level (BT-107) = Σ Document level allowance amount (BT-92)BR-CO-12Sum of charges on document level (BT-108) = Σ Document level charge amount (BT-99)BR-CO-13Total without VAT is wrongBR-CO-14Total VAT is wrongBR-CO-15Total with VAT is wrong