<?xml version="1.0" encoding="UTF-8"?>
<!-- SA - Saudi Arabia ZATCA e-Invoice (UBL 2.1) Sample -->
<!-- FATOORA platform compliant, Phase 2 (Integration) -->
<Invoice xmlns="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:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
         xmlns:sig="urn:oasis:names:specification:ubl:schema:xsd:CommonSignatureComponents-2">
  <ext:UBLExtensions>
    <ext:UBLExtension>
      <ext:ExtensionContent>
        <!-- ZATCA QR Code (TLV base64-encoded) -->
        <!-- TLV fields: 1=Seller, 2=VAT Number, 3=Timestamp, 4=Total, 5=VAT Amount -->
        <sig:QRCode>AQ5UYXhUZW4gRGVtbyBBLsWeLgIPMzAwMDAwMDAwMDAwMDAzAxQyMDI2LTAxLTE1VDEwOjMwOjAwWgQHMTg3NTAuMAUGMjUwMC4w</sig:QRCode>
        <!-- Cryptographic Stamp Identifier (CSID) -->
        <sig:CSID>TXTN-CSID-2026-DEMO-00000001</sig:CSID>
      </ext:ExtensionContent>
    </ext:UBLExtension>
  </ext:UBLExtensions>
  <cbc:ProfileID>reporting:1.0</cbc:ProfileID>
  <cbc:ID>ZAT-2026-00099</cbc:ID>
  <cbc:UUID>6f4d20e0-6bfe-4a80-9389-7daabc67e123</cbc:UUID>
  <cbc:IssueDate>2026-01-15</cbc:IssueDate>
  <cbc:IssueTime>10:30:00</cbc:IssueTime>
  <!-- 388 = Standard Tax Invoice -->
  <cbc:InvoiceTypeCode name="0100000">388</cbc:InvoiceTypeCode>
  <cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode>
  <cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode>
  <!-- Seller -->
  <cac:AccountingSupplierParty>
    <cac:Party>
      <cac:PartyIdentification>
        <cbc:ID schemeID="CRN">3100000000</cbc:ID>
      </cac:PartyIdentification>
      <cac:PartyName><cbc:Name>TaxTen Demo A.Ş.</cbc:Name></cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>King Fahd Road</cbc:StreetName>
        <cbc:BuildingNumber>1234</cbc:BuildingNumber>
        <cbc:CityName>Riyadh</cbc:CityName>
        <cbc:PostalZone>12345</cbc:PostalZone>
        <cac:Country><cbc:IdentificationCode>SA</cbc:IdentificationCode></cac:Country>
      </cac:PostalAddress>
      <cac:PartyTaxScheme>
        <cbc:CompanyID>300000000000003</cbc:CompanyID>
        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
      </cac:PartyTaxScheme>
    </cac:Party>
  </cac:AccountingSupplierParty>
  <!-- Buyer -->
  <cac:AccountingCustomerParty>
    <cac:Party>
      <cac:PartyName><cbc:Name>Al-Misaliyah Trading Co.</cbc:Name></cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>Olaya Street</cbc:StreetName>
        <cbc:CityName>Jeddah</cbc:CityName>
        <cbc:PostalZone>21589</cbc:PostalZone>
        <cac:Country><cbc:IdentificationCode>SA</cbc:IdentificationCode></cac:Country>
      </cac:PostalAddress>
      <cac:PartyTaxScheme>
        <cbc:CompanyID>300000000000099</cbc:CompanyID>
        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
      </cac:PartyTaxScheme>
    </cac:Party>
  </cac:AccountingCustomerParty>
  <!-- VAT Total (15% standard rate in KSA) -->
  <cac:TaxTotal>
    <cbc:TaxAmount currencyID="SAR">2500.00</cbc:TaxAmount>
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="SAR">16666.67</cbc:TaxableAmount>
      <cbc:TaxAmount currencyID="SAR">2500.00</cbc:TaxAmount>
      <cac:TaxCategory>
        <cbc:ID>S</cbc:ID>
        <cbc:Percent>15</cbc:Percent>
        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
      </cac:TaxCategory>
    </cac:TaxSubtotal>
  </cac:TaxTotal>
  <cac:LegalMonetaryTotal>
    <cbc:LineExtensionAmount currencyID="SAR">16666.67</cbc:LineExtensionAmount>
    <cbc:TaxExclusiveAmount currencyID="SAR">16666.67</cbc:TaxExclusiveAmount>
    <cbc:TaxInclusiveAmount currencyID="SAR">19166.67</cbc:TaxInclusiveAmount>
    <cbc:PayableAmount currencyID="SAR">19166.67</cbc:PayableAmount>
  </cac:LegalMonetaryTotal>
  <cac:InvoiceLine>
    <cbc:ID>1</cbc:ID>
    <cbc:InvoicedQuantity unitCode="C62">5</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="SAR">16666.67</cbc:LineExtensionAmount>
    <cac:Item><cbc:Name>Cloud Software Annual License</cbc:Name></cac:Item>
    <cac:Price><cbc:PriceAmount currencyID="SAR">3333.33</cbc:PriceAmount></cac:Price>
  </cac:InvoiceLine>
</Invoice>
