Portugal: Example Documents

View some example document s for Portugal.

ATM Payment Invoice (PT_invoice_380_ATM_payment.xml)

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  <ubl:Invoice xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:cec="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" xmlns:vrbl="urn:vertexinc:vrbl:ExtensionComponent:1">
  	<!-- Required UBL extensions -->
  	<cec:UBLExtensions>
  		<cec:UBLExtension>
  			<cec:ExtensionContent>
  				<vrbl:InvoiceExtension>
  					<vrbl:BillingSoftware>
  						<vrbl:Description>sistema certificado na AT</vrbl:Description>
  						<vrbl:HashCode>CFTR</vrbl:HashCode>
  						<vrbl:Number>nº 234567</vrbl:Number>
  					</vrbl:BillingSoftware>
  					<vrbl:RoutingDetails>
  						<!-- Unique sender ID. In case of Sweden always the sender's VAT ID -->
  						<vrbl:Sender>PT123456789</vrbl:Sender>
  						<!-- Unique receiver ID. In case of Sweden always a static value identifies the country (Sweden) and the target version to be created -->
  						<vrbl:Receiver>GENERIC_FE-AP_UBL_CIUS-PT_2p1p1</vrbl:Receiver>
  					</vrbl:RoutingDetails>
  				</vrbl:InvoiceExtension>
  			</cec:ExtensionContent>
  		</cec:UBLExtension>
  	</cec:UBLExtensions>
  	<cbc:CustomizationID>urn:vertexinc:vrbl:billing:1</cbc:CustomizationID>
  	<cbc:ProfileID>urn:vertexinc:vrbl:billing:1</cbc:ProfileID>
  	<cbc:ID>4560000001</cbc:ID>
  	<cbc:IssueDate>2024-07-12</cbc:IssueDate>
  	<cbc:IssueTime>15:30:00Z</cbc:IssueTime>
  	<cbc:DueDate>2024-10-10</cbc:DueDate>
  	<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
  	<cbc:Note>This is an invoice free-text</cbc:Note>
  	<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
  	<!-- Identifier to allocate specific expense on buyer side (Compromisso Number) -->
  	<cbc:AccountingCost>COM12345678</cbc:AccountingCost> 
  	<cbc:BuyerReference>buyer_ref_number234</cbc:BuyerReference>
  	<cac:InvoicePeriod>
  		<cbc:StartDate>2024-11-01</cbc:StartDate>
  		<cbc:EndDate>2024-11-30</cbc:EndDate>
  		<cbc:Description>Monthly</cbc:Description>
  	</cac:InvoicePeriod>
  	<cac:OrderReference>
  		<!-- Order reference-->
  		<cbc:ID>PO987654</cbc:ID>
  		<!-- Sales order reference-->
  		<cbc:SalesOrderID>SalesOrderID123456</cbc:SalesOrderID>
  	</cac:OrderReference>
  	<!--Dispatch advice number-->
  	<cac:DespatchDocumentReference>
  		<cbc:ID>DN1234567890</cbc:ID>
  	</cac:DespatchDocumentReference>
  	<cac:ReceiptDocumentReference>  
  		<!--Receipt advice number-->
  		<cbc:ID>RA88776655</cbc:ID>
  	</cac:ReceiptDocumentReference>
  	<cac:OriginatorDocumentReference>
  		<!--Tender number-->
  		<cbc:ID>AQ 122222222</cbc:ID> 
  	</cac:OriginatorDocumentReference>
  	<cac:ContractDocumentReference>
  		<!--Contract number-->
  		<cbc:ID>Ama 111111</cbc:ID>
  	</cac:ContractDocumentReference>
  	<!-- ATCUD identifier and QR Code. -->
  	<cac:AdditionalDocumentReference>
  		<cbc:ID schemeID="ANG">12345678-241231231231</cbc:ID>
  		<cbc:DocumentDescription>QR_CODE</cbc:DocumentDescription>
  		<cac:Attachment>
  			<cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain" filename="file_name">ZWNvc2lvIHJvY2tzZ3JlcCAtRXJsIEl0ZW1QcmljZUV4dGVuc2lvbiAuIQo=</cbc:EmbeddedDocumentBinaryObject>
  		</cac:Attachment>
  	</cac:AdditionalDocumentReference>
  	<!-- Reference Multi-Invoicing -->
  	<cac:ProjectReference>
  		<cbc:ID>999999999</cbc:ID>
  	</cac:ProjectReference>
  	<cac:AccountingSupplierParty>
  		<cac:Party>
  			<cac:PartyName>
  				<cbc:Name>Seller Company</cbc:Name>
  			</cac:PartyName>
  			<cac:PostalAddress>
  				<cbc:StreetName>Rua xpto</cbc:StreetName>
  				<cbc:AdditionalStreetName>additional address data</cbc:AdditionalStreetName>
  				<cbc:CityName>Amadora</cbc:CityName>
  				<cbc:PostalZone>2610-074</cbc:PostalZone>
  				<cbc:CountrySubentity>Amadora</cbc:CountrySubentity>
  				<cac:AddressLine>
  					<cbc:Line>other additional address data</cbc:Line>
  				</cac:AddressLine>
  				<cac:Country>
  					<cbc:IdentificationCode>PT</cbc:IdentificationCode>
  				</cac:Country>
  			</cac:PostalAddress>
  			<cac:PartyTaxScheme>
  				<cbc:CompanyID>PT123456789</cbc:CompanyID>
  				<cac:TaxScheme>
  					<cbc:ID>VAT</cbc:ID>
  				</cac:TaxScheme>
  			</cac:PartyTaxScheme>
  			<cac:PartyLegalEntity>
  				<cbc:RegistrationName>Nome de registo do Fornecedor</cbc:RegistrationName>
  				<cbc:CompanyID schemeID="0001">PT123456789</cbc:CompanyID>
  				<cbc:CompanyLegalForm>Legal form</cbc:CompanyLegalForm>
  			</cac:PartyLegalEntity>
  			<cac:Contact>
  				<cbc:Name>Mrs. Seller</cbc:Name>
  				<cbc:Telephone>213334455</cbc:Telephone>
  				<cbc:ElectronicMail>[email protected]</cbc:ElectronicMail>
  			</cac:Contact>
  		</cac:Party>
  	</cac:AccountingSupplierParty>
  	<cac:AccountingCustomerParty>
  		<cac:Party>
  			<cac:PartyName>
  				<cbc:Name>Customer </cbc:Name>
  			</cac:PartyName>
  			<cac:PostalAddress>
  				<cbc:StreetName>Rua xpto 2</cbc:StreetName>
  				<cbc:AdditionalStreetName>additional address data</cbc:AdditionalStreetName>
  				<cbc:CityName>Amadora</cbc:CityName>
  				<cbc:PostalZone>2610-011</cbc:PostalZone>
  				<cbc:CountrySubentity>Amadora</cbc:CountrySubentity>
  				<cac:AddressLine>
  					<cbc:Line>other additional address data</cbc:Line>
  				</cac:AddressLine>
  				<cac:Country>
  					<cbc:IdentificationCode>PT</cbc:IdentificationCode>
  				</cac:Country>
  			</cac:PostalAddress>
  			<cac:PartyTaxScheme>
  				<cbc:CompanyID>PT987654321</cbc:CompanyID>
  				<cac:TaxScheme>
  					<cbc:ID>VAT</cbc:ID>
  				</cac:TaxScheme>
  			</cac:PartyTaxScheme>
  			<cac:PartyLegalEntity>
  				<cbc:RegistrationName>Customer Registration Name </cbc:RegistrationName>
  				<cbc:CompanyID schemeID="0001">PT987654321</cbc:CompanyID>
  			</cac:PartyLegalEntity>
  			<cac:Contact>
  				<cbc:Name>Mr. Buyer</cbc:Name>
  				<cbc:Telephone>214445566</cbc:Telephone>
  				<cbc:ElectronicMail>[email protected]</cbc:ElectronicMail>
  			</cac:Contact>
  		</cac:Party>
  	</cac:AccountingCustomerParty>
  	<cac:Delivery>
  		<cbc:ActualDeliveryDate>2024-07-12</cbc:ActualDeliveryDate>
  		<cac:DeliveryLocation>
  			<cbc:ID schemeID="0088">3210123456789</cbc:ID>
  			<cac:Address>
  				<cbc:StreetName>Morada 23</cbc:StreetName>
  				<cbc:AdditionalStreetName>additional address data</cbc:AdditionalStreetName>
  				<cbc:CityName>Amadora</cbc:CityName>
  				<cbc:PostalZone>2610-999</cbc:PostalZone>
  				<cbc:CountrySubentity>Amadora</cbc:CountrySubentity>
  				<cac:AddressLine>
  					<cbc:Line>other additional address data</cbc:Line>
  				</cac:AddressLine>
  				<cac:Country>
  					<cbc:IdentificationCode>PT</cbc:IdentificationCode>
  				</cac:Country>
  			</cac:Address>
  		</cac:DeliveryLocation>
  		<cac:DeliveryParty>
  			<cac:PartyName>
  				<cbc:Name>Delivery-to party name</cbc:Name>
  			</cac:PartyName>
  		</cac:DeliveryParty>
  	</cac:Delivery>
  	<cac:PaymentMeans>
  		<cec:UBLExtensions>
  			<cec:UBLExtension>
  				<cec:ExtensionContent>
  					<vrbl:PaymentMeansExtension>
  						<!-- ATM entity -->
  						<vrbl:ATMPaymentEntity>12345</vrbl:ATMPaymentEntity>
  					</vrbl:PaymentMeansExtension>
  				</cec:ExtensionContent>
  			</cec:UBLExtension>
  		</cec:UBLExtensions>
  		<!-- ATM Multibanco payment -->
  		<cbc:PaymentMeansCode>VRBL:PT:MB</cbc:PaymentMeansCode>
  		<!-- ATM payment reference -->
  		<cbc:PaymentID>01234566</cbc:PaymentID>
  	</cac:PaymentMeans>
  	<cac:PaymentTerms>
  		<cbc:Note>Up to 10.10.2024 without deduction</cbc:Note>
  	</cac:PaymentTerms>
  	<cac:AllowanceCharge>
  		<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
  		<cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
  		<cbc:Amount currencyID="EUR">100.00</cbc:Amount>
  		<cac:TaxCategory>
  			<cbc:ID>S</cbc:ID>
  			<cbc:Percent>25.00</cbc:Percent>
  			<cac:TaxScheme>
  				<cbc:ID>VAT</cbc:ID>
  			</cac:TaxScheme>
  		</cac:TaxCategory>
  	</cac:AllowanceCharge>
  	<cac:AllowanceCharge>
  		<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
  		<cbc:AllowanceChargeReason>Service charge</cbc:AllowanceChargeReason>
  		<cbc:Amount currencyID="EUR">100.00</cbc:Amount>
  		<cac:TaxCategory>
  			<cbc:ID>S</cbc:ID>
  			<cbc:Percent>25.00</cbc:Percent>
  			<cac:TaxScheme>
  				<cbc:ID>VAT</cbc:ID>
  			</cac:TaxScheme>
  		</cac:TaxCategory>
  	</cac:AllowanceCharge>
  	<cac:TaxTotal>
  		<cbc:TaxAmount currencyID="EUR">100.00</cbc:TaxAmount>
  		<cac:TaxSubtotal>
  			<cbc:TaxableAmount currencyID="EUR">400.00</cbc:TaxableAmount>
  			<cbc:TaxAmount currencyID="EUR">100.00</cbc:TaxAmount>
  			<cac:TaxCategory>
  				<cbc:ID>S</cbc:ID>
  				<cbc:Percent>25.00</cbc:Percent>
  				<cac:TaxScheme>
  					<cbc:ID>VAT</cbc:ID>
  				</cac:TaxScheme>
  			</cac:TaxCategory>
  		</cac:TaxSubtotal>
  	</cac:TaxTotal>
  	<cac:LegalMonetaryTotal>
  		<cbc:LineExtensionAmount currencyID="EUR">400.00</cbc:LineExtensionAmount>
  		<cbc:TaxExclusiveAmount currencyID="EUR">400.00</cbc:TaxExclusiveAmount>
  		<cbc:TaxInclusiveAmount currencyID="EUR">500.00</cbc:TaxInclusiveAmount>
  		<cbc:AllowanceTotalAmount currencyID="EUR">100.00</cbc:AllowanceTotalAmount>
  		<cbc:ChargeTotalAmount currencyID="EUR">100.00</cbc:ChargeTotalAmount>
  		<cbc:PayableAmount currencyID="EUR">500.00</cbc:PayableAmount>
  	</cac:LegalMonetaryTotal>
  	<cac:InvoiceLine>
  		<cbc:ID>000010</cbc:ID>
  		<cbc:InvoicedQuantity unitCode="H87">3.00</cbc:InvoicedQuantity>
  		<cbc:LineExtensionAmount currencyID="EUR">300.00</cbc:LineExtensionAmount>
  		<cac:OrderLineReference>
  			<cbc:LineID>000001</cbc:LineID>
  		</cac:OrderLineReference>
  		<!-- Commitment Number (Número do compromisso) and reference to Commitment Line Number -->
  		<cac:DocumentReference>
  			<cec:UBLExtensions>
  				<cec:UBLExtension>
  					<cec:ExtensionContent>
  						<vrbl:DocumentReferenceExtension>
  							<cbc:LineID>01</cbc:LineID>
  						</vrbl:DocumentReferenceExtension>
  					</cec:ExtensionContent>
  				</cec:UBLExtension>
  			</cec:UBLExtensions>
  			<cbc:ID schemeID="VRBL:PT:COMMITMENT">COM12345678</cbc:ID>
  			<cbc:IssueDate>2024-05-02</cbc:IssueDate>
  		</cac:DocumentReference>
  		<cac:Item>
  			<cbc:Name>ItemName</cbc:Name>
  			<cac:SellersItemIdentification>
  				<cbc:ID>730430</cbc:ID>
  			</cac:SellersItemIdentification>
  			<!-- Item Commodity Classification (CPV) -->
  			<cac:CommodityClassification>
  				<cbc:ItemClassificationCode listID="STI">09343000-5</cbc:ItemClassificationCode>
  			</cac:CommodityClassification>
  			<cac:ClassifiedTaxCategory>
  				<cbc:ID>S</cbc:ID>
  				<cbc:Percent>25.00</cbc:Percent>
  				<cac:TaxScheme>
  					<cbc:ID>VAT</cbc:ID>
  				</cac:TaxScheme>
  			</cac:ClassifiedTaxCategory>
  		</cac:Item>
  		<cac:Price>
  			<cbc:PriceAmount currencyID="EUR">100.00</cbc:PriceAmount>
  			<cbc:BaseQuantity unitCode="H87">1.00</cbc:BaseQuantity>
  		</cac:Price>
  	</cac:InvoiceLine>
  	<cac:InvoiceLine>
  		<cbc:ID>000020</cbc:ID>
  		<cbc:Note>Item Description</cbc:Note>
  		<cbc:InvoicedQuantity unitCode="H87">2.00</cbc:InvoicedQuantity>
  		<cbc:LineExtensionAmount currencyID="EUR">100.00</cbc:LineExtensionAmount>
  		<cac:OrderLineReference>
  			<cbc:LineID>000002</cbc:LineID>
  		</cac:OrderLineReference>
  		<!-- Commitment Number (Número do compromisso) and reference to Commitment Line Number -->
  		<cac:DocumentReference>
  			<cec:UBLExtensions>
  				<cec:UBLExtension>
  					<cec:ExtensionContent>
  						<vrbl:DocumentReferenceExtension>
  							<cbc:LineID>02</cbc:LineID>
  						</vrbl:DocumentReferenceExtension>
  					</cec:ExtensionContent>
  				</cec:UBLExtension>
  			</cec:UBLExtensions>
  			<cbc:ID schemeID="VRBL:PT:COMMITMENT">COM12345678</cbc:ID>
  			<cbc:IssueDate>2024-05-02</cbc:IssueDate>
  		</cac:DocumentReference>
  		<cac:AllowanceCharge>
  			<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
  			<cbc:AllowanceChargeReason>Sample Description</cbc:AllowanceChargeReason>
  			<cbc:MultiplierFactorNumeric>10.00</cbc:MultiplierFactorNumeric>
  			<cbc:Amount currencyID="EUR">10.00</cbc:Amount>
  			<cbc:BaseAmount currencyID="EUR">100.00</cbc:BaseAmount>
  		</cac:AllowanceCharge>
  		<cac:AllowanceCharge>
  			<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
  			<cbc:AllowanceChargeReason>Sample Description</cbc:AllowanceChargeReason>
  			<cbc:MultiplierFactorNumeric>10.00</cbc:MultiplierFactorNumeric>
  			<cbc:Amount currencyID="EUR">10.00</cbc:Amount>
  			<cbc:BaseAmount currencyID="EUR">100.00</cbc:BaseAmount>
  		</cac:AllowanceCharge>
  		<cac:Item>
  			<cbc:Name>ItemName</cbc:Name>
  			<cac:SellersItemIdentification>
  				<cbc:ID>730430</cbc:ID>
  			</cac:SellersItemIdentification>
  			<!-- Item Commodity Classification (CPV) -->
  			<cac:CommodityClassification>
  				<cbc:ItemClassificationCode listID="STI">09343000-5</cbc:ItemClassificationCode>
  			</cac:CommodityClassification>
  			<cac:ClassifiedTaxCategory>
  				<cbc:ID>S</cbc:ID>
  				<cbc:Percent>25.00</cbc:Percent>
  				<cac:TaxScheme>
  					<cbc:ID>VAT</cbc:ID>
  				</cac:TaxScheme>
  			</cac:ClassifiedTaxCategory>
  		</cac:Item>
  		<cac:Price>
  			<cbc:PriceAmount currencyID="EUR">50.00</cbc:PriceAmount>
  			<cbc:BaseQuantity unitCode="H87">1.00</cbc:BaseQuantity>
  		</cac:Price>
  	</cac:InvoiceLine>
  </ubl:Invoice>

