I was going through the UBL 2.0 and UBL 2.1 specs for the TaxScheme ID and saw that schemeID proposed is UN/ECE 5153 which provides the
Duty/tax/fee type, coded. [Identification of the type of duty or tax or fee applicable to commodities or of tax applicable to services]
This describes the type of tax levied - different types can be used per line item or header.
Would it not be better to use 1153 = Reference qualifier, Code giving specific meaning to a reference segment or a reference number.
AHP Tax registration number
FC Fiscal number >> Federal Tax Payer Identification number TIN
TL Tax exemption licence number
VA VAT registration number
<cbc:CompanyID schemeID="DKVAT" schemeAgencyID="ZZZ">DK12345</cbc:CompanyID>
<cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
<cbc:TaxTypeCode>VAT</cbc:TaxTypeCode>
I also looked at the PEPPOL BIS4A guidelines.
The Tax Scheme specifies that this is a VAT registration identifier. Each of the tags uses attributes to specify the ID and code scheme used and the issuing agency. The Tax Scheme Identifier must come from the UN/ECE code list 5153, but the VAT Identifiers will be issued by appropriate national institutions.