Invoice Size Issue

Hello team,

We have invoice with 10K lines, this makes invoice size more than the limit (10MB).
In xml file, Is it allowed to group lines with similar items in one line, to reduce the size?

Tank you.

You may consolidate similar items into a single invoice line where the tax treatment is identical. The grouped line should still correctly represent the aggregated quantities, taxable amounts, discounts, and tax calculations for those items.

This approach can help reduce the overall XML size and keep the invoice within the allowed limit.

Kindly refer to following answer for more details

Hi @mhaba ,

We post an invoice in our ERP with 10k lines, when we come to submit it ZATCA API, invoice xml file > 10MB, if we grouped similar items in one item in xml file, is it a correct solution? or invoices lines (xml) must equal invoice line in our ERP?

If all items have the same taxable category and VAT rate, they can be combined into a single invoice line and submitted accordingly.

However, if the invoice contains items belonging to different taxable categories or VAT rates, separate invoice lines must be created for each category. For example, if some items are subject to 15% VAT and others to 5% VAT, then two invoice lines should be created:

  • One invoice line containing the aggregated taxable amount for items with 15% VAT.

  • Another invoice line containing the aggregated taxable amount for items with 5% VAT.

For a better understanding of the applicable taxable categories and their classification, please refer to the link shared in the previous response. It provides a more detailed explanation of the various categories and can help ensure the invoice lines are grouped and categorized correctly.