I am encountering an issue with an invoice that includes various tax rates and categories, as well as a document-level allowance. Despite including a detailed VAT breakdown and ensuring the accuracy of the figures, the invoice is being rejected by ZATCA.
the response returns as below:
Errors
category : BR_ERROR
**code :**BR-CO-15
message : Invoice total amount with VAT (BT-112)
Warnings
category : BR_WARNING
**code :**BR-CO-16
message : Amount due for payment (BT-115) = Invoice total amount with VAT (BT-112) -Pre-Paid amount (BT-113) + Rounding amount (BT-114).
category : BR_WARNING
**code :**BR-CO-13
message : Invoice total amount without VAT (BT-109) = S Invoice line net amount (BT-131) - Sum of allowances on document level (BT-107) + Sum of charges on document level (BT-108).
category : BR_WARNING
**code :**BR-S-08
message : For each different value of VAT category rate (BT-119) 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“. and the VAT rates (BT-152,BT-96,BT-103) equal the VAT category rate (BT-119)
category : BR_WARNING
**code :**BR-E-08
message : In a VAT breakdown (BG-23) where the VAT category code (BT-118) is ’ Exempt from VAT’ 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 ‘Exempt from VAT’.
Dear @Lina-alrehaili1 , @idaoud , @Malik , @Ankit_Tiwari , @eCloud
need your help because we are facing same issue when we applied allowance and charges at document level .
can u please provide the examples with calculation containing all the scenerios like with standard vat and exmept
Please find the below post for BR-S-08, I hope the post clarification will make it easier for you to fix the related warning
However, regarding the others error Kindly not that sharing your XML will be helpful for our investigation and providing comprehensive answer for you concerns based on your XML case.
Additionally, please note that if you receiving 200 response from ZATCA APIs this means that your invoice has been accepted, 202 this means that your invoice has been accepted with warning, you need to fix the warning in the further invoice to avoid the violations and fines.
For any further support, do not hesitate to reach out our support team via the below mail.
It is impossible to answer your question without seeing the Xml you created.
Share your xml, you can remove the supplier and customer sections if they are considered confidential. It would be better if you also include the invoice view generated by your erp.
Our document-level allowances and charges include discounts, shipping charges, and partial pre-payments.
Thank you for your response. However, I am a bit confused about the tax subtotal section. Could you please clarify why it is applied only to the first line item? What happens if both VAT rates are standard?
Additionally, could you please provide the Excel formula for calculating this?
For more complex ones you need to share the invoice view from your erp to convert to xml.
How to calculate in xml you can read it in the guide provided by zatca, and see the invoice reference included in the SDK. And of course try all possible transactions that can be generated by your erp.
From what I understand:
TaxTotal is the sum of all TaxAmount values at both the Line Level and the Document Level.
TaxSubtotal Tax is the sum of TaxAmount values at the Line Level and Document Level, but it is grouped by TaxCategory ID and Percent.
This is just my understanding based on some cases I’ve tried. You might get a more accurate explanation from a moderator.