Issue with Prepayment reporting (BR-KSA-80)

I’ve been trying to report an invoice involving prepaid amount calculations, following all the steps as mentioned in the Zatca Help Manual (link) (ref Page: 21)

I’m facing the error as attached:

The Pre-Paid amount (BT-113) must be equal to the sum total of the Prepayment VAT category Taxable Amount (KSA-31) and the Prepayment VAT Category Tax Amount (KSA-32).

Following the sample payload I’m assuming the values are correct, if anyone could please validate the XML

<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"><cbc:ProfileID>reporting:1.0</cbc:ProfileID><cbc:ID>Invo-00022</cbc:ID><cbc:UUID>ab2cbc6e-87de-4c3f-bd2c-22c6541d9e06</cbc:UUID><cbc:IssueDate>2024-09-23</cbc:IssueDate><cbc:IssueTime>06:30:00</cbc:IssueTime><cbc:InvoiceTypeCode name="0200000">388</cbc:InvoiceTypeCode><cbc:Note languageID="en"></cbc:Note><cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode><cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode><cac:AdditionalDocumentReference><cbc:ID>ICV</cbc:ID><cbc:UUID>23</cbc:UUID></cac:AdditionalDocumentReference><cac:AdditionalDocumentReference><cbc:ID>PIH</cbc:ID><cac:Attachment><cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">FRrtvjAL9+GHoouBevARnFIA4mkP4UBEuLOx3ma8rbE=</cbc:EmbeddedDocumentBinaryObject></cac:Attachment></cac:AdditionalDocumentReference><cac:AccountingSupplierParty><cac:Party><cac:PartyIdentification><cbc:ID schemeID="CRN">311466958200003</cbc:ID></cac:PartyIdentification><cac:PostalAddress><cbc:StreetName>4419 Western Ring Branch Rd</cbc:StreetName><cbc:AdditionalStreetName>4419 Western Ring Branch Rd, 4419 Western Ring Branch Rd, Riyadh, Saudi Arabia, 12334</cbc:AdditionalStreetName><cbc:BuildingNumber>4419 Western Ring Branch Rd</cbc:BuildingNumber><cbc:CitySubdivisionName>Riyadh</cbc:CitySubdivisionName><cbc:CityName>Riyadh</cbc:CityName><cbc:PostalZone>12334</cbc:PostalZone><cbc:CountrySubentity>Saudi Arabia</cbc:CountrySubentity><cac:Country><cbc:IdentificationCode>SA</cbc:IdentificationCode></cac:Country></cac:PostalAddress><cac:PartyTaxScheme><cbc:CompanyID>311466958200003</cbc:CompanyID><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:PartyTaxScheme><cac:PartyLegalEntity><cbc:RegistrationName>Textile Mix Trading Company</cbc:RegistrationName></cac:PartyLegalEntity></cac:Party></cac:AccountingSupplierParty><cac:AccountingCustomerParty><cac:Party><cac:PostalAddress><cbc:StreetName>112</cbc:StreetName><cbc:AdditionalStreetName>Doha Al Shamaliah, Al Dawhah Ash Shamaliyah, 112, Dhahran, Saudi Arabia, 41111</cbc:AdditionalStreetName><cbc:BuildingNumber>Doha Al Shamaliah, Al Dawhah Ash Shamaliyah</cbc:BuildingNumber><cbc:CitySubdivisionName>Dhahran</cbc:CitySubdivisionName><cbc:CityName>Dhahran</cbc:CityName><cbc:PostalZone>41111</cbc:PostalZone><cbc:CountrySubentity>Saudi Arabia</cbc:CountrySubentity><cac:Country><cbc:IdentificationCode>SA</cbc:IdentificationCode></cac:Country></cac:PostalAddress><cac:PartyTaxScheme><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:PartyTaxScheme><cac:PartyLegalEntity><cbc:RegistrationName>Demo User</cbc:RegistrationName></cac:PartyLegalEntity></cac:Party></cac:AccountingCustomerParty><cac:Delivery><cbc:ActualDeliveryDate>2024-09-25</cbc:ActualDeliveryDate><cbc:LatestDeliveryDate>2024-09-25</cbc:LatestDeliveryDate></cac:Delivery><cac:PaymentMeans><cbc:PaymentMeansCode>30</cbc:PaymentMeansCode></cac:PaymentMeans><cac:AllowanceCharge><cbc:ChargeIndicator>false</cbc:ChargeIndicator><cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason><cbc:Amount currencyID="SAR">0</cbc:Amount><cac:TaxCategory><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5305">S</cbc:ID><cbc:Percent>15.00</cbc:Percent><cac:TaxScheme><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5153">VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory></cac:AllowanceCharge><cac:AllowanceCharge><cbc:ChargeIndicator>true</cbc:ChargeIndicator><cbc:AllowanceChargeReason>Shipping and Handling</cbc:AllowanceChargeReason><cbc:Amount currencyID="SAR">10</cbc:Amount><cac:TaxCategory><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5305">S</cbc:ID><cbc:Percent>15</cbc:Percent><cac:TaxScheme><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5153">VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory></cac:AllowanceCharge><cac:AllowanceCharge><cbc:ChargeIndicator>true</cbc:ChargeIndicator><cbc:AllowanceChargeReason>cod_fee</cbc:AllowanceChargeReason><cbc:Amount currencyID="SAR">10</cbc:Amount><cac:TaxCategory><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5305">S</cbc:ID><cbc:Percent>15</cbc:Percent><cac:TaxScheme><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5153">VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory></cac:AllowanceCharge><cac:TaxTotal><cbc:TaxAmount currencyID="SAR">16.5</cbc:TaxAmount></cac:TaxTotal><cac:TaxTotal><cbc:TaxAmount currencyID="SAR">16.5</cbc:TaxAmount><cac:TaxSubtotal><cbc:TaxableAmount currencyID="SAR">110</cbc:TaxableAmount><cbc:TaxAmount currencyID="SAR">16.5</cbc:TaxAmount><cac:TaxCategory><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5305">S</cbc:ID><cbc:Percent>15</cbc:Percent><cac:TaxScheme><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5153">VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory></cac:TaxSubtotal></cac:TaxTotal><cac:LegalMonetaryTotal><cbc:LineExtensionAmount currencyID="SAR">90</cbc:LineExtensionAmount><cbc:TaxExclusiveAmount currencyID="SAR">110</cbc:TaxExclusiveAmount><cbc:TaxInclusiveAmount currencyID="SAR">126.5</cbc:TaxInclusiveAmount><cbc:AllowanceTotalAmount currencyID="SAR">0</cbc:AllowanceTotalAmount><cbc:ChargeTotalAmount currencyID="SAR">20</cbc:ChargeTotalAmount><cbc:PrepaidAmount currencyID="SAR">126.5</cbc:PrepaidAmount><cbc:PayableAmount currencyID="SAR">0.0</cbc:PayableAmount></cac:LegalMonetaryTotal><cac:InvoiceLine><cbc:ID>1</cbc:ID><cbc:InvoicedQuantity unitCode="PCE">1</cbc:InvoicedQuantity><cbc:LineExtensionAmount currencyID="SAR">90</cbc:LineExtensionAmount><cac:TaxTotal><cbc:TaxAmount currencyID="SAR">13.5</cbc:TaxAmount><cbc:RoundingAmount currencyID="SAR">103.5</cbc:RoundingAmount><cac:TaxSubtotal><cbc:TaxableAmount currencyID="SAR">90</cbc:TaxableAmount><cbc:TaxAmount currencyID="SAR">13.5</cbc:TaxAmount><cac:TaxCategory><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5305">S</cbc:ID><cbc:Percent>15</cbc:Percent><cac:TaxScheme><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5153">VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory></cac:TaxSubtotal></cac:TaxTotal><cac:Item><cbc:Name>IdeaPad Slim 3 Gen 8, 39.62cms - AMD R5 (Arctic Grey)</cbc:Name><cac:ClassifiedTaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>15</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:ClassifiedTaxCategory></cac:Item><cac:Price><cbc:PriceAmount currencyID="SAR">90</cbc:PriceAmount><cac:AllowanceCharge><cbc:ChargeIndicator>false</cbc:ChargeIndicator><cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason><cbc:Amount currencyID="SAR">10</cbc:Amount></cac:AllowanceCharge></cac:Price></cac:InvoiceLine><cac:InvoiceLine><cbc:ID>2</cbc:ID><cbc:InvoicedQuantity unitCode="PCE">0.0</cbc:InvoicedQuantity><cbc:LineExtensionAmount currencyID="SAR">0.0</cbc:LineExtensionAmount><cac:DocumentReference><cbc:ID>Invo-00022</cbc:ID><cbc:IssueDate>2024-09-23</cbc:IssueDate><cbc:IssueTime>06:30:00</cbc:IssueTime><cbc:DocumentTypeCode>386</cbc:DocumentTypeCode></cac:DocumentReference><cac:TaxTotal><cbc:TaxAmount currencyID="SAR">0.0</cbc:TaxAmount><cbc:RoundingAmount currencyID="SAR">0.0</cbc:RoundingAmount><cac:TaxSubtotal><cbc:TaxableAmount currencyID="SAR">110</cbc:TaxableAmount><cbc:TaxAmount currencyID="SAR">16.5</cbc:TaxAmount><cac:TaxCategory><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5305">S</cbc:ID><cbc:Percent>15</cbc:Percent><cac:TaxScheme><cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5153">VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory></cac:TaxSubtotal></cac:TaxTotal><cac:Item><cbc:Name>Prepayment adjustment</cbc:Name><cac:ClassifiedTaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>15.00</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:ClassifiedTaxCategory></cac:Item><cac:Price><cbc:PriceAmount currencyID="SAR">0.0</cbc:PriceAmount></cac:Price></cac:InvoiceLine></Invoice>