DUC Payment Invoice (PT_invoice_380_DUC_payment.xml)

 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  <ubl:Invoice xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:cec="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" xmlns:vrbl="urn:vertexinc:vrbl:ExtensionComponent:1">
  	<!-- Required UBL extensions -->
  	<cec:UBLExtensions>
  		<cec:UBLExtension>
  			<cec:ExtensionContent>
  				<vrbl:InvoiceExtension>
  					<vrbl:BillingSoftware>
  						<vrbl:Description>sistema certificado na AT</vrbl:Description>
  						<vrbl:HashCode>CFTR</vrbl:HashCode>
  						<vrbl:Number>nº 234567</vrbl:Number>
  					</vrbl:BillingSoftware>
  					<vrbl:RoutingDetails>
  						<!-- Unique sender ID. In case of Sweden always the sender's VAT ID -->
  						<vrbl:Sender>PT123456789</vrbl:Sender>
  						<!-- Unique receiver ID. In case of Sweden always a static value identifies the country (Sweden) and the target version to be created -->
  						<vrbl:Receiver>GENERIC_FE-AP_UBL_CIUS-PT_2p1p1</vrbl:Receiver>
  					</vrbl:RoutingDetails>
  				</vrbl:InvoiceExtension>
  			</cec:ExtensionContent>
  		</cec:UBLExtension>
  	</cec:UBLExtensions>
  	<cbc:CustomizationID>urn:vertexinc:vrbl:billing:1</cbc:CustomizationID>
  	<cbc:ProfileID>urn:vertexinc:vrbl:billing:1</cbc:ProfileID>
  	<cbc:ID>4560000001</cbc:ID>
  	<cbc:IssueDate>2024-07-12</cbc:IssueDate>
  	<cbc:IssueTime>15:30:00Z</cbc:IssueTime>
  	<cbc:DueDate>2024-10-10</cbc:DueDate>
  	<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
  	<cbc:Note>This is an invoice free-text</cbc:Note>
  	<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
      <!-- Identifier to allocate specific expense on buyer side (Compromisso Number) -->
      <cbc:AccountingCost>COM12345678</cbc:AccountingCost> 
  	<cbc:BuyerReference>buyer_ref_number234</cbc:BuyerReference>
  	<cac:InvoicePeriod>
  		<cbc:StartDate>2024-11-01</cbc:StartDate>
  		<cbc:EndDate>2024-11-30</cbc:EndDate>
  		<cbc:Description>Monthly</cbc:Description>
  	</cac:InvoicePeriod>
  	<cac:OrderReference>
          <!-- Order reference-->
  		<cbc:ID>PO987654</cbc:ID>
          <!-- Sales order reference-->
  		<cbc:SalesOrderID>SalesOrderID123456</cbc:SalesOrderID>
  	</cac:OrderReference>
      <!--Dispatch advice number-->
  	<cac:DespatchDocumentReference>
  		<cbc:ID>DN1234567890</cbc:ID>
  	</cac:DespatchDocumentReference>
      <cac:ReceiptDocumentReference>  
          <!--Receipt advice number-->
          <cbc:ID>RA88776655</cbc:ID>
      </cac:ReceiptDocumentReference>
      <cac:OriginatorDocumentReference>
          <!--Tender number-->
          <cbc:ID>AQ 122222222</cbc:ID> 
      </cac:OriginatorDocumentReference>
      <cac:ContractDocumentReference>
          <!--Contract number-->
          <cbc:ID>Ama 111111</cbc:ID>
      </cac:ContractDocumentReference>
  	<!-- ATCUD identifier and QR Code. -->
  	<cac:AdditionalDocumentReference>
  		<cbc:ID schemeID="ANG">12345678-241231231231</cbc:ID>
          <cbc:DocumentDescription>QR_CODE</cbc:DocumentDescription>
          <cac:Attachment>
              <cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain" filename="file_name">ZWNvc2lvIHJvY2tzZ3JlcCAtRXJsIEl0ZW1QcmljZUV4dGVuc2lvbiAuIQo=</cbc:EmbeddedDocumentBinaryObject>
  		</cac:Attachment>
  	</cac:AdditionalDocumentReference>
  	<!-- Reference Multi-Invoicing -->
      <cac:ProjectReference>
          <cbc:ID>999999999</cbc:ID>
      </cac:ProjectReference>
  	<cac:AccountingSupplierParty>
  		<cac:Party>
              <cac:PartyName>
                  <cbc:Name>Seller Company</cbc:Name>
              </cac:PartyName>
              <cac:PostalAddress>
                  <cbc:StreetName>Rua xpto</cbc:StreetName>
                  <cbc:AdditionalStreetName>additional address data</cbc:AdditionalStreetName>
                  <cbc:CityName>Amadora</cbc:CityName>
                  <cbc:PostalZone>2610-074</cbc:PostalZone>
                  <cbc:CountrySubentity>Amadora</cbc:CountrySubentity>
                  <cac:AddressLine>
                      <cbc:Line>other additional address data</cbc:Line>
                  </cac:AddressLine>
                  <cac:Country>
                      <cbc:IdentificationCode>PT</cbc:IdentificationCode>
                  </cac:Country>
              </cac:PostalAddress>
              <cac:PartyTaxScheme>
                  <cbc:CompanyID>PT123456789</cbc:CompanyID>
                  <cac:TaxScheme>
                      <cbc:ID>VAT</cbc:ID>
                  </cac:TaxScheme>
              </cac:PartyTaxScheme>
              <cac:PartyLegalEntity>
                  <cbc:RegistrationName>Nome de registo do Fornecedor</cbc:RegistrationName>
                  <cbc:CompanyID schemeID="0001">PT123456789</cbc:CompanyID>
                  <cbc:CompanyLegalForm>Legal form</cbc:CompanyLegalForm>
              </cac:PartyLegalEntity>
              <cac:Contact>
                  <cbc:Name>Mrs. Seller</cbc:Name>
                  <cbc:Telephone>213334455</cbc:Telephone>
                  <cbc:ElectronicMail>[email protected]</cbc:ElectronicMail>
              </cac:Contact>
          </cac:Party>
  	</cac:AccountingSupplierParty>
  	<cac:AccountingCustomerParty>
  		<cac:Party>
              <cac:PartyName>
                  <cbc:Name>Customer </cbc:Name>
              </cac:PartyName>
              <cac:PostalAddress>
                  <cbc:StreetName>Rua xpto 2</cbc:StreetName>
                  <cbc:AdditionalStreetName>additional address data</cbc:AdditionalStreetName>
                  <cbc:CityName>Amadora</cbc:CityName>
                  <cbc:PostalZone>2610-011</cbc:PostalZone>
                  <cbc:CountrySubentity>Amadora</cbc:CountrySubentity>
                  <cac:AddressLine>
                      <cbc:Line>other additional address data</cbc:Line>
                  </cac:AddressLine>
                  <cac:Country>
                      <cbc:IdentificationCode>PT</cbc:IdentificationCode>
                  </cac:Country>
              </cac:PostalAddress>
              <cac:PartyTaxScheme>
                  <cbc:CompanyID>PT987654321</cbc:CompanyID>
                  <cac:TaxScheme>
                      <cbc:ID>VAT</cbc:ID>
                  </cac:TaxScheme>
              </cac:PartyTaxScheme>
              <cac:PartyLegalEntity>
                  <cbc:RegistrationName>Customer Registration Name </cbc:RegistrationName>
                  <cbc:CompanyID schemeID="0001">PT987654321</cbc:CompanyID>
              </cac:PartyLegalEntity>
              <cac:Contact>
                  <cbc:Name>Mr. Buyer</cbc:Name>
                  <cbc:Telephone>214445566</cbc:Telephone>
                  <cbc:ElectronicMail>[email protected]</cbc:ElectronicMail>
              </cac:Contact>
  		</cac:Party>
  	</cac:AccountingCustomerParty>
  	<cac:Delivery>
  		<cbc:ActualDeliveryDate>2024-07-12</cbc:ActualDeliveryDate>
  		<cac:DeliveryLocation>
              <cbc:ID schemeID="0088">3210123456789</cbc:ID>
              <cac:Address>
                  <cbc:StreetName>Morada 23</cbc:StreetName>
                  <cbc:AdditionalStreetName>additional address data</cbc:AdditionalStreetName>
                  <cbc:CityName>Amadora</cbc:CityName>
                  <cbc:PostalZone>2610-999</cbc:PostalZone>
                  <cbc:CountrySubentity>Amadora</cbc:CountrySubentity>
                  <cac:AddressLine>
                      <cbc:Line>other additional address data</cbc:Line>
                  </cac:AddressLine>
                  <cac:Country>
                      <cbc:IdentificationCode>PT</cbc:IdentificationCode>
                  </cac:Country>
              </cac:Address>
          </cac:DeliveryLocation>
  		<cac:DeliveryParty>
              <cac:PartyName>
                  <cbc:Name>Delivery-to party name</cbc:Name>
              </cac:PartyName>
          </cac:DeliveryParty>
  	</cac:Delivery>
  	<cac:PaymentMeans>
          <!-- DUC payment -->
  		<cbc:PaymentMeansCode>VRBL:PT:ZZZ</cbc:PaymentMeansCode>
  		<!-- DUC payment reference -->
          <cbc:PaymentID>123 456 789</cbc:PaymentID>
  	</cac:PaymentMeans>
  	<cac:PaymentTerms>
  		<cbc:Note>Up to 10.10.2024 without deduction</cbc:Note>
  	</cac:PaymentTerms>
  	<cac:AllowanceCharge>
  		<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
  		<cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
  		<cbc:Amount currencyID="EUR">100.00</cbc:Amount>
  		<cac:TaxCategory>
  		    <cbc:ID>S</cbc:ID>
  		    <cbc:Percent>25.00</cbc:Percent>
  			<cac:TaxScheme>
  				<cbc:ID>VAT</cbc:ID>
  			</cac:TaxScheme>
  		</cac:TaxCategory>
  	</cac:AllowanceCharge>
  	<cac:AllowanceCharge>
  		<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
  		<cbc:AllowanceChargeReason>Service charge</cbc:AllowanceChargeReason>
  		<cbc:Amount currencyID="EUR">100.00</cbc:Amount>
  		<cac:TaxCategory>
  		    <cbc:ID>S</cbc:ID>
  		    <cbc:Percent>25.00</cbc:Percent>
  			<cac:TaxScheme>
  				<cbc:ID>VAT</cbc:ID>
  			</cac:TaxScheme>
  		</cac:TaxCategory>
  	</cac:AllowanceCharge>
  	<cac:TaxTotal>
  		<cbc:TaxAmount currencyID="EUR">100.00</cbc:TaxAmount>
  		<cac:TaxSubtotal>
  			<cbc:TaxableAmount currencyID="EUR">400.00</cbc:TaxableAmount>
  			<cbc:TaxAmount currencyID="EUR">100.00</cbc:TaxAmount>
  			<cac:TaxCategory>
  				<cbc:ID>S</cbc:ID>
  				<cbc:Percent>25.00</cbc:Percent>
  				<cac:TaxScheme>
  					<cbc:ID>VAT</cbc:ID>
  				</cac:TaxScheme>
  			</cac:TaxCategory>
  		</cac:TaxSubtotal>
  	</cac:TaxTotal>
  	<cac:LegalMonetaryTotal>
  		<cbc:LineExtensionAmount currencyID="EUR">400.00</cbc:LineExtensionAmount>
  		<cbc:TaxExclusiveAmount currencyID="EUR">400.00</cbc:TaxExclusiveAmount>
  		<cbc:TaxInclusiveAmount currencyID="EUR">500.00</cbc:TaxInclusiveAmount>
  		<cbc:AllowanceTotalAmount currencyID="EUR">100.00</cbc:AllowanceTotalAmount>
  		<cbc:ChargeTotalAmount currencyID="EUR">100.00</cbc:ChargeTotalAmount>
  		<cbc:PayableAmount currencyID="EUR">500.00</cbc:PayableAmount>
  	</cac:LegalMonetaryTotal>
  	<cac:InvoiceLine>
  		<cbc:ID>000010</cbc:ID>
  		<cbc:InvoicedQuantity unitCode="H87">3.00</cbc:InvoicedQuantity>
  		<cbc:LineExtensionAmount currencyID="EUR">300.00</cbc:LineExtensionAmount>
  		<cac:OrderLineReference>
  			<cbc:LineID>000001</cbc:LineID>
  		</cac:OrderLineReference>
  		<!-- Commitment Number (Número do compromisso) and reference to Commitment Line Number -->
  		<cac:DocumentReference>
  			<cec:UBLExtensions>
  				<cec:UBLExtension>
  					<cec:ExtensionContent>
  						<vrbl:DocumentReferenceExtension>
  							<cbc:LineID>01</cbc:LineID>
  						</vrbl:DocumentReferenceExtension>
  					</cec:ExtensionContent>
  				</cec:UBLExtension>
  			</cec:UBLExtensions>
  			<cbc:ID schemeID="VRBL:PT:COMMITMENT">COM12345678</cbc:ID>
  			<cbc:IssueDate>2024-05-02</cbc:IssueDate>
  		</cac:DocumentReference>
  		<cac:Item>
  			<cbc:Name>ItemName</cbc:Name>
  			<cac:SellersItemIdentification>
  				<cbc:ID>730430</cbc:ID>
  			</cac:SellersItemIdentification>
  			<!-- Item Commodity Classification (CPV) -->
  			<cac:CommodityClassification>
  				<cbc:ItemClassificationCode listID="STI">09343000-5</cbc:ItemClassificationCode>
  			</cac:CommodityClassification>
  			<cac:ClassifiedTaxCategory>
  				<cbc:ID>S</cbc:ID>
  				<cbc:Percent>25.00</cbc:Percent>
  				<cac:TaxScheme>
  					<cbc:ID>VAT</cbc:ID>
  				</cac:TaxScheme>
  			</cac:ClassifiedTaxCategory>
  		</cac:Item>
  		<cac:Price>
  			<cbc:PriceAmount currencyID="EUR">100.00</cbc:PriceAmount>
  			<cbc:BaseQuantity unitCode="H87">1.00</cbc:BaseQuantity>
  		</cac:Price>
  	</cac:InvoiceLine>
  	<cac:InvoiceLine>
  		<cbc:ID>000020</cbc:ID>
  		<cbc:Note>Item Description</cbc:Note>
  		<cbc:InvoicedQuantity unitCode="H87">2.00</cbc:InvoicedQuantity>
  		<cbc:LineExtensionAmount currencyID="EUR">100.00</cbc:LineExtensionAmount>
  		<cac:OrderLineReference>
  			<cbc:LineID>000002</cbc:LineID>
  		</cac:OrderLineReference>
  		<!-- Commitment Number (Número do compromisso) and reference to Commitment Line Number -->
  		<cac:DocumentReference>
  			<cec:UBLExtensions>
  				<cec:UBLExtension>
  					<cec:ExtensionContent>
  						<vrbl:DocumentReferenceExtension>
  							<cbc:LineID>02</cbc:LineID>
  						</vrbl:DocumentReferenceExtension>
  					</cec:ExtensionContent>
  				</cec:UBLExtension>
  			</cec:UBLExtensions>
  			<cbc:ID schemeID="VRBL:PT:COMMITMENT">COM12345678</cbc:ID>
  			<cbc:IssueDate>2024-05-02</cbc:IssueDate>
  		</cac:DocumentReference>
  		<cac:AllowanceCharge>
  			<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
  			<cbc:AllowanceChargeReason>Sample Description</cbc:AllowanceChargeReason>
  			<cbc:MultiplierFactorNumeric>10.00</cbc:MultiplierFactorNumeric>
  			<cbc:Amount currencyID="EUR">10.00</cbc:Amount>
  			<cbc:BaseAmount currencyID="EUR">100.00</cbc:BaseAmount>
  		</cac:AllowanceCharge>
  		<cac:AllowanceCharge>
  			<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
  			<cbc:AllowanceChargeReason>Sample Description</cbc:AllowanceChargeReason>
  			<cbc:MultiplierFactorNumeric>10.00</cbc:MultiplierFactorNumeric>
  			<cbc:Amount currencyID="EUR">10.00</cbc:Amount>
  			<cbc:BaseAmount currencyID="EUR">100.00</cbc:BaseAmount>
  		</cac:AllowanceCharge>
  		<cac:Item>
  			<cbc:Name>ItemName</cbc:Name>
  			<cac:SellersItemIdentification>
  				<cbc:ID>730430</cbc:ID>
  			</cac:SellersItemIdentification>
  			<!-- Item Commodity Classification (CPV) -->
  			<cac:CommodityClassification>
  				<cbc:ItemClassificationCode listID="STI">09343000-5</cbc:ItemClassificationCode>
  			</cac:CommodityClassification>
  			<cac:ClassifiedTaxCategory>
  				<cbc:ID>S</cbc:ID>
  				<cbc:Percent>25.00</cbc:Percent>
  				<cac:TaxScheme>
  					<cbc:ID>VAT</cbc:ID>
  				</cac:TaxScheme>
  			</cac:ClassifiedTaxCategory>
  		</cac:Item>
  		<cac:Price>
  			<cbc:PriceAmount currencyID="EUR">50.00</cbc:PriceAmount>
  			<cbc:BaseQuantity unitCode="H87">1.00</cbc:BaseQuantity>
  		</cac:Price>
  	</cac:InvoiceLine>
  </ubl:Invoice>

