<Invoice xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
    xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
    xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
    xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2">
    <cbc:UBLVersionID>2.1</cbc:UBLVersionID>
    <cbc:ProfileID>reporting:1.0</cbc:ProfileID>
    <cbc:ID>RINV/2022/00006</cbc:ID>
    <cbc:UUID>6c49b8e0-2ce5-11ed-b6c7-c54ae37ec60b</cbc:UUID>
    <cbc:IssueDate>2022-09-05</cbc:IssueDate>
    <cbc:IssueTime>09:39:15</cbc:IssueTime>
    <cbc:InvoiceTypeCode name="0100000">381</cbc:InvoiceTypeCode>
    <cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode>
    <cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode>
    <cbc:BuyerReference>Saudi Aramco</cbc:BuyerReference>
    <cac:BillingReference>
        <cac:InvoiceDocumentReference>
            <cbc:ID>test</cbc:ID>
        </cac:InvoiceDocumentReference>
    </cac:BillingReference>
    <cac:AdditionalDocumentReference>
        <cbc:ID>PIH</cbc:ID>
        <cac:Attachment>
            <cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">
                NWZlY2ViNjZmZmM4NmYzOGQ5NTI3ODZjNmQ2OTZjNzljMmRiYzIzOWRkNGU5MWI0NjcyOWQ3M2EyN2ZiNTdlOQ==</cbc:EmbeddedDocumentBinaryObject>
        </cac:Attachment>
    </cac:AdditionalDocumentReference>
    <cac:AdditionalDocumentReference>
        <cbc:ID>ICV</cbc:ID>
        <cbc:UUID>137</cbc:UUID>
    </cac:AdditionalDocumentReference>
    <cac:AccountingSupplierParty>
        <cac:Party>
            <cac:PartyIdentification>
                <cbc:ID schemeID="CRN">2525252525252</cbc:ID>
            </cac:PartyIdentification>
            <cac:PartyName>
                <cbc:Name>SA Company Test</cbc:Name>
            </cac:PartyName>
            <cac:PostalAddress>
                <cbc:StreetName>Al Amir Mohammed Bin Abdul Aziz Street</cbc:StreetName>
                <cbc:BuildingNumber>1234</cbc:BuildingNumber>
                <cbc:PlotIdentification>1234</cbc:PlotIdentification>
                <cbc:CitySubdivisionName>Testomania</cbc:CitySubdivisionName>
                <cbc:CityName>&#1575;&#1604;&#1605;&#1583;&#1610;&#1606;&#1577; &#1575;&#1604;&#1605;&#1606;&#1608;&#1585;&#1577;</cbc:CityName>
                <cbc:PostalZone>42317</cbc:PostalZone>
                <cbc:CountrySubentity>Riyadh</cbc:CountrySubentity>
                <cbc:CountrySubentityCode>RUH</cbc:CountrySubentityCode>
                <cac:Country>
                    <cbc:IdentificationCode>SA</cbc:IdentificationCode>
                    <cbc:Name>Saudi Arabia</cbc:Name>
                </cac:Country>
            </cac:PostalAddress>
            <cac:PartyTaxScheme>
                <cbc:RegistrationName>SA Company Test</cbc:RegistrationName>
                <cbc:CompanyID>311111111111113</cbc:CompanyID>
                <cac:RegistrationAddress>
                    <cbc:StreetName>Al Amir Mohammed Bin Abdul Aziz Street</cbc:StreetName>
                    <cbc:BuildingNumber>1234</cbc:BuildingNumber>
                    <cbc:PlotIdentification>1234</cbc:PlotIdentification>
                    <cbc:CitySubdivisionName>Testomania</cbc:CitySubdivisionName>
                    <cbc:CityName>&#1575;&#1604;&#1605;&#1583;&#1610;&#1606;&#1577; &#1575;&#1604;&#1605;&#1606;&#1608;&#1585;&#1577;</cbc:CityName>
                    <cbc:PostalZone>42317</cbc:PostalZone>
                    <cbc:CountrySubentity>Riyadh</cbc:CountrySubentity>
                    <cbc:CountrySubentityCode>RUH</cbc:CountrySubentityCode>
                    <cac:Country>
                        <cbc:IdentificationCode>SA</cbc:IdentificationCode>
                        <cbc:Name>Saudi Arabia</cbc:Name>
                    </cac:Country>
                </cac:RegistrationAddress>
                <cac:TaxScheme>
                    <cbc:ID>VAT</cbc:ID>
                </cac:TaxScheme>
            </cac:PartyTaxScheme>
            <cac:PartyLegalEntity>
                <cbc:RegistrationName>SA Company Test</cbc:RegistrationName>
                <cbc:CompanyID>311111111111113</cbc:CompanyID>
                <cac:RegistrationAddress>
                    <cbc:StreetName>Al Amir Mohammed Bin Abdul Aziz Street</cbc:StreetName>
                    <cbc:BuildingNumber>1234</cbc:BuildingNumber>
                    <cbc:PlotIdentification>1234</cbc:PlotIdentification>
                    <cbc:CitySubdivisionName>Testomania</cbc:CitySubdivisionName>
                    <cbc:CityName>&#1575;&#1604;&#1605;&#1583;&#1610;&#1606;&#1577; &#1575;&#1604;&#1605;&#1606;&#1608;&#1585;&#1577;</cbc:CityName>
                    <cbc:PostalZone>42317</cbc:PostalZone>
                    <cbc:CountrySubentity>Riyadh</cbc:CountrySubentity>
                    <cbc:CountrySubentityCode>RUH</cbc:CountrySubentityCode>
                    <cac:Country>
                        <cbc:IdentificationCode>SA</cbc:IdentificationCode>
                        <cbc:Name>Saudi Arabia</cbc:Name>
                    </cac:Country>
                </cac:RegistrationAddress>
            </cac:PartyLegalEntity>
            <cac:Contact>
                <cbc:ID>337</cbc:ID>
                <cbc:Name>SA Company Test</cbc:Name>
                <cbc:Telephone>+966512345678</cbc:Telephone>
                <cbc:ElectronicMail>info@company.saexample.com</cbc:ElectronicMail>
            </cac:Contact>
        </cac:Party>
    </cac:AccountingSupplierParty>
    <cac:AccountingCustomerParty>
        <cac:Party>
            <cac:PartyIdentification>
                <cbc:ID schemeID="CRN">353535353535353</cbc:ID>
            </cac:PartyIdentification>
            <cac:PartyName>
                <cbc:Name>Saud Ahmed</cbc:Name>
            </cac:PartyName>
            <cac:PostalAddress>
                <cbc:StreetName>4557 King Salman St</cbc:StreetName>
                <cbc:BuildingNumber>12300</cbc:BuildingNumber>
                <cbc:PlotIdentification>2323</cbc:PlotIdentification>
                <cbc:CitySubdivisionName>Neighbor!</cbc:CitySubdivisionName>
                <cbc:CityName>Riyadh</cbc:CityName>
                <cbc:PostalZone>94538</cbc:PostalZone>
                <cbc:CountrySubentity>Riyadh</cbc:CountrySubentity>
                <cbc:CountrySubentityCode>RUH</cbc:CountrySubentityCode>
                <cac:Country>
                    <cbc:IdentificationCode>SA</cbc:IdentificationCode>
                    <cbc:Name>Saudi Arabia</cbc:Name>
                </cac:Country>
            </cac:PostalAddress>
            <cac:PartyTaxScheme>
                <cbc:RegistrationName>Saud Ahmed</cbc:RegistrationName>
                <cbc:CompanyID>311111111111113</cbc:CompanyID>
                <cac:RegistrationAddress>
                    <cbc:StreetName>4557 King Salman St</cbc:StreetName>
                    <cbc:BuildingNumber>12300</cbc:BuildingNumber>
                    <cbc:PlotIdentification>2323</cbc:PlotIdentification>
                    <cbc:CitySubdivisionName>Neighbor!</cbc:CitySubdivisionName>
                    <cbc:CityName>Riyadh</cbc:CityName>
                    <cbc:PostalZone>94538</cbc:PostalZone>
                    <cbc:CountrySubentity>Riyadh</cbc:CountrySubentity>
                    <cbc:CountrySubentityCode>RUH</cbc:CountrySubentityCode>
                    <cac:Country>
                        <cbc:IdentificationCode>SA</cbc:IdentificationCode>
                        <cbc:Name>Saudi Arabia</cbc:Name>
                    </cac:Country>
                </cac:RegistrationAddress>
                <cac:TaxScheme>
                    <cbc:ID>VAT</cbc:ID>
                </cac:TaxScheme>
            </cac:PartyTaxScheme>
            <cac:PartyLegalEntity>
                <cbc:RegistrationName>Saud Ahmed</cbc:RegistrationName>
                <cbc:CompanyID>311111111111113</cbc:CompanyID>
                <cac:RegistrationAddress>
                <cbc:StreetName>4557 King Salman St</cbc:StreetName>
                <cbc:BuildingNumber>12300</cbc:BuildingNumber>
                <cbc:PlotIdentification>2323</cbc:PlotIdentification>
                <cbc:CitySubdivisionName>Neighbor!</cbc:CitySubdivisionName>
                <cbc:CityName>Riyadh</cbc:CityName>
                <cbc:PostalZone>94538</cbc:PostalZone>
                <cbc:CountrySubentity>Riyadh</cbc:CountrySubentity>
                <cbc:CountrySubentityCode>RUH</cbc:CountrySubentityCode>
                <cac:Country>
                    <cbc:IdentificationCode>SA</cbc:IdentificationCode>
                    <cbc:Name>Saudi Arabia</cbc:Name>
                </cac:Country>
                </cac:RegistrationAddress>
            </cac:PartyLegalEntity>
            <cac:Contact>
                <cbc:ID>340</cbc:ID>
                <cbc:Name>Saud Ahmed</cbc:Name>
                <cbc:Telephone>+966556666666</cbc:Telephone>
                <cbc:ElectronicMail>saudi.aramco@example.com</cbc:ElectronicMail>
            </cac:Contact>
        </cac:Party>
    </cac:AccountingCustomerParty>
    <cac:Delivery>
      <cbc:ActualDeliveryDate>2022-09-05</cbc:ActualDeliveryDate>
    </cac:Delivery>
    <cac:PaymentMeans>
        <cbc:PaymentMeansCode listID="UN/ECE 4461">1</cbc:PaymentMeansCode>
        <cbc:PaymentDueDate>2022-09-05</cbc:PaymentDueDate>
        <cbc:InstructionNote>Ttest</cbc:InstructionNote>
        <cbc:PaymentID>RINV/2022/00002</cbc:PaymentID>
    </cac:PaymentMeans>
    <cac:TaxTotal>
        <cbc:TaxAmount currencyID="SAR">48.00</cbc:TaxAmount>
        <cac:TaxSubtotal>
            <cbc:TaxableAmount currencyID="SAR">320.00</cbc:TaxableAmount>
            <cbc:TaxAmount currencyID="SAR">48.00</cbc:TaxAmount>
            <cbc:Percent>15.0</cbc:Percent>
            <cac:TaxCategory>
                <cbc:ID>S</cbc:ID>
                <cbc:Percent>15.0</cbc:Percent>
                <cac:TaxScheme>
                    <cbc:ID>VAT</cbc:ID>
                </cac:TaxScheme>
            </cac:TaxCategory>
        </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:TaxTotal>
        <cbc:TaxAmount currencyID="SAR">48.00</cbc:TaxAmount>
    </cac:TaxTotal>
    <cac:LegalMonetaryTotal>
        <cbc:LineExtensionAmount currencyID="SAR">320.00</cbc:LineExtensionAmount>
        <cbc:TaxExclusiveAmount currencyID="SAR">320.00</cbc:TaxExclusiveAmount>
        <cbc:TaxInclusiveAmount currencyID="SAR">368.00</cbc:TaxInclusiveAmount>
        <cbc:AllowanceTotalAmount currencyID="SAR">0.00</cbc:AllowanceTotalAmount>
        <cbc:PrepaidAmount currencyID="SAR">0.00</cbc:PrepaidAmount>
        <cbc:PayableAmount currencyID="SAR">368.00</cbc:PayableAmount>
    </cac:LegalMonetaryTotal>
    <cac:InvoiceLine>
        <cbc:ID>390</cbc:ID>
        <cbc:InvoicedQuantity unitCode="C62">1.0</cbc:InvoicedQuantity>
        <cbc:LineExtensionAmount currencyID="SAR">320.00</cbc:LineExtensionAmount>
        <cac:TaxTotal>
            <cbc:TaxAmount currencyID="SAR">48.00</cbc:TaxAmount>
            <cbc:RoundingAmount currencyID="SAR">368.00</cbc:RoundingAmount>
        </cac:TaxTotal>
        <cac:Item>
            <cbc:Description>[P0001] Product A</cbc:Description>
            <cbc:Name>Product A</cbc:Name>
            <cac:SellersItemIdentification>
                <cbc:ID>P0001</cbc:ID>
            </cac:SellersItemIdentification>
            <cac:ClassifiedTaxCategory>
                <cbc:ID>S</cbc:ID>
                <cbc:Percent>15.0</cbc:Percent>
                <cac:TaxScheme>
                    <cbc:ID>VAT</cbc:ID>
                </cac:TaxScheme>
            </cac:ClassifiedTaxCategory>
        </cac:Item>
        <cac:Price>
            <cbc:PriceAmount currencyID="SAR">320.0</cbc:PriceAmount>
        </cac:Price>
    </cac:InvoiceLine>
</Invoice>