Thanks

@naman-omniful

<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:ccts="urn:un:unece:uncefact:documentation:2"
         xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
         xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
         xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2"
         xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    
    <cbc:UBLVersionID>2.1</cbc:UBLVersionID>
    <cbc:ProfileID>reporting:1.0</cbc:ProfileID>
    <cbc:ID>Invo-00022</cbc:ID>
    <cbc:UUID>ab2cbc6e-87de-4c3f-bd2c-22c6541d9e06</cbc:UUID>
    <cbc:IssueDate>2024-09-23</cbc:IssueDate>
    <cbc:IssueTime>06:30:00</cbc:IssueTime>
    <cbc:InvoiceTypeCode name="0200000">388</cbc:InvoiceTypeCode>
    <cbc:Note languageID="en"/>
    <cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode>
    <cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode>
    
    <cac:AdditionalDocumentReference>
        <cbc:ID>ICV</cbc:ID>
        <cbc:UUID>23</cbc:UUID>
    </cac:AdditionalDocumentReference>
    
    <cac:AdditionalDocumentReference>
        <cbc:ID>PIH</cbc:ID>
        <cac:Attachment>
            <cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">I6/IHWH0UsVDbQ1Phyw7bFlx9yEqKehtAtmFqi2dEr4=</cbc:EmbeddedDocumentBinaryObject>
        </cac:Attachment>
    </cac:AdditionalDocumentReference>
    
    <cac:AccountingSupplierParty>
        <cac:Party>
            <cac:PartyIdentification>
                <cbc:ID schemeID="CRN">311466958200003</cbc:ID>
            </cac:PartyIdentification>
            <cac:PostalAddress>
                <cbc:StreetName>4419 Western Ring Branch Rd</cbc:StreetName>
                <cbc:AdditionalStreetName>4419 Western Ring Branch Rd, 4419 Western Ring Branch Rd, Riyadh, Saudi Arabia, 12334</cbc:AdditionalStreetName>
                <cbc:BuildingNumber>4419</cbc:BuildingNumber>
                <cbc:CitySubdivisionName>Riyadh</cbc:CitySubdivisionName>
                <cbc:CityName>Riyadh</cbc:CityName>
                <cbc:PostalZone>12334</cbc:PostalZone>
                <cbc:CountrySubentity>Saudi Arabia</cbc:CountrySubentity>
                <cac:Country>
                    <cbc:IdentificationCode>SA</cbc:IdentificationCode>
                </cac:Country>
            </cac:PostalAddress>
            <cac:PartyTaxScheme>
                <cbc:CompanyID>311466958200003</cbc:CompanyID>
                <cac:TaxScheme>
                    <cbc:ID>VAT</cbc:ID>
                </cac:TaxScheme>
            </cac:PartyTaxScheme>
            <cac:PartyLegalEntity>
                <cbc:RegistrationName>Textile Mix Trading Company</cbc:RegistrationName>
            </cac:PartyLegalEntity>
        </cac:Party>
    </cac:AccountingSupplierParty>
    
    <cac:AccountingCustomerParty>
        <cac:Party>
            <cac:PostalAddress>
                <cbc:StreetName>112</cbc:StreetName>
                <cbc:AdditionalStreetName>Doha Al Shamaliah, Al Dawhah Ash Shamaliyah, 112, Dhahran, Saudi Arabia, 41111</cbc:AdditionalStreetName>
                <cbc:BuildingNumber>1234</cbc:BuildingNumber>
                <cbc:CitySubdivisionName>Dhahran</cbc:CitySubdivisionName>
                <cbc:CityName>Dhahran</cbc:CityName>
                <cbc:PostalZone>41111</cbc:PostalZone>
                <cbc:CountrySubentity>Saudi Arabia</cbc:CountrySubentity>
                <cac:Country>
                    <cbc:IdentificationCode>SA</cbc:IdentificationCode>
                </cac:Country>
            </cac:PostalAddress>
            <cac:PartyTaxScheme>
                <cac:TaxScheme>
                    <cbc:ID>VAT</cbc:ID>
                </cac:TaxScheme>
            </cac:PartyTaxScheme>
            <cac:PartyLegalEntity>
                <cbc:RegistrationName>Demo User</cbc:RegistrationName>
            </cac:PartyLegalEntity>
        </cac:Party>
    </cac:AccountingCustomerParty>
    
    <cac:Delivery>
        <cbc:ActualDeliveryDate>2024-09-25</cbc:ActualDeliveryDate>
        <cbc:LatestDeliveryDate>2024-09-25</cbc:LatestDeliveryDate>
    </cac:Delivery>
    
    <cac:PaymentMeans>
        <cbc:PaymentMeansCode>42</cbc:PaymentMeansCode>
    </cac:PaymentMeans>
    
    <cac:AllowanceCharge>
        <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
        <cbc:AllowanceChargeReasonCode>95</cbc:AllowanceChargeReasonCode>
        <cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
        <cbc:Amount currencyID="SAR">0.00</cbc:Amount>
        <cac:TaxCategory>
            <cbc:ID schemeID="UN/ECE 5305" schemeAgencyID="6">S</cbc:ID>
            <cbc:Percent>15.00</cbc:Percent>
            <cac:TaxScheme>
                <cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
            </cac:TaxScheme>
        </cac:TaxCategory>
    </cac:AllowanceCharge>
    
    <cac:AllowanceCharge>
        <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
        <cbc:AllowanceChargeReasonCode>DL</cbc:AllowanceChargeReasonCode>
        <cbc:AllowanceChargeReason>Charge</cbc:AllowanceChargeReason>
        <cbc:Amount currencyID="SAR">10.00</cbc:Amount>
        <cac:TaxCategory>
            <cbc:ID schemeID="UN/ECE 5305" schemeAgencyID="6">S</cbc:ID>
            <cbc:Percent>15.00</cbc:Percent>
            <cac:TaxScheme>
                <cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
            </cac:TaxScheme>
        </cac:TaxCategory>
    </cac:AllowanceCharge>
    
    <cac:AllowanceCharge>
        <cbc:ChargeIndicator>true</cbc:ChargeIndicator>
        <cbc:AllowanceChargeReasonCode>DL</cbc:AllowanceChargeReasonCode>
        <cbc:AllowanceChargeReason>COD</cbc:AllowanceChargeReason>
        <cbc:Amount currencyID="SAR">10.00</cbc:Amount>
        <cac:TaxCategory>
            <cbc:ID schemeID="UN/ECE 5305" schemeAgencyID="6">S</cbc:ID>
            <cbc:Percent>15.00</cbc:Percent>
            <cac:TaxScheme>
                <cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
            </cac:TaxScheme>
        </cac:TaxCategory>
    </cac:AllowanceCharge>
    
    <cac:TaxTotal>
        <cbc:TaxAmount currencyID="SAR">16.50</cbc:TaxAmount>
        <cac:TaxSubtotal>
            <cbc:TaxableAmount currencyID="SAR">110.00</cbc:TaxableAmount>
            <cbc:TaxAmount currencyID="SAR">16.50</cbc:TaxAmount>
            <cac:TaxCategory>
                <cbc:ID>S</cbc:ID>
                <cbc:Percent>15.00</cbc:Percent>
                <cac:TaxScheme>
                    <cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
                </cac:TaxScheme>
            </cac:TaxCategory>
        </cac:TaxSubtotal>
    </cac:TaxTotal>
    
    <cac:LegalMonetaryTotal>
        <cbc:LineExtensionAmount currencyID="SAR">90.00</cbc:LineExtensionAmount>
        <cbc:TaxExclusiveAmount currencyID="SAR">110.00</cbc:TaxExclusiveAmount>
        <cbc:TaxInclusiveAmount currencyID="SAR">126.50</cbc:TaxInclusiveAmount>
        <cbc:AllowanceTotalAmount currencyID="SAR">0.00</cbc:AllowanceTotalAmount>
        <cbc:ChargeTotalAmount currencyID="SAR">20.00</cbc:ChargeTotalAmount>
        <cbc:PrepaidAmount currencyID="SAR">126.50</cbc:PrepaidAmount>
        <cbc:PayableAmount currencyID="SAR">0.00</cbc:PayableAmount>
    </cac:LegalMonetaryTotal>
    
    <cac:InvoiceLine>
        <cbc:ID>1</cbc:ID>
        <cbc:InvoicedQuantity unitCode="PCE">1.00</cbc:InvoicedQuantity>
        <cbc:LineExtensionAmount currencyID="SAR">90.00</cbc:LineExtensionAmount>
        <cac:AllowanceCharge>
            <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
            <cbc:AllowanceChargeReasonCode>95</cbc:AllowanceChargeReasonCode>
            <cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
            <cbc:Amount currencyID="SAR">0.00</cbc:Amount>
        </cac:AllowanceCharge>
        <cac:TaxTotal>
            <cbc:TaxAmount currencyID="SAR">13.50</cbc:TaxAmount>
            <cbc:RoundingAmount currencyID="SAR">103.50</cbc:RoundingAmount>
        </cac:TaxTotal>
        <cac:Item>
            <cbc:Name>IdeaPad Slim 3 Gen 8, 39.62cms - AMD R5 (Arctic Grey)</cbc:Name>
            <cac:ClassifiedTaxCategory>
                <cbc:ID schemeID="UN/ECE 5305" schemeAgencyID="6">S</cbc:ID>
                <cbc:Percent>15.00</cbc:Percent>
                <cac:TaxScheme>
                    <cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
                </cac:TaxScheme>
            </cac:ClassifiedTaxCategory>
        </cac:Item>
        <cac:Price>
            <cbc:PriceAmount currencyID="SAR">90.00</cbc:PriceAmount>
            <cbc:BaseQuantity unitCode="PCE">1</cbc:BaseQuantity>
            <cac:AllowanceCharge>
                <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
                <cbc:AllowanceChargeReasonCode>95</cbc:AllowanceChargeReasonCode>
                <cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
                <cbc:MultiplierFactorNumeric>0.00</cbc:MultiplierFactorNumeric>
                <cbc:Amount currencyID="SAR">0.00</cbc:Amount>
                <cbc:BaseAmount currencyID="SAR">90.00</cbc:BaseAmount>
            </cac:AllowanceCharge>
        </cac:Price>
    </cac:InvoiceLine>
    
    <cac:InvoiceLine>
        <cbc:ID>2</cbc:ID>
        <cbc:InvoicedQuantity unitCode="PCE">0.00</cbc:InvoicedQuantity>
        <cbc:LineExtensionAmount currencyID="SAR">0.00</cbc:LineExtensionAmount>
        <cac:DocumentReference>
            <cbc:ID>Invo-00022</cbc:ID>
            <cbc:IssueDate>2024-09-23</cbc:IssueDate>
            <cbc:IssueTime>06:30:00</cbc:IssueTime>
            <cbc:DocumentTypeCode>386</cbc:DocumentTypeCode>
        </cac:DocumentReference>
        <cac:TaxTotal>
            <cbc:TaxAmount currencyID="SAR">0</cbc:TaxAmount>
            <cbc:RoundingAmount currencyID="SAR">0</cbc:RoundingAmount>
            <cac:TaxSubtotal>
                <cbc:TaxableAmount currencyID="SAR">110.00</cbc:TaxableAmount>
                <cbc:TaxAmount currencyID="SAR">16.50</cbc:TaxAmount>
                <cac:TaxCategory>
                    <cbc:ID>S</cbc:ID>
                    <cbc:Percent>15.00</cbc:Percent>
                    <cac:TaxScheme>
                        <cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
                    </cac:TaxScheme>
                </cac:TaxCategory>
            </cac:TaxSubtotal>
        </cac:TaxTotal>
        <cac:Item>
            <cbc:Name>Prepayment adjustment</cbc:Name>
            <cac:ClassifiedTaxCategory>
                <cbc:ID>S</cbc:ID>
                <cbc:Percent>15.00</cbc:Percent>
                <cac:TaxScheme>
                    <cbc:ID>VAT</cbc:ID>
                </cac:TaxScheme>
            </cac:ClassifiedTaxCategory>
        </cac:Item>
        <cac:Price>
            <cbc:PriceAmount currencyID="SAR">0.0</cbc:PriceAmount>
        </cac:Price>
    </cac:InvoiceLine>