Invoice Withholding Tax (PT_invoice_380_withholding-tax.xml)

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  <ubl:Invoice xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:cec="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" xmlns:vrbl="urn:vertexinc:vrbl:ExtensionComponent:1">
  	<!-- Required UBL extensions -->
  	<cec:UBLExtensions>
  		<cec:UBLExtension>
  			<cec:ExtensionContent>
  				<vrbl:InvoiceExtension>
  					<vrbl:BillingSoftware>
  						<vrbl:Description>sistema certificado na AT</vrbl:Description>
  						<vrbl:HashCode>CFTR</vrbl:HashCode>
  						<vrbl:Number>nº 234567</vrbl:Number>
  					</vrbl:BillingSoftware>
  					<vrbl:RoutingDetails>
  						<!-- Unique sender ID. In case of Sweden always the sender's VAT ID -->
  						<vrbl:Sender>PT123456789</vrbl:Sender>
  						<!-- Unique receiver ID. In case of Sweden always a static value identifies the country (Sweden) and the target version to be created -->
  						<vrbl:Receiver>GENERIC_FE-AP_UBL_CIUS-PT_2p1p1</vrbl:Receiver>
  					</vrbl:RoutingDetails>
  				</vrbl:InvoiceExtension>
  			</cec:ExtensionContent>
  		</cec:UBLExtension>
  	</cec:UBLExtensions>
  	<cbc:CustomizationID>urn:vertexinc:vrbl:billing:1</cbc:CustomizationID>
  	<cbc:ProfileID>urn:vertexinc:vrbl:billing:1</cbc:ProfileID>
  	<cbc:ID>4560000001</cbc:ID>
  	<cbc:IssueDate>2024-07-12</cbc:IssueDate>
  	<cbc:IssueTime>15:30:00Z</cbc:IssueTime>
  	<cbc:DueDate>2024-10-10</cbc:DueDate>
  	<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
  	<cbc:Note>This is an invoice free-text</cbc:Note>
  	<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
      <!-- Identifier to allocate specific expense on buyer side (Compromisso Number) -->
      <cbc:AccountingCost>COM12345678</cbc:AccountingCost> 
  	<cbc:BuyerReference>buyer_ref_number234</cbc:BuyerReference>
  	<cac:InvoicePeriod>
  		<cbc:StartDate>2024-11-01</cbc:StartDate>
  		<cbc:EndDate>2024-11-30</cbc:EndDate>
  		<cbc:Description>Monthly</cbc:Description>
  	</cac:InvoicePeriod>
  	<cac:OrderReference>
          <!-- Order reference-->
  		<cbc:ID>PO987654</cbc:ID>
          <!-- Sales order reference-->
  		<cbc:SalesOrderID>SalesOrderID123456</cbc:SalesOrderID>
  	</cac:OrderReference>
      <!--Dispatch advice number-->
  	<cac:DespatchDocumentReference>
  		<cbc:ID>DN1234567890</cbc:ID>
  	</cac:DespatchDocumentReference>
      <cac:ReceiptDocumentReference>  
          <!--Receipt advice number-->
          <cbc:ID>RA88776655</cbc:ID>
      </cac:ReceiptDocumentReference>
      <cac:OriginatorDocumentReference>
          <!--Tender number-->
          <cbc:ID>AQ 122222222</cbc:ID> 
      </cac:OriginatorDocumentReference>
      <cac:ContractDocumentReference>
          <!--Contract number-->
          <cbc:ID>Ama 111111</cbc:ID>
      </cac:ContractDocumentReference>
  	<!-- ATCUD identifier and QR Code. -->
  	<cac:AdditionalDocumentReference>
  		<cbc:ID schemeID="ANG">12345678-241231231231</cbc:ID>
          <cbc:DocumentDescription>QR_CODE</cbc:DocumentDescription>
          <cac:Attachment>
              <cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain" filename="file_name">ZWNvc2lvIHJvY2tzZ3JlcCAtRXJsIEl0ZW1QcmljZUV4dGVuc2lvbiAuIQo=</cbc:EmbeddedDocumentBinaryObject>
  		</cac:Attachment>
  	</cac:AdditionalDocumentReference>
  	<!-- Reference Multi-Invoicing -->
      <cac:ProjectReference>
          <cbc:ID>999999999</cbc:ID>
      </cac:ProjectReference>
  	<cac:AccountingSupplierParty>
  		<cac:Party>
              <cac:PartyName>
                  <cbc:Name>Seller Company</cbc:Name>
              </cac:PartyName>
              <cac:PostalAddress>
                  <cbc:StreetName>Rua xpto</cbc:StreetName>
                  <cbc:AdditionalStreetName>additional address data</cbc:AdditionalStreetName>
                  <cbc:CityName>Amadora</cbc:CityName>
                  <cbc:PostalZone>2610-074</cbc:PostalZone>
                  <cbc:CountrySubentity>Amadora</cbc:CountrySubentity>
                  <cac:AddressLine>
                      <cbc:Line>other additional address data</cbc:Line>
                  </cac:AddressLine>
                  <cac:Country>
                      <cbc:IdentificationCode>PT</cbc:IdentificationCode>
                  </cac:Country>
              </cac:PostalAddress>
              <cac:PartyTaxScheme>
                  <cbc:CompanyID>PT123456789</cbc:CompanyID>
                  <cac:TaxScheme>
                      <cbc:ID>VAT</cbc:ID>
                  </cac:TaxScheme>
              </cac:PartyTaxScheme>
              <cac:PartyLegalEntity>
                  <cbc:RegistrationName>Nome de registo do Fornecedor</cbc:RegistrationName>
                  <cbc:CompanyID schemeID="0001">PT123456789</cbc:CompanyID>
                  <cbc:CompanyLegalForm>Legal form</cbc:CompanyLegalForm>
              </cac:PartyLegalEntity>
              <cac:Contact>
                  <cbc:Name>Mrs. Seller</cbc:Name>
                  <cbc:Telephone>213334455</cbc:Telephone>
                  <cbc:ElectronicMail>[email protected]</cbc:ElectronicMail>
              </cac:Contact>
          </cac:Party>
  	</cac:AccountingSupplierParty>
  	<cac:AccountingCustomerParty>
  		<cac:Party>
              <cac:PartyName>
                  <cbc:Name>Customer </cbc:Name>
              </cac:PartyName>
              <cac:PostalAddress>
                  <cbc:StreetName>Rua xpto 2</cbc:StreetName>
                  <cbc:AdditionalStreetName>additional address data</cbc:AdditionalStreetName>
                  <cbc:CityName>Amadora</cbc:CityName>
                  <cbc:PostalZone>2610-011</cbc:PostalZone>
                  <cbc:CountrySubentity>Amadora</cbc:CountrySubentity>
                  <cac:AddressLine>
                      <cbc:Line>other additional address data</cbc:Line>
                  </cac:AddressLine>
                  <cac:Country>
                      <cbc:IdentificationCode>PT</cbc:IdentificationCode>
                  </cac:Country>
              </cac:PostalAddress>
              <cac:PartyTaxScheme>
                  <cbc:CompanyID>PT987654321</cbc:CompanyID>
                  <cac:TaxScheme>
                      <cbc:ID>VAT</cbc:ID>
                  </cac:TaxScheme>
              </cac:PartyTaxScheme>
              <cac:PartyLegalEntity>
                  <cbc:RegistrationName>Customer Registration Name </cbc:RegistrationName>
                  <cbc:CompanyID schemeID="0001">PT987654321</cbc:CompanyID>
              </cac:PartyLegalEntity>
              <cac:Contact>
                  <cbc:Name>Mr. Buyer</cbc:Name>
                  <cbc:Telephone>214445566</cbc:Telephone>
                  <cbc:ElectronicMail>[email protected]</cbc:ElectronicMail>
              </cac:Contact>
  		</cac:Party>
  	</cac:AccountingCustomerParty>
  	<cac:Delivery>
  		<cbc:ActualDeliveryDate>2024-07-12</cbc:ActualDeliveryDate>
  		<cac:DeliveryLocation>
              <cbc:ID schemeID="0088">3210123456789</cbc:ID>
              <cac:Address>
                  <cbc:StreetName>Morada 23</cbc:StreetName>
                  <cbc:AdditionalStreetName>additional address data</cbc:AdditionalStreetName>
                  <cbc:CityName>Amadora</cbc:CityName>
                  <cbc:PostalZone>2610-999</cbc:PostalZone>
                  <cbc:CountrySubentity>Amadora</cbc:CountrySubentity>
                  <cac:AddressLine>
                      <cbc:Line>other additional address data</cbc:Line>
                  </cac:AddressLine>
                  <cac:Country>
                      <cbc:IdentificationCode>PT</cbc:IdentificationCode>
                  </cac:Country>
              </cac:Address>
          </cac:DeliveryLocation>
  		<cac:DeliveryParty>
              <cac:PartyName>
                  <cbc:Name>Delivery-to party name</cbc:Name>
              </cac:PartyName>
          </cac:DeliveryParty>
  	</cac:Delivery>
  	<cac:PaymentMeans>
          <cec:UBLExtensions>
  			<cec:UBLExtension>
  				<cec:ExtensionContent>
  					<vrbl:PaymentMeansExtension>
                          <!-- ATM entity -->
                          <vrbl:ATMPaymentEntity>12345</vrbl:ATMPaymentEntity>
  					</vrbl:PaymentMeansExtension>
  				</cec:ExtensionContent>
  			</cec:UBLExtension>
  		</cec:UBLExtensions>
          <!-- ATM Multibanco payment -->
  		<cbc:PaymentMeansCode>VRBL:PT:MB</cbc:PaymentMeansCode>
  		<!-- ATM payment reference -->
          <cbc:PaymentID>01234566</cbc:PaymentID>
  	</cac:PaymentMeans>
  	<cac:PaymentTerms>
  		<cbc:Note>Up to 10.10.2024 without deduction</cbc:Note>
  	</cac:PaymentTerms>
  	<cac:AllowanceCharge>
  		<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
  		<cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
  		<cbc:Amount currencyID="EUR">100.00</cbc:Amount>
  		<cac:TaxCategory>
  		    <cbc:ID>S</cbc:ID>
  		    <cbc:Percent>25.00</cbc:Percent>
  			<cac:TaxScheme>
  				<cbc:ID>VAT</cbc:ID>
  			</cac:TaxScheme>
  		</cac:TaxCategory>
  	</cac:AllowanceCharge>
  	<cac:AllowanceCharge>
  		<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
  		<cbc:AllowanceChargeReason>Service charge</cbc:AllowanceChargeReason>
  		<cbc:Amount currencyID="EUR">100.00</cbc:Amount>
  		<cac:TaxCategory>
  		    <cbc:ID>S</cbc:ID>
  		    <cbc:Percent>25.00</cbc:Percent>
  			<cac:TaxScheme>
  				<cbc:ID>VAT</cbc:ID>
  			</cac:TaxScheme>
  		</cac:TaxCategory>
  	</cac:AllowanceCharge>
  	<cac:TaxTotal>
  		<cbc:TaxAmount currencyID="EUR">100.00</cbc:TaxAmount>
  		<cac:TaxSubtotal>
  			<cbc:TaxableAmount currencyID="EUR">400.00</cbc:TaxableAmount>
  			<cbc:TaxAmount currencyID="EUR">100.00</cbc:TaxAmount>
  			<cac:TaxCategory>
  				<cbc:ID>S</cbc:ID>
  				<cbc:Percent>25.00</cbc:Percent>
  				<cac:TaxScheme>
  					<cbc:ID>VAT</cbc:ID>
  				</cac:TaxScheme>
  			</cac:TaxCategory>
  		</cac:TaxSubtotal>
  	</cac:TaxTotal>
      <!-- Withholding Tax Total -->
      <cac:WithholdingTaxTotal>
  		<cbc:TaxAmount currencyID="EUR">100.00</cbc:TaxAmount>
  		<cac:TaxSubtotal>
  			<cec:UBLExtensions>
  				<cec:UBLExtension>
  					<cec:ExtensionContent>
  						<vrbl:WithholdingTaxSubtotalExtension>
  							<cbc:Description>Withholding tax description</cbc:Description>
  						</vrbl:WithholdingTaxSubtotalExtension>
  					</cec:ExtensionContent>
  				</cec:UBLExtension>
  			</cec:UBLExtensions>
  			<cbc:TaxAmount currencyID="EUR">100.00</cbc:TaxAmount>
  			<cac:TaxCategory>
  				<cbc:ID>IFR</cbc:ID>
  				<cac:TaxScheme>
  					<cbc:ID>VAT</cbc:ID>
  				</cac:TaxScheme>
  			</cac:TaxCategory>
  		</cac:TaxSubtotal>
  	</cac:WithholdingTaxTotal>
  	<cac:LegalMonetaryTotal>
  		<cbc:LineExtensionAmount currencyID="EUR">400.00</cbc:LineExtensionAmount>
  		<cbc:TaxExclusiveAmount currencyID="EUR">400.00</cbc:TaxExclusiveAmount>
  		<cbc:TaxInclusiveAmount currencyID="EUR">500.00</cbc:TaxInclusiveAmount>
  		<cbc:AllowanceTotalAmount currencyID="EUR">100.00</cbc:AllowanceTotalAmount>
  		<cbc:ChargeTotalAmount currencyID="EUR">100.00</cbc:ChargeTotalAmount>
  		<cbc:PayableAmount currencyID="EUR">500.00</cbc:PayableAmount>
  	</cac:LegalMonetaryTotal>
  	<cac:InvoiceLine>
  		<cbc:ID>000010</cbc:ID>
  		<cbc:InvoicedQuantity unitCode="H87">3.00</cbc:InvoicedQuantity>
  		<cbc:LineExtensionAmount currencyID="EUR">300.00</cbc:LineExtensionAmount>
  		<cac:OrderLineReference>
  			<cbc:LineID>000001</cbc:LineID>
  		</cac:OrderLineReference>
  		<!-- Commitment Number (Número do compromisso) and reference to Commitment Line Number -->
  		<cac:DocumentReference>
  			<cec:UBLExtensions>
  				<cec:UBLExtension>
  					<cec:ExtensionContent>
  						<vrbl:DocumentReferenceExtension>
  							<cbc:LineID>01</cbc:LineID>
  						</vrbl:DocumentReferenceExtension>
  					</cec:ExtensionContent>
  				</cec:UBLExtension>
  			</cec:UBLExtensions>
  			<cbc:ID schemeID="VRBL:PT:COMMITMENT">COM12345678</cbc:ID>
  			<cbc:IssueDate>2024-05-02</cbc:IssueDate>
  		</cac:DocumentReference>
  		<cac:Item>
  			<cbc:Name>ItemName</cbc:Name>
  			<cac:SellersItemIdentification>
  				<cbc:ID>730430</cbc:ID>
  			</cac:SellersItemIdentification>
  			<!-- Item Commodity Classification (CPV) -->
  			<cac:CommodityClassification>
  				<cbc:ItemClassificationCode listID="STI">09343000-5</cbc:ItemClassificationCode>
  			</cac:CommodityClassification>
  			<cac:ClassifiedTaxCategory>
  				<cbc:ID>S</cbc:ID>
  				<cbc:Percent>25.00</cbc:Percent>
  				<cac:TaxScheme>
  					<cbc:ID>VAT</cbc:ID>
  				</cac:TaxScheme>
  			</cac:ClassifiedTaxCategory>
  		</cac:Item>
  		<cac:Price>
  			<cbc:PriceAmount currencyID="EUR">100.00</cbc:PriceAmount>
  			<cbc:BaseQuantity unitCode="H87">1.00</cbc:BaseQuantity>
  		</cac:Price>
  	</cac:InvoiceLine>
  	<cac:InvoiceLine>
  		<cbc:ID>000020</cbc:ID>
  		<cbc:Note>Item Description</cbc:Note>
  		<cbc:InvoicedQuantity unitCode="H87">2.00</cbc:InvoicedQuantity>
  		<cbc:LineExtensionAmount currencyID="EUR">100.00</cbc:LineExtensionAmount>
  		<cac:OrderLineReference>
  			<cbc:LineID>000002</cbc:LineID>
  		</cac:OrderLineReference>
  		<!-- Commitment Number (Número do compromisso) and reference to Commitment Line Number -->
  		<cac:DocumentReference>
  			<cec:UBLExtensions>
  				<cec:UBLExtension>
  					<cec:ExtensionContent>
  						<vrbl:DocumentReferenceExtension>
  							<cbc:LineID>02</cbc:LineID>
  						</vrbl:DocumentReferenceExtension>
  					</cec:ExtensionContent>
  				</cec:UBLExtension>
  			</cec:UBLExtensions>
  			<cbc:ID schemeID="VRBL:PT:COMMITMENT">COM12345678</cbc:ID>
  			<cbc:IssueDate>2024-05-02</cbc:IssueDate>
  		</cac:DocumentReference>
  		<cac:AllowanceCharge>
  			<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
  			<cbc:AllowanceChargeReason>Sample Description</cbc:AllowanceChargeReason>
  			<cbc:MultiplierFactorNumeric>10.00</cbc:MultiplierFactorNumeric>
  			<cbc:Amount currencyID="EUR">10.00</cbc:Amount>
  			<cbc:BaseAmount currencyID="EUR">100.00</cbc:BaseAmount>
  		</cac:AllowanceCharge>
  		<cac:AllowanceCharge>
  			<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
  			<cbc:AllowanceChargeReason>Sample Description</cbc:AllowanceChargeReason>
  			<cbc:MultiplierFactorNumeric>10.00</cbc:MultiplierFactorNumeric>
  			<cbc:Amount currencyID="EUR">10.00</cbc:Amount>
  			<cbc:BaseAmount currencyID="EUR">100.00</cbc:BaseAmount>
  		</cac:AllowanceCharge>
  		<cac:Item>
  			<cbc:Name>ItemName</cbc:Name>
  			<cac:SellersItemIdentification>
  				<cbc:ID>730430</cbc:ID>
  			</cac:SellersItemIdentification>
  			<!-- Item Commodity Classification (CPV) -->
  			<cac:CommodityClassification>
  				<cbc:ItemClassificationCode listID="STI">09343000-5</cbc:ItemClassificationCode>
  			</cac:CommodityClassification>
  			<cac:ClassifiedTaxCategory>
  				<cbc:ID>S</cbc:ID>
  				<cbc:Percent>25.00</cbc:Percent>
  				<cac:TaxScheme>
  					<cbc:ID>VAT</cbc:ID>
  				</cac:TaxScheme>
  			</cac:ClassifiedTaxCategory>
  		</cac:Item>
  		<cac:Price>
  			<cbc:PriceAmount currencyID="EUR">50.00</cbc:PriceAmount>
  			<cbc:BaseQuantity unitCode="H87">1.00</cbc:BaseQuantity>
  		</cac:Price>
  	</cac:InvoiceLine>
  </ubl:Invoice>

