While testing my xml file before signing I am getting two responses. The response in green bar says “Validation complete. No Errors found”. While below the message below says “INFO: Validation done with result: Error: Request failed with status code 500”
Here is my 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">
<!-- Invoice Header -->
<cbc:ID>INV-12345</cbc:ID> <!-- Invoice Number -->
<cbc:IssueDate>2024-09-12</cbc:IssueDate> <!-- Invoice Date -->
<cbc:InvoiceTypeCode>0101</cbc:InvoiceTypeCode> <!-- Invoice Type (0101: Standard) -->
<cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode> <!-- Currency Code -->
<!-- Supplier (Seller) Information -->
<cac:AccountingSupplierParty>
<cac:Party>
<cbc:Name>Seller Name</cbc:Name>
<cac:PostalAddress>
<cbc:StreetName>1234 Street</cbc:StreetName>
<cbc:CityName>Riyadh</cbc:CityName>
<cbc:PostalZone>12345</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>SA</cbc:IdentificationCode> <!-- Country Code -->
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>123456789012345</cbc:CompanyID> <!-- Seller VAT Number -->
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
</cac:Party>
</cac:AccountingSupplierParty>
<!-- Customer (Buyer) Information -->
<cac:AccountingCustomerParty>
<cac:Party>
<cbc:Name>Buyer Name</cbc:Name>
<cac:PostalAddress>
<cbc:StreetName>5678 Street</cbc:StreetName>
<cbc:CityName>Jeddah</cbc:CityName>
<cbc:PostalZone>67890</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>SA</cbc:IdentificationCode> <!-- Country Code -->
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>234567890123456</cbc:CompanyID> <!-- Buyer VAT Number -->
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
</cac:Party>
</cac:AccountingCustomerParty>
<!-- Invoice Line Items -->
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID> <!-- Line Item Identifier -->
<cbc:InvoicedQuantity unitCode="EA">2</cbc:InvoicedQuantity> <!-- Quantity and Unit Code -->
<cbc:LineExtensionAmount currencyID="SAR">400.00</cbc:LineExtensionAmount> <!-- Line Total Without VAT -->
<cac:Item>
<cbc:Name>Product 1</cbc:Name>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="SAR">200.00</cbc:PriceAmount> <!-- Unit Price -->
</cac:Price>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="SAR">60.00</cbc:TaxAmount> <!-- VAT Amount for the Line -->
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="SAR">400.00</cbc:TaxableAmount> <!-- Taxable Amount -->
<cbc:TaxAmount currencyID="SAR">60.00</cbc:TaxAmount> <!-- VAT Amount -->
<cac:TaxCategory>
<cbc:Percent>15</cbc:Percent> <!-- VAT Rate -->
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID> <!-- Tax Scheme Identifier -->
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>2</cbc:ID> <!-- Line Item Identifier -->
<cbc:InvoicedQuantity unitCode="EA">3</cbc:InvoicedQuantity> <!-- Quantity and Unit Code -->
<cbc:LineExtensionAmount currencyID="SAR">300.00</cbc:LineExtensionAmount> <!-- Line Total Without VAT -->
<cac:Item>
<cbc:Name>Product 2</cbc:Name>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="SAR">100.00</cbc:PriceAmount> <!-- Unit Price -->
</cac:Price>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="SAR">45.00</cbc:TaxAmount> <!-- VAT Amount for the Line -->
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="SAR">300.00</cbc:TaxableAmount> <!-- Taxable Amount -->
<cbc:TaxAmount currencyID="SAR">45.00</cbc:TaxAmount> <!-- VAT Amount -->
<cac:TaxCategory>
<cbc:Percent>15</cbc:Percent> <!-- VAT Rate -->
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID> <!-- Tax Scheme Identifier -->
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
</cac:InvoiceLine>
<!-- Invoice Totals -->
<cac:TaxTotal>
<cbc:TaxAmount currencyID="SAR">105.00</cbc:TaxAmount> <!-- Total VAT Amount -->
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="SAR">700.00</cbc:LineExtensionAmount> <!-- Total Without VAT -->
<cbc:TaxExclusiveAmount currencyID="SAR">700.00</cbc:TaxExclusiveAmount> <!-- Total Tax Exclusive -->
<cbc:TaxInclusiveAmount currencyID="SAR">805.00</cbc:TaxInclusiveAmount> <!-- Total Tax Inclusive -->
<cbc:PayableAmount currencyID="SAR">805.00</cbc:PayableAmount> <!-- Total Payable Amount -->
</cac:LegalMonetaryTotal>
<!-- Optional: QR Code for ZATCA Compliance -->
<cbc:Note>AQ1CdXNpbmVzcyBOYW1lAg8xMjM0NTY3ODkwMTIzNDUDFDIwMjMtMDYtMDVUMTM6MjI6MDBaBAU5Mi4wMAUFMTIuMDA=</cbc:Note>
</Invoice>
Here is a screen shot of the error