</Invoice>

Let check this, I have modified some element in your xml.

<?xml version="1.0" encoding="UTF-8"?>
<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">
	<cbc:ProfileID>reporting:1.0</cbc:ProfileID>
	<cbc:ID>Invo-00022</cbc:ID>
	<cbc:UUID>ab2cbc6e-87de-4c3f-bd2c-22c6541d9e06</cbc:UUID>
	<cbc:IssueDate>2024-09-23</cbc:IssueDate>
	<cbc:IssueTime>06:30:00</cbc:IssueTime>
	<cbc:InvoiceTypeCode name="0200000">388</cbc:InvoiceTypeCode>
	<cbc:Note languageID="en"/>
	<cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode>
	<cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode>
	<cac:AdditionalDocumentReference>
		<cbc:ID>ICV</cbc:ID>
		<cbc:UUID>23</cbc:UUID>
	</cac:AdditionalDocumentReference>
	<cac:AdditionalDocumentReference>
		<cbc:ID>PIH</cbc:ID>
		<cac:Attachment>
			<cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">FRrtvjAL9+GHoouBevARnFIA4mkP4UBEuLOx3ma8rbE=</cbc:EmbeddedDocumentBinaryObject>
		</cac:Attachment>
	</cac:AdditionalDocumentReference>
	<cac:AccountingSupplierParty>
		<cac:Party>
			<cac:PartyIdentification>
				<cbc:ID schemeID="CRN">311466958200003</cbc:ID>
			</cac:PartyIdentification>
			<cac:PostalAddress>
				<cbc:StreetName>4419 Western Ring Branch Rd</cbc:StreetName>
				<cbc:AdditionalStreetName>4419 Western Ring Branch Rd, 4419 Western Ring Branch Rd, Riyadh, Saudi Arabia, 12334</cbc:AdditionalStreetName>
				<cbc:BuildingNumber>4419</cbc:BuildingNumber>
				<cbc:CitySubdivisionName>Riyadh</cbc:CitySubdivisionName>
				<cbc:CityName>Riyadh</cbc:CityName>
				<cbc:PostalZone>12334</cbc:PostalZone>
				<cbc:CountrySubentity>Saudi Arabia</cbc:CountrySubentity>
				<cac:Country>
					<cbc:IdentificationCode>SA</cbc:IdentificationCode>
				</cac:Country>
			</cac:PostalAddress>
			<cac:PartyTaxScheme>
				<cbc:CompanyID>311466958200003</cbc:CompanyID>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:PartyTaxScheme>
			<cac:PartyLegalEntity>
				<cbc:RegistrationName>Textile Mix Trading Company</cbc:RegistrationName>
			</cac:PartyLegalEntity>
		</cac:Party>
	</cac:AccountingSupplierParty>
	<cac:AccountingCustomerParty>
		<cac:Party>
			<cac:PostalAddress>
				<cbc:StreetName>112</cbc:StreetName>
				<cbc:AdditionalStreetName>Doha Al Shamaliah, Al Dawhah Ash Shamaliyah, 112, Dhahran, Saudi Arabia, 41111</cbc:AdditionalStreetName>
				<cbc:BuildingNumber></cbc:BuildingNumber>
				<cbc:CitySubdivisionName>Dhahran</cbc:CitySubdivisionName>
				<cbc:CityName>Dhahran</cbc:CityName>
				<cbc:PostalZone>41111</cbc:PostalZone>
				<cbc:CountrySubentity>Saudi Arabia</cbc:CountrySubentity>
				<cac:Country>
					<cbc:IdentificationCode>SA</cbc:IdentificationCode>
				</cac:Country>
			</cac:PostalAddress>
			<cac:PartyTaxScheme>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:PartyTaxScheme>
			<cac:PartyLegalEntity>
				<cbc:RegistrationName>Demo User</cbc:RegistrationName>
			</cac:PartyLegalEntity>
		</cac:Party>
	</cac:AccountingCustomerParty>
	<cac:Delivery>
		<cbc:ActualDeliveryDate>2024-09-25</cbc:ActualDeliveryDate>
		<cbc:LatestDeliveryDate>2024-09-25</cbc:LatestDeliveryDate>
	</cac:Delivery>
	<cac:PaymentMeans>
		<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
	</cac:PaymentMeans>
	<cac:AllowanceCharge>
		<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
		<cbc:AllowanceChargeReasonCode>77</cbc:AllowanceChargeReasonCode>
		<cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
		<cbc:Amount currencyID="SAR">0</cbc:Amount>
		<cac:TaxCategory>
			<cbc:ID>S</cbc:ID>
			<cbc:Percent>15.00</cbc:Percent>
			<cac:TaxScheme>
				<cbc:ID>VAT</cbc:ID>
			</cac:TaxScheme>
		</cac:TaxCategory>
	</cac:AllowanceCharge>
	<cac:AllowanceCharge>
		<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
		<cbc:AllowanceChargeReasonCode>PA</cbc:AllowanceChargeReasonCode>
		<cbc:AllowanceChargeReason>Shipping and Handling</cbc:AllowanceChargeReason>
		<cbc:Amount currencyID="SAR">10</cbc:Amount>
		<cac:TaxCategory>
			<cbc:ID>S</cbc:ID>
			<cbc:Percent>15</cbc:Percent>
			<cac:TaxScheme>
				<cbc:ID>VAT</cbc:ID>
			</cac:TaxScheme>
		</cac:TaxCategory>
	</cac:AllowanceCharge>
	<cac:AllowanceCharge>
		<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
		<cbc:AllowanceChargeReasonCode>PA</cbc:AllowanceChargeReasonCode>
		<cbc:AllowanceChargeReason>cod_fee</cbc:AllowanceChargeReason>
		<cbc:Amount currencyID="SAR">10</cbc:Amount>
		<cac:TaxCategory>
			<cbc:ID>S</cbc:ID>
			<cbc:Percent>15</cbc:Percent>
			<cac:TaxScheme>
				<cbc:ID>VAT</cbc:ID>
			</cac:TaxScheme>
		</cac:TaxCategory>
	</cac:AllowanceCharge>
	<cac:TaxTotal>
		<cbc:TaxAmount currencyID="SAR">16.5</cbc:TaxAmount>
	</cac:TaxTotal>
	<cac:TaxTotal>
		<cbc:TaxAmount currencyID="SAR">16.5</cbc:TaxAmount>
		<cac:TaxSubtotal>
			<cbc:TaxableAmount currencyID="SAR">110</cbc:TaxableAmount>
			<cbc:TaxAmount currencyID="SAR">16.5</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">90</cbc:LineExtensionAmount>
		<cbc:TaxExclusiveAmount currencyID="SAR">110</cbc:TaxExclusiveAmount>
		<cbc:TaxInclusiveAmount currencyID="SAR">126.5</cbc:TaxInclusiveAmount>
		<cbc:AllowanceTotalAmount currencyID="SAR">0</cbc:AllowanceTotalAmount>
		<cbc:ChargeTotalAmount currencyID="SAR">20</cbc:ChargeTotalAmount>
		<cbc:PrepaidAmount currencyID="SAR">126.5</cbc:PrepaidAmount>
		<cbc:PayableAmount currencyID="SAR">0.0</cbc:PayableAmount>
	</cac:LegalMonetaryTotal>
	<cac:InvoiceLine>
		<cbc:ID>1</cbc:ID>
		<cbc:InvoicedQuantity unitCode="PCE">1</cbc:InvoicedQuantity>
		<cbc:LineExtensionAmount currencyID="SAR">90</cbc:LineExtensionAmount>
		<cac:TaxTotal>
			<cbc:TaxAmount currencyID="SAR">13.5</cbc:TaxAmount>
			<cbc:RoundingAmount currencyID="SAR">103.5</cbc:RoundingAmount>
		</cac:TaxTotal>
		<cac:Item>
			<cbc:Name>IdeaPad Slim 3 Gen 8, 39.62cms - AMD R5 (Arctic Grey)</cbc:Name>
			<cac:ClassifiedTaxCategory>
				<cbc:ID>S</cbc:ID>
				<cbc:Percent>15</cbc:Percent>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:ClassifiedTaxCategory>
		</cac:Item>
		<cac:Price>
			<cbc:PriceAmount currencyID="SAR">90</cbc:PriceAmount>
			<cac:AllowanceCharge>
				<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
				<cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
				<cbc:Amount currencyID="SAR">10</cbc:Amount>
			</cac:AllowanceCharge>
		</cac:Price>
	</cac:InvoiceLine>
	<cac:InvoiceLine>
		<cbc:ID>2</cbc:ID>
		<cbc:InvoicedQuantity unitCode="PCE">0.0</cbc:InvoicedQuantity>
		<cbc:LineExtensionAmount currencyID="SAR">0.0</cbc:LineExtensionAmount>
		<cac:DocumentReference>
			<cbc:ID>Invo-00022</cbc:ID>
			<cbc:IssueDate>2024-09-23</cbc:IssueDate>
			<cbc:IssueTime>06:30:00</cbc:IssueTime>
			<cbc:DocumentTypeCode>386</cbc:DocumentTypeCode>
		</cac:DocumentReference>
		<cac:TaxTotal>
			<cbc:TaxAmount currencyID="SAR">0.0</cbc:TaxAmount>
			<cbc:RoundingAmount currencyID="SAR">0.0</cbc:RoundingAmount>
			<cac:TaxSubtotal>
				<cbc:TaxableAmount currencyID="SAR">110</cbc:TaxableAmount>
				<cbc:TaxAmount currencyID="SAR">16.5</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:Item>
			<cbc:Name>IdeaPad Slim 3 Gen 8, 39.62cms - AMD R5 (Arctic Grey)</cbc:Name>
			<cac:ClassifiedTaxCategory>
				<cbc:ID>S</cbc:ID>
				<cbc:Percent>15.00</cbc:Percent>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:ClassifiedTaxCategory>
		</cac:Item>
		<cac:Price>
			<cbc:PriceAmount currencyID="SAR">0.0</cbc:PriceAmount>
		</cac:Price>
	</cac:InvoiceLine>
</Invoice>

Thanks a lot guys, it worked. I was struggling a lot.

Dear eCloud could you please tell what’s the shell program you running to validate the payload, Thank you for the support!

.NET Zatca.eInvoice.SDK 3.3.5