# Prepayment Invoice type code and samples

**URL:** <https://zatca1.discourse.group/t/prepayment-invoice-type-code-and-samples/710>\
**Category:** General\
**Created:** [September 11, 2023, 11:00am UTC](https://zatca1.discourse.group/t/prepayment-invoice-type-code-and-samples/710 "2023-09-11T11:00:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lazelim](https://avatars.discourse-cdn.com/v4/letter/l/45deac/32.png) [@lazelim](https://zatca1.discourse.group/u/lazelim)\
**Post date:** [September 11, 2023, 11:00am UTC](https://zatca1.discourse.group/t/prepayment-invoice-type-code-and-samples/710/1 "2023-09-11T11:00:08Z")

</div>

For downpayment/prepayment scenarios the invoice type code is 386.  
In case of final downpayment, what will be the invoice type code?  
Where can we find a sample of the XML for these scenario so we can have a better view of how this works?

---

<div class="post-metadata">

**Author:** ![kiaziz](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@kiaziz](https://zatca1.discourse.group/u/kiaziz)\
**Post date:** [September 12, 2023, 7:30am UTC](https://zatca1.discourse.group/t/prepayment-invoice-type-code-and-samples/710/2 "2023-09-12T07:30:08Z")

</div>

The final invoice should be 386 as well, and referencing the first invoice.  
you can refer to SDK for prepayment.in SDK/ data /standard/ invoice you will find 2 invoices for advanced payments

Regards,

---

<div class="post-metadata">

**Author:** ![lazelim](https://avatars.discourse-cdn.com/v4/letter/l/45deac/32.png) [@lazelim](https://zatca1.discourse.group/u/lazelim)\
**Post date:** [September 17, 2023, 8:18am UTC](https://zatca1.discourse.group/t/prepayment-invoice-type-code-and-samples/710/3 "2023-09-17T08:18:01Z")

</div>

Already got the files from SDK. Thank you  
Just a quick clarification. In the sample you have provided, the invoice type code is “388”. Need to understand what’s the difference between final downpayment and adjusted invoice.

This is our scenario where total service amount is 2500 SAR

1. Downpayment Invoice = 1000SAR
2. Final Downpayment Invoice = 2500-1000SAR(from downpayment1)

Questions:

1. Should both invoice be assigned with invoice type code 386?
2. Only the final downpayment invoice will have the document reference? or the first downpayment as well?

---

<div class="post-metadata">

**Author:** ![kiaziz](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@kiaziz](https://zatca1.discourse.group/u/kiaziz)\
**Post date:** [September 18, 2023, 6:12am UTC](https://zatca1.discourse.group/t/prepayment-invoice-type-code-and-samples/710/4 "2023-09-18T06:12:24Z")

</div>

Hi lazelim,

1- yes both should be 386.  
2- yes only the final one should have the document reference.

---

<div class="post-metadata">

**Author:** ![adelaraby](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@adelaraby](https://zatca1.discourse.group/u/adelaraby)\
**Post date:** [April 30, 2024, 6:04am UTC](https://zatca1.discourse.group/t/prepayment-invoice-type-code-and-samples/710/5 "2024-04-30T06:04:16Z")

</div>

Nothing ,you will do against the Final downpayment . only you have to make e-invoicing for sales invoice ,credit notes,debit notes and Prepayment
