I need help figuring out what the problem is with this invoice. All the amounts are correct and I don’t know what the reason is.
400 Bad Request {
“validationResults”: {
“infoMessages”: [
{
“type”: “INFO”,
“code”: “XSD_ZATCA_VALID”,
“category”: “XSD validation”,
“message”: “Complied with UBL 2.1 standards in line with ZATCA specifications”,
“status”: “PASS”
}
],
“warningMessages”: [
{
“type”: “WARNING”,
“code”: “BR-S-08”,
“category”: “EN_16931”,
“message”: “[BR-S-08]-In a VAT breakdown (BG-23) where the VAT category code (BT-118) is ’ Standard rated’ the VAT category taxable amount (BT-116) shall equal the sum of Invoice line net amounts (BT-131) minus the sum of Document level allowance amounts (BT-92) plus the sum of Document level charge amounts (BT-99) where the VAT category codes (BT-151, BT-95, BT-102) are ‘Standard Rate’.”,
“status”: “WARNING”
},
{
“type”: “WARNING”,
“code”: “BR-CO-10”,
“category”: “EN_16931”,
“message”: "Sum of Invoice line net amount (BT-106) ",
“status”: “WARNING”
},
{
“type”: “WARNING”,
“code”: “BR-CO-13”,
“category”: “EN_16931”,
“message”: “Invoice total amount without VAT (BT-109) = S Invoice line net amount (BT-131) - Sum of allowances on document level (BT-107)”,
“status”: “WARNING”
},
{
“type”: “WARNING”,
“code”: “BR-KSA-98”,
“category”: “KSA”,
“message”: “[BR-KSA-98] - The simplified invoice should be submitted within 24 hours of issuing the invoice.”,
“status”: “WARNING”
}
],
“errorMessages”: [
{
“type”: “ERROR”,
“code”: “BR-CO-15”,
“category”: “EN_16931”,
“message”: "Invoice total amount with VAT (BT-112) ",
“status”: “ERROR”
}
],
“status”: “ERROR”
},
“reportingStatus”: “NOT_REPORTED”
}
Invoice XML
<?xml version="1.0" encoding="utf-8"?>
reporting:1.0
90115
1ce7c6a5-ba0b-4fb5-b198-4a127fcbba4e
2025-04-05
11:45:00
388
SAR
SAR
ICV
1734
PIH
w0fRww2yUcLew+gvfJ6fsuvvzJRZSD78+BGLsJ+u/+o=
QR
ARfZhdit2YTYp9iqINin2YTYt9ix2YLZigIPMzAyMDU1ODM5NjAwMDAzAxMyMDI1LTA0LTA1VDExOjQ1OjAwBAYzNjEuNzUFBTQ3LjE4BiwvdnFGZ3FEVUlacFBRdDhyQStQSzRUSFNtTC9CdXhlTG1rdzBSZUhQTnZ3PQdgTUVZQ0lRRGs0WjdYR0QyOXZNODdxU3A0WE1kcUJaMUJ5WGtQOE5WbWQ5ZEF6ekJHREFJaEFMUndYYjhIa2lkMWNPSng0ME14UmRwTDkvakF0YUR5Z0t6bUllR3JoWFE5CFgwVjAQBgcqhkjOPQIBBgUrgQQACgNCAASYd+f+t0IgIcNcNG6yotjdZsi7HZ4kYOINUW+H7Lu0fPmqJd70hUKOuQF0XcfPvV2VUNqn5Kp9ExiRw5NVnoAOCUYwRAIgSlak4F/yVy8NMQG7Ga2+H+fmkCifZnLsDHn61LiVPr0CIEKhmAy78ktvSndAqAQWjfTYtPMLG1eFuk9UQLHCjqx+
urn:oasis:names:specification:ubl:signature:Invoice
urn:oasis:names:specification:ubl:dsig:enveloped:xades
3400104109
المملكة العربية السعودية سكاكا الجوف شارع الاقتصاد حي السوق
4655
سكاكا الجوف
سكاكا
72311
SA
302055839600003
VAT
محلات الطرقي
7648
سكاكا الجوف
الجوف
13515
SA
310998523200003
VAT
شركه زيد سلطان الحسين sharikat zayd
2025-04-05
10
false
discount
0
S
15
VAT
47.18
47.18
314.56
47.18
S
15
VAT
314.56
314.56
361.75
0
0.00
361.75
1441
5
125
18.75
143.75
ماسوره 11/2*2.5 ثقيل ابيض الطيار masura 11/2 tagil white taiyar
S
15.00
VAT
25.00
false
discount
0
1716
8
69.52
10.42
79.94
جالون اسيد مجاري acid
S
15.00
VAT
8.69
false
discount
0
4509
6
120
18
138.00
بخاخ فوم gb كبير bakhak phom kabir gp
S
15.00
VAT
20.00
false
discount
0
<?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>90115</cbc:ID>
<cbc:UUID>1ce7c6a5-ba0b-4fb5-b198-4a127fcbba4e</cbc:UUID>
<cbc:IssueDate>2025-04-05</cbc:IssueDate>
<cbc:IssueTime>11:45:00</cbc:IssueTime>
<cbc:InvoiceTypeCode name="0200000">388</cbc:InvoiceTypeCode>
<cbc:Note languageID="ar" />
<cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode>
<cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode>
<cac:AdditionalDocumentReference>
<cbc:ID>ICV</cbc:ID>
<cbc:UUID>1734</cbc:UUID>
</cac:AdditionalDocumentReference>
<cac:AdditionalDocumentReference>
<cbc:ID>PIH</cbc:ID>
<cac:Attachment>
<cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">w0fRww2yUcLew+gvfJ6fsuvvzJRZSD78+BGLsJ+u/+o=</cbc:EmbeddedDocumentBinaryObject>
</cac:Attachment>
</cac:AdditionalDocumentReference>
<cac:AdditionalDocumentReference>
<cbc:ID>QR</cbc:ID>
<cac:Attachment>
<cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">ARfZhdit2YTYp9iqINin2YTYt9ix2YLZigIPMzAyMDU1ODM5NjAwMDAzAxMyMDI1LTA0LTA1VDExOjQ1OjAwBAYzNjEuNzUFBTQ3LjE4BiwvdnFGZ3FEVUlacFBRdDhyQStQSzRUSFNtTC9CdXhlTG1rdzBSZUhQTnZ3PQdgTUVZQ0lRRGs0WjdYR0QyOXZNODdxU3A0WE1kcUJaMUJ5WGtQOE5WbWQ5ZEF6ekJHREFJaEFMUndYYjhIa2lkMWNPSng0ME14UmRwTDkvakF0YUR5Z0t6bUllR3JoWFE5CFgwVjAQBgcqhkjOPQIBBgUrgQQACgNCAASYd+f+t0IgIcNcNG6yotjdZsi7HZ4kYOINUW+H7Lu0fPmqJd70hUKOuQF0XcfPvV2VUNqn5Kp9ExiRw5NVnoAOCUYwRAIgSlak4F/yVy8NMQG7Ga2+H+fmkCifZnLsDHn61LiVPr0CIEKhmAy78ktvSndAqAQWjfTYtPMLG1eFuk9UQLHCjqx+</cbc:EmbeddedDocumentBinaryObject>
</cac:Attachment>
</cac:AdditionalDocumentReference><cac:Signature>
<cbc:ID>urn:oasis:names:specification:ubl:signature:Invoice</cbc:ID>
<cbc:SignatureMethod>urn:oasis:names:specification:ubl:dsig:enveloped:xades</cbc:SignatureMethod>
</cac:Signature><cac:AccountingSupplierParty>
<cac:Party>
<cac:PartyIdentification>
<cbc:ID schemeID="CRN">3400104109</cbc:ID>
</cac:PartyIdentification>
<cac:PostalAddress>
<cbc:StreetName>المملكة العربية السعودية سكاكا الجوف شارع الاقتصاد حي السوق</cbc:StreetName>
<cbc:BuildingNumber>4655</cbc:BuildingNumber>
<cbc:CitySubdivisionName>سكاكا الجوف</cbc:CitySubdivisionName>
<cbc:CityName>سكاكا</cbc:CityName>
<cbc:PostalZone>72311</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>SA</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>302055839600003</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>محلات الطرقي</cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cac:PostalAddress>
<cbc:StreetName />
<cbc:BuildingNumber>7648</cbc:BuildingNumber>
<cbc:CitySubdivisionName>سكاكا الجوف</cbc:CitySubdivisionName>
<cbc:CityName>الجوف</cbc:CityName>
<cbc:PostalZone>13515</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>SA</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>310998523200003</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>شركه زيد سلطان الحسين sharikat zayd</cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:Delivery>
<cbc:ActualDeliveryDate>2025-04-05</cbc:ActualDeliveryDate>
</cac:Delivery>
<cac:PaymentMeans>
<cbc:PaymentMeansCode>10</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 schemeID="UN/ECE 5305" schemeAgencyID="6">S</cbc:ID>
<cbc:Percent>15</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">47.18</cbc:TaxAmount>
</cac:TaxTotal>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="SAR">47.18</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="SAR">314.56</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="SAR">47.18</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeID="UN/ECE 5305" schemeAgencyID="6">S</cbc:ID>
<cbc:Percent>15</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">314.56</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="SAR">314.56</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="SAR">361.75</cbc:TaxInclusiveAmount>
<cbc:AllowanceTotalAmount currencyID="SAR">0</cbc:AllowanceTotalAmount>
<cbc:PrepaidAmount currencyID="SAR">0.00</cbc:PrepaidAmount>
<cbc:PayableAmount currencyID="SAR">361.75</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>1441</cbc:ID>
<cbc:InvoicedQuantity unitCode="PCE">5</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="SAR">125</cbc:LineExtensionAmount>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="SAR">18.75</cbc:TaxAmount>
<cbc:RoundingAmount currencyID="SAR">143.75</cbc:RoundingAmount>
</cac:TaxTotal>
<cac:Item>
<cbc:Name>ماسوره 11/2*2.5 ثقيل ابيض الطيار masura 11/2 tagil white taiyar</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">25.00</cbc:PriceAmount>
<cac:AllowanceCharge>
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
<cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
<cbc:Amount currencyID="SAR">0</cbc:Amount>
</cac:AllowanceCharge>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>1716</cbc:ID>
<cbc:InvoicedQuantity unitCode="PCE">8</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="SAR">69.52</cbc:LineExtensionAmount>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="SAR">10.42</cbc:TaxAmount>
<cbc:RoundingAmount currencyID="SAR">79.94</cbc:RoundingAmount>
</cac:TaxTotal>
<cac:Item>
<cbc:Name>جالون اسيد مجاري acid</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">8.69</cbc:PriceAmount>
<cac:AllowanceCharge>
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
<cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
<cbc:Amount currencyID="SAR">0</cbc:Amount>
</cac:AllowanceCharge>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>4509</cbc:ID>
<cbc:InvoicedQuantity unitCode="PCE">6</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="SAR">120</cbc:LineExtensionAmount>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="SAR">18</cbc:TaxAmount>
<cbc:RoundingAmount currencyID="SAR">138.00</cbc:RoundingAmount>
</cac:TaxTotal>
<cac:Item>
<cbc:Name>بخاخ فوم gb كبير bakhak phom kabir gp</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">20.00</cbc:PriceAmount>
<cac:AllowanceCharge>
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
<cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
<cbc:Amount currencyID="SAR">0</cbc:Amount>
</cac:AllowanceCharge>
</cac:Price>
</cac:InvoiceLine>
</Invoice>