A ZATCA advance payment invoice (called a prepayment invoice in the technical standards) is the tax invoice a Saudi VAT-registered supplier must issue when a customer pays before the goods are delivered or the service is performed. Under ZATCA e-invoicing Phase 2 that invoice has its own type code, and the final invoice must then deduct the advance in a very specific way. If your business takes deposits, milestone payments or paid-up-front orders, this guide explains the VAT timing rules, the XML fields ZATCA requires, a worked example and the points to test in your ERP before go-live.
The Short Answer
- An advance payment triggers a tax invoice. ZATCA's E-Invoicing Detailed Guideline states that under the VAT regulations, receiving payment in advance towards a taxable supply requires a tax invoice.
- VAT is due on the amount received. Tax becomes due on the earliest of the supply date, the tax invoice date or the date consideration is received, to the extent of the amount received, according to ZATCA's Guideline for Tax Invoicing and Records (Version 3, May 2026).
- Issue it on time. The same Guideline says the supplier must issue the tax invoice within fifteen days from the end of the month in which the advance was received, to the extent of the consideration received.
- Type code 386. In Phase 2 the advance invoice carries invoice type code 386; the later invoice that adjusts it carries 388.
- Deduct it with PrepaidAmount. The final invoice references the advance invoice and deducts it through the PrepaidAmount field, with one consolidated line per VAT category and rate.
When Does an Advance Payment Create a VAT Obligation?
Saudi VAT does not wait for delivery. The Guideline quotes the rule from the Unified VAT Agreement: tax becomes due on the date of supply, the date the tax invoice is issued, or the date consideration is received (in whole or in part, and to the extent of the amount received), whichever happens first. So a deposit is not a neutral cash receipt. It brings forward the VAT point for the portion you were paid.
The Guideline sets out two early-payment situations in its date-of-supply section:
- Tax invoice issued before the supply: you account for output tax in the tax period in which the invoice was issued, even if the money has not arrived or the supply has not happened.
- Payment received before the supply: the supply is treated as taking place on the date of payment, and for a partial payment only to the extent of the amount paid. You must issue a tax invoice within fifteen days from the end of the month in which the payment was received.
In practice, that means a 30% deposit on a SAR 100,000 order is a taxable event for the deposit amount at once, not when you finally deliver. Your finance team should therefore treat receipts against open sales orders as a trigger for invoicing, not just for cash allocation.
The Two Invoices: Advance Invoice and Final Invoice
The Detailed Guideline and the Electronic Invoice XML Implementation Standard split the process into two documents.
| Item | Advance payment (prepayment) invoice | Final invoice that adjusts the advance |
|---|---|---|
| When it is issued | When you receive payment in advance | When the supply is made or completed |
| Invoice type code (BT-3) | 386 | 388 |
| Subtype (KSA-2) | 01 for a tax invoice, 02 for a simplified tax invoice (for example name="0100000" for a standard prepayment invoice) | 01 or 02, as for any other invoice |
| Reference to the earlier invoice | Not applicable | Invoice number, issue date and issue time of each advance invoice, with document type code 386 |
| How the advance is shown | The VAT-bearing amount received | Deducted through PrepaidAmount (BT-113), the VAT-inclusive amount |
The type-code values come from ZATCA's standard: 388 is a tax invoice, 386 is a prepayment invoice, 383 a debit note and 381 a credit note. The standard confirms that a prepayment tax invoice uses code 386 with subtype 01, and a prepayment simplified tax invoice uses 386 with subtype 02. For the wider difference between invoice types, see our guide to simplified vs standard tax invoices.
Because a prepayment invoice is still a tax invoice, the normal Phase 2 workflow applies. A B2B (standard) advance invoice must be cleared by ZATCA before it is shared with the buyer, and a simplified one is reported. If you want a refresher on what Phase 2 changes, read ZATCA Phase 1 vs Phase 2. Like every Phase 2 document it also needs a QR code and cryptographic stamp; see ZATCA QR code requirements.
How the Final Invoice Deducts the Advance
When you adjust an advance in a later invoice, the Detailed Guideline asks for specific data. The rules below summarise section 8 of the Guideline and paragraph 9.5 of the XML Implementation Standard.
- Only use PrepaidAmount if you issued a separate advance invoice. ZATCA says the field should be populated only if a separate invoice was issued when the advance was received, and not otherwise.
- Enter the VAT-inclusive amount. PrepaidAmount (BT-113) is the amount including VAT, rounded to two decimals.
- Reference the advance invoice. Provide the invoice reference number, issue date and issue time of each prepayment invoice. The advance invoice's UUID can also be provided; the Guideline says it is currently optional but will be mandated in future.
- Give one consolidated line per VAT category and rate. If the advance covered ten lines under categories S (standard rated) and Z (zero rated), the final invoice shows only two adjustment lines, one for S and one for Z.
- State the prepayment VAT details. Each adjustment line carries the prepayment taxable amount (KSA-31), the prepayment VAT amount (KSA-32), the VAT category code (KSA-33) and the VAT rate (KSA-34). The rate field lets you reflect an older rate, for example 5%, if the advance was received before the VAT rate changed.
- Use the same currency as the invoice. All currency attributes must match the invoice currency.
ZATCA also warns developers that some mandatory UBL tags in the adjustment lines must carry fixed zero values to avoid schema errors, and tells them to follow every tag in paragraph 9.5 of the XML standard.
What ZATCA Checks and What It Audits Later
The Guideline says there is no real-time cross-check between an advance invoice and the invoice that adjusts it. That check happens on the back end through analytics, and discrepancies may lead to audits. The real-time validation is arithmetic only:
- The prepayment VAT amount (KSA-32) must equal the prepayment taxable amount (KSA-31) multiplied by the prepayment rate (KSA-34), divided by 100.
- If PrepaidAmount (BT-113) is provided, it must equal the sum of the prepayment taxable amounts and prepayment VAT amounts.
So an invoice can clear while still being wrong against your advance invoice. That is why your ERP should pull the advance data from the original document rather than rely on someone retyping it. If a clearance error does occur, see ZATCA invoice rejected: error codes and how to resubmit.
Worked Example (Hypothetical)
The figures below are invented to show the mechanics, not taken from ZATCA's examples. A Riyadh fit-out contractor agrees a SAR 50,000 job plus 15% VAT with a business customer and takes a 20% advance.
| Step | Taxable amount (SAR) | VAT 15% (SAR) | Total (SAR) |
|---|---|---|---|
| Full job value | 50,000.00 | 7,500.00 | 57,500.00 |
| 1. Advance invoice (type 386), issued when the 20% payment arrives | 10,000.00 | 1,500.00 | 11,500.00 |
| 2. Final invoice (type 388) shows the whole job | 50,000.00 | 7,500.00 | 57,500.00 |
| Less: advance deducted, PrepaidAmount | 10,000.00 | 1,500.00 | 11,500.00 |
| Amount due for payment on the final invoice | n/a | n/a | 46,000.00 |
The final invoice reports the full VAT on the job, then deducts the SAR 11,500 already invoiced, so the customer pays SAR 46,000. The prepayment adjustment line carries a taxable amount of 10,000, VAT of 1,500, category S and rate 15, which satisfies the arithmetic check above (10,000 x 15 / 100 = 1,500, and 10,000 + 1,500 = 11,500).
When the Advance Is Larger Than the Final Invoice
The Guideline covers this directly. If the amount paid in advance is more than the invoice you are adjusting, you can either enter the full advance value, or limit the adjustment to the current invoice value. Both are valid and the XML will not be rejected simply because the advance is higher.
ZATCA's own example is an advance of SAR 115,000 (100,000 plus 15,000 VAT) received on 1 January 2023 and adjusted against a SAR 92,000 invoice on 1 July 2023. Entering the full 115,000 gives an amount due of minus 23,000. Limiting it to 92,000 gives zero. If you enter the full amount and the SAR 23,000 has to be refunded, you must issue a credit note for it, and that credit note is also sent for clearance or reporting. Our guide to ZATCA credit notes and debit notes covers the rules.
Common Scenarios
| Scenario | What the guidance says | Practical step |
|---|---|---|
| Customer pays a deposit on an order | Payment in advance needs a tax invoice for the amount received | Issue a 386 invoice within the deadline above |
| Several advances, one final invoice | The XML standard covers many-to-one adjustments | Reference each advance invoice on the final invoice |
| Advance covered mixed VAT categories | One consolidated adjustment line per category and rate | Let the ERP group by category, not by original line |
| Supply is cancelled after an advance | A credit note can be issued against the earlier tax invoice; Guideline Example 17 describes a construction advance that was cancelled | Issue a credit note, not an edited invoice |
| Money received but no advance invoice was issued | PrepaidAmount should be used only where a separate advance invoice exists | Do not use the field to hide the gap; talk to your adviser |
A tax invoice can only be issued once and its issue date cannot be changed, so corrections to an advance invoice follow the credit note or debit note route. This is the same principle covered in ZATCA summary invoices and ZATCA credit notes.
Questions to Ask Your ERP Vendor
Deposits are where many ERPs show their weakest invoicing logic. Before you commit, ask:
- Does a customer receipt against a sales order or contract automatically offer to create an advance tax invoice, with type code 386?
- Does the final invoice pull each advance's number, date and time and fill KSA-31 to KSA-34 automatically?
- Does it group adjustment lines by VAT category and rate?
- Can it handle several advances against one invoice, and an advance larger than the final invoice, including the credit note for the difference?
- Are advance invoices cleared or reported, archived and linked to the final invoice for audit?
A broader checklist is in how to choose a ZATCA compliant ERP. Retention of the cleared advance and final invoices follows the rules in ZATCA e-invoice archiving. Businesses in Wave 25 must integrate by 1 February 2027, so test deposit scenarios before then.
How Raad ERP Can Help
Raad ERP is a cloud ERP for GCC trading, van sales, manufacturing and contracting businesses, with ZATCA integration for Saudi e-invoicing, easy invoicing, automatic accounting in the background and Arabic language support. If deposits and milestone billing are part of how you work, message us on WhatsApp at +971 56 102 1565 and ask us to walk you through your own billing scenario before you decide. Whichever system you choose, test advance and final invoices end to end against ZATCA's sandbox, as described in the Detailed Technical Guideline.
Questions and answers
Do I need to issue a tax invoice when a customer pays an advance in Saudi Arabia?
What is the invoice type code for an advance payment invoice in ZATCA Phase 2?
How long do I have to issue an advance payment invoice?
How do I deduct an advance on the final invoice?
When should I not use the PrepaidAmount field?
What if the advance is larger than the final invoice?
Does ZATCA cross-check the advance invoice against the final invoice in real time?
This article is general information only and is not legal, tax or professional advice. Regulations, including ZATCA, UAE Ministry of Finance and FTA requirements, change often, and this content may be incomplete, out of date or contain errors. Before you act on it, check with the official authority (ZATCA in Saudi Arabia, or the Ministry of Finance or Federal Tax Authority in the UAE) or a qualified tax adviser. Raad ERP makes no warranties about the accuracy or completeness of this content and accepts no liability for any loss arising from reliance on it. Links to third-party websites are provided for convenience and are not endorsements.