Invoice (PT_invoice_381.xml)

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  <ubl:Invoice xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:cec="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" xmlns:vrbl="urn:vertexinc:vrbl:ExtensionComponent:1">
  	<cec:UBLExtensions>
  		<cec:UBLExtension>
  			<cec:ExtensionContent>
  				<vrbl:InvoiceExtension>
  					<vrbl:BillingSoftware>
  						<vrbl:Description>sistema certificado na AT</vrbl:Description>
  						<vrbl:HashCode>CFTR</vrbl:HashCode>
  						<vrbl:Number>nº 234567</vrbl:Number>
  					</vrbl:BillingSoftware>
  					<vrbl:RoutingDetails>
  						<!-- Unique sender ID. In case of Sweden always the sender's VAT ID -->
  						<vrbl:Sender>PT123456789</vrbl:Sender>
  						<!-- Unique receiver ID. In case of Sweden always a static value identifies the country (Sweden) and the target version to be created -->
  						<vrbl:Receiver>GENERIC_FE-AP_UBL_CIUS-PT_2p1p1</vrbl:Receiver>
  					</vrbl:RoutingDetails>
  				</vrbl:InvoiceExtension>
  			</cec:ExtensionContent>
  		</cec:UBLExtension>
  	</cec:UBLExtensions>
  	<cbc:CustomizationID>urn:vertexinc:vrbl:billing:1</cbc:CustomizationID>
  	<cbc:ProfileID>urn:vertexinc:vrbl:billing:1</cbc:ProfileID>
  	<cbc:ID>4560000001</cbc:ID>
  	<cbc:IssueDate>2024-07-12</cbc:IssueDate>
  	<cbc:IssueTime>15:30:00Z</cbc:IssueTime>
  	<cbc:DueDate>2024-10-10</cbc:DueDate>
  	<cbc:InvoiceTypeCode>381</cbc:InvoiceTypeCode>
  	<cbc:Note>Credit note free-text</cbc:Note>
  	<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
      <!-- Identifier to allocate specific expense on buyer side (Compromisso Number) -->
      <cbc:AccountingCost>COM12345678</cbc:AccountingCost> 
  	<cbc:BuyerReference>buyer_ref_number234</cbc:BuyerReference>
  	<cac:InvoicePeriod>
  		<cbc:StartDate>2024-11-01</cbc:StartDate>
  		<cbc:EndDate>2024-11-30</cbc:EndDate>
  		<cbc:Description>Monthly</cbc:Description>
  	</cac:InvoicePeriod>
      <cac:BillingReference>
  		<cac:InvoiceDocumentReference>
  			<!-- Original invoice number -->
  			<cbc:ID>INV12345</cbc:ID>
  		</cac:InvoiceDocumentReference>
  	</cac:BillingReference>
  	<cac:AccountingSupplierParty>
  		<cac:Party>
              <cac:PartyName>
                  <cbc:Name>Seller Company</cbc:Name>
              </cac:PartyName>
              <cac:PostalAddress>
                  <cbc:StreetName>Rua xpto</cbc:StreetName>
                  <cbc:AdditionalStreetName>additional address data</cbc:AdditionalStreetName>
                  <cbc:CityName>Amadora</cbc:CityName>
                  <cbc:PostalZone>2610-074</cbc:PostalZone>
                  <cbc:CountrySubentity>Amadora</cbc:CountrySubentity>
                  <cac:AddressLine>
                      <cbc:Line>other additional address data</cbc:Line>
                  </cac:AddressLine>
                  <cac:Country>
                      <cbc:IdentificationCode>PT</cbc:IdentificationCode>
                  </cac:Country>
              </cac:PostalAddress>
              <cac:PartyTaxScheme>
                  <cbc:CompanyID>PT123456789</cbc:CompanyID>
                  <cac:TaxScheme>
                      <cbc:ID>VAT</cbc:ID>
                  </cac:TaxScheme>
              </cac:PartyTaxScheme>
              <cac:PartyLegalEntity>
                  <cbc:RegistrationName>Nome de registo do Fornecedor</cbc:RegistrationName>
                  <cbc:CompanyID schemeID="0001">PT123456789</cbc:CompanyID>
                  <cbc:CompanyLegalForm>Legal form</cbc:CompanyLegalForm>
              </cac:PartyLegalEntity>
              <cac:Contact>
                  <cbc:Name>Mrs. Seller</cbc:Name>
                  <cbc:Telephone>213334455</cbc:Telephone>
                  <cbc:ElectronicMail>[email protected]</cbc:ElectronicMail>
              </cac:Contact>
          </cac:Party>
  	</cac:AccountingSupplierParty>
  	<cac:AccountingCustomerParty>
  		<cac:Party>
              <cac:PartyName>
                  <cbc:Name>Customer </cbc:Name>
              </cac:PartyName>
              <cac:PostalAddress>
                  <cbc:StreetName>Rua xpto 2</cbc:StreetName>
                  <cbc:AdditionalStreetName>additional address data</cbc:AdditionalStreetName>
                  <cbc:CityName>Amadora</cbc:CityName>
                  <cbc:PostalZone>2610-011</cbc:PostalZone>
                  <cbc:CountrySubentity>Amadora</cbc:CountrySubentity>
                  <cac:AddressLine>
                      <cbc:Line>other additional address data</cbc:Line>
                  </cac:AddressLine>
                  <cac:Country>
                      <cbc:IdentificationCode>PT</cbc:IdentificationCode>
                  </cac:Country>
              </cac:PostalAddress>
              <cac:PartyTaxScheme>
                  <cbc:CompanyID>PT987654321</cbc:CompanyID>
                  <cac:TaxScheme>
                      <cbc:ID>VAT</cbc:ID>
                  </cac:TaxScheme>
              </cac:PartyTaxScheme>
              <cac:PartyLegalEntity>
                  <cbc:RegistrationName>Customer Registration Name </cbc:RegistrationName>
                  <cbc:CompanyID schemeID="0001">PT987654321</cbc:CompanyID>
              </cac:PartyLegalEntity>
              <cac:Contact>
                  <cbc:Name>Mr. Buyer</cbc:Name>
                  <cbc:Telephone>214445566</cbc:Telephone>
                  <cbc:ElectronicMail>[email protected]</cbc:ElectronicMail>
              </cac:Contact>
  		</cac:Party>
  	</cac:AccountingCustomerParty>
  	<cac:Delivery>
  		<cbc:ActualDeliveryDate>2024-07-12</cbc:ActualDeliveryDate>
  		<cac:DeliveryLocation>
              <cbc:ID schemeID="0088">3210123456789</cbc:ID>
              <cac:Address>
                  <cbc:StreetName>Morada 23</cbc:StreetName>
                  <cbc:AdditionalStreetName>additional address data</cbc:AdditionalStreetName>
                  <cbc:CityName>Amadora</cbc:CityName>
                  <cbc:PostalZone>2610-999</cbc:PostalZone>
                  <cbc:CountrySubentity>Amadora</cbc:CountrySubentity>
                  <cac:AddressLine>
                      <cbc:Line>other additional address data</cbc:Line>
                  </cac:AddressLine>
                  <cac:Country>
                      <cbc:IdentificationCode>PT</cbc:IdentificationCode>
                  </cac:Country>
              </cac:Address>
          </cac:DeliveryLocation>
  		<cac:DeliveryParty>
              <cac:PartyName>
                  <cbc:Name>Delivery-to party name</cbc:Name>
              </cac:PartyName>
          </cac:DeliveryParty>
  	</cac:Delivery>
  	<cac:PaymentMeans>
          <cec:UBLExtensions>
  			<cec:UBLExtension>
  				<cec:ExtensionContent>
  					<vrbl:PaymentMeansExtension>
                          <!-- ATM entity -->
                          <vrbl:ATMPaymentEntity>12345</vrbl:ATMPaymentEntity>
  					</vrbl:PaymentMeansExtension>
  				</cec:ExtensionContent>
  			</cec:UBLExtension>
  		</cec:UBLExtensions>
          <!-- ATM Multibanco payment -->
  		<cbc:PaymentMeansCode>VRBL:PT:MB</cbc:PaymentMeansCode>
  		<!-- ATM payment reference -->
          <cbc:PaymentID>01234566</cbc:PaymentID>
  	</cac:PaymentMeans>
  	<cac:PaymentTerms>
  		<cbc:Note>Up to 10.10.2024 without deduction</cbc:Note>
  	</cac:PaymentTerms>
  	<cac:AllowanceCharge>
  		<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
  		<cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
  		<cbc:Amount currencyID="EUR">100.00</cbc:Amount>
  		<cac:TaxCategory>
  		    <cbc:ID>S</cbc:ID>
  		    <cbc:Percent>25.00</cbc:Percent>
  			<cac:TaxScheme>
  				<cbc:ID>VAT</cbc:ID>
  			</cac:TaxScheme>
  		</cac:TaxCategory>
  	</cac:AllowanceCharge>
  	<cac:AllowanceCharge>
  		<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
  		<cbc:AllowanceChargeReason>Service charge</cbc:AllowanceChargeReason>
  		<cbc:Amount currencyID="EUR">100.00</cbc:Amount>
  		<cac:TaxCategory>
  		    <cbc:ID>S</cbc:ID>
  		    <cbc:Percent>25.00</cbc:Percent>
  			<cac:TaxScheme>
  				<cbc:ID>VAT</cbc:ID>
  			</cac:TaxScheme>
  		</cac:TaxCategory>
  	</cac:AllowanceCharge>
  	<cac:TaxTotal>
  		<cbc:TaxAmount currencyID="EUR">100.00</cbc:TaxAmount>
  		<cac:TaxSubtotal>
  			<cbc:TaxableAmount currencyID="EUR">400.00</cbc:TaxableAmount>
  			<cbc:TaxAmount currencyID="EUR">100.00</cbc:TaxAmount>
  			<cac:TaxCategory>
  				<cbc:ID>S</cbc:ID>
  				<cbc:Percent>25.00</cbc:Percent>
  				<cac:TaxScheme>
  					<cbc:ID>VAT</cbc:ID>
  				</cac:TaxScheme>
  			</cac:TaxCategory>
  		</cac:TaxSubtotal>
  	</cac:TaxTotal>
  	<cac:LegalMonetaryTotal>
  		<cbc:LineExtensionAmount currencyID="EUR">400.00</cbc:LineExtensionAmount>
  		<cbc:TaxExclusiveAmount currencyID="EUR">400.00</cbc:TaxExclusiveAmount>
  		<cbc:TaxInclusiveAmount currencyID="EUR">500.00</cbc:TaxInclusiveAmount>
  		<cbc:AllowanceTotalAmount currencyID="EUR">100.00</cbc:AllowanceTotalAmount>
  		<cbc:ChargeTotalAmount currencyID="EUR">100.00</cbc:ChargeTotalAmount>
  		<cbc:PayableAmount currencyID="EUR">500.00</cbc:PayableAmount>
  	</cac:LegalMonetaryTotal>
  	<cac:InvoiceLine>
  		<cbc:ID>000010</cbc:ID>
  		<cbc:InvoicedQuantity unitCode="H87">3.00</cbc:InvoicedQuantity>
  		<cbc:LineExtensionAmount currencyID="EUR">300.00</cbc:LineExtensionAmount>
  		<cac:OrderLineReference>
  			<cbc:LineID>000001</cbc:LineID>
  		</cac:OrderLineReference>
  		<!-- Commitment Number (Número do compromisso) and reference to Commitment Line Number -->
  		<cac:DocumentReference>
  			<cec:UBLExtensions>
  				<cec:UBLExtension>
  					<cec:ExtensionContent>
  						<vrbl:DocumentReferenceExtension>
  							<cbc:LineID>01</cbc:LineID>
  						</vrbl:DocumentReferenceExtension>
  					</cec:ExtensionContent>
  				</cec:UBLExtension>
  			</cec:UBLExtensions>
  			<cbc:ID schemeID="VRBL:PT:COMMITMENT">COM12345678</cbc:ID>
  			<cbc:IssueDate>2024-05-02</cbc:IssueDate>
  		</cac:DocumentReference>
  		<cac:Item>
  			<cbc:Name>ItemName</cbc:Name>
  			<cac:SellersItemIdentification>
  				<cbc:ID>730430</cbc:ID>
  			</cac:SellersItemIdentification>
  			<!-- Item Commodity Classification (CPV) -->
  			<cac:CommodityClassification>
  				<cbc:ItemClassificationCode listID="STI">09343000-5</cbc:ItemClassificationCode>
  			</cac:CommodityClassification>
  			<cac:ClassifiedTaxCategory>
  				<cbc:ID>S</cbc:ID>
  				<cbc:Percent>25.00</cbc:Percent>
  				<cac:TaxScheme>
  					<cbc:ID>VAT</cbc:ID>
  				</cac:TaxScheme>
  			</cac:ClassifiedTaxCategory>
  		</cac:Item>
  		<cac:Price>
  			<cbc:PriceAmount currencyID="EUR">100.00</cbc:PriceAmount>
  			<cbc:BaseQuantity unitCode="H87">1.00</cbc:BaseQuantity>
  		</cac:Price>
  	</cac:InvoiceLine>
  	<cac:InvoiceLine>
  		<cbc:ID>000020</cbc:ID>
  		<cbc:Note>Item Description</cbc:Note>
  		<cbc:InvoicedQuantity unitCode="H87">2.00</cbc:InvoicedQuantity>
  		<cbc:LineExtensionAmount currencyID="EUR">100.00</cbc:LineExtensionAmount>
  		<cac:OrderLineReference>
  			<cbc:LineID>000002</cbc:LineID>
  		</cac:OrderLineReference>
  		<!-- Commitment Number (Número do compromisso) and reference to Commitment Line Number -->
  		<cac:DocumentReference>
  			<cec:UBLExtensions>
  				<cec:UBLExtension>
  					<cec:ExtensionContent>
  						<vrbl:DocumentReferenceExtension>
  							<cbc:LineID>02</cbc:LineID>
  						</vrbl:DocumentReferenceExtension>
  					</cec:ExtensionContent>
  				</cec:UBLExtension>
  			</cec:UBLExtensions>
  			<cbc:ID schemeID="VRBL:PT:COMMITMENT">COM12345678</cbc:ID>
  			<cbc:IssueDate>2024-05-02</cbc:IssueDate>
  		</cac:DocumentReference>
  		<cac:AllowanceCharge>
  			<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
  			<cbc:AllowanceChargeReason>Sample Description</cbc:AllowanceChargeReason>
  			<cbc:MultiplierFactorNumeric>10.00</cbc:MultiplierFactorNumeric>
  			<cbc:Amount currencyID="EUR">10.00</cbc:Amount>
  			<cbc:BaseAmount currencyID="EUR">100.00</cbc:BaseAmount>
  		</cac:AllowanceCharge>
  		<cac:AllowanceCharge>
  			<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
  			<cbc:AllowanceChargeReason>Sample Description</cbc:AllowanceChargeReason>
  			<cbc:MultiplierFactorNumeric>10.00</cbc:MultiplierFactorNumeric>
  			<cbc:Amount currencyID="EUR">10.00</cbc:Amount>
  			<cbc:BaseAmount currencyID="EUR">100.00</cbc:BaseAmount>
  		</cac:AllowanceCharge>
  		<cac:Item>
  			<cbc:Name>ItemName</cbc:Name>
  			<cac:SellersItemIdentification>
  				<cbc:ID>730430</cbc:ID>
  			</cac:SellersItemIdentification>
  			<!-- Item Commodity Classification (CPV) -->
  			<cac:CommodityClassification>
  				<cbc:ItemClassificationCode listID="STI">09343000-5</cbc:ItemClassificationCode>
  			</cac:CommodityClassification>
  			<cac:ClassifiedTaxCategory>
  				<cbc:ID>S</cbc:ID>
  				<cbc:Percent>25.00</cbc:Percent>
  				<cac:TaxScheme>
  					<cbc:ID>VAT</cbc:ID>
  				</cac:TaxScheme>
  			</cac:ClassifiedTaxCategory>
  		</cac:Item>
  		<cac:Price>
  			<cbc:PriceAmount currencyID="EUR">50.00</cbc:PriceAmount>
  			<cbc:BaseQuantity unitCode="H87">1.00</cbc:BaseQuantity>
  		</cac:Price>
  	</cac:InvoiceLine>
  </ubl:Invoice>