أكواد أخطاء الفاتورة الإلكترونية

فاتورتك رُفضت ووصلك كود لا يقول شيئًا؟ الصقه هنا. المرجع يغطي 135 كودًا بنص الرسالة الرسمي من الهيئة، وشرحًا عربيًا لسبب الرفض وطريقة التصحيح.

135كودًا موثّقًا 44ترفض الفاتورة 91تحذير 42بدليل تصحيح كامل

الأكواد التي توقف الفواتير فعلًا

لكل واحد منها صفحة تشرح المعنى والسبب وخطوات التصحيح.

سلسلة الفواتير: البصمة والعدّاد

الأخطاء التي تكسر ترابط الفواتير — وأصعبها على الفهم.

هوية البائع والمشتري

الأرقام الضريبية والمعرّفات، وأكثر ما يُرفض فعليًا.
BR-CUSTOM-VALIDATION-01 يرفض الفاتورة
الرقم الضريبي للبائع مطابق للرقم الضريبي للمشتري

الهيئة ترفض أي فاتورة يكون فيها رقم البائع الضريبي هو نفسه رقم المشتري. الأسباب الواقعية، والحالة التي يظ...

BR-KSA-08 تحذير
معرّف البائع (BT-29) ناقص أو مكرر أو بمحارف غير مسموحة

السجل التجاري أو الترخيص الذي تحمله الفاتورة للبائع يُكتب مرة واحدة، بنوع من ستة — CRN و MOM و MLS و 700...

BR-KSA-14 يرفض الفاتورة
معرّف المشتري (BT-46) ناقص أو بلا نوع

القاعدة تُفعَّل وحدها حين لا يكون المشتري مسجّلًا في ضريبة القيمة المضافة. فالمسجّل يُعرَّف برقمه الضريبي...

BR-KSA-39 يرفض الفاتورة
الرقم الضريبي للبائع مفقود

الفاتورة يجب أن تحمل الرقم الضريبي للبائع أو الرقم الضريبي للمجموعة التي ينتمي إليها. غيابه يرفض الفاتورة...

BR-KSA-40 يرفض الفاتورة
الرقم الضريبي للبائع غير صحيح — 15 خانة تبدأ وتنتهي بالرقم 3

قاعدة صيغة الرقم الضريبي السعودي، والأرقام التي يخطئ الناس فيها: الرقم الموحد، السجل التجاري، والأرقام ال...

BR-KSA-44 يرفض الفاتورة
الرقم الضريبي للمشتري غير صحيح في الفاتورة

متى يكون رقم المشتري إلزاميًا ومتى يجب أن يُترك فارغًا، ولماذا يُرفض رقم موجود في فاتورة مبسطة.

BR-KSA-49 يرفض الفاتورة
إعفاء التعليم أو الصحة بلا هوية وطنية للمشتري

رمزا الإعفاء VATEX-SA-EDU و VATEX-SA-HEA ممنوحان لمواطن، فالمستند الذي يحمل أحدهما لا بد أن يسمّي المواطن...

BR-KSA-81 تحذير
فاتورة ضريبية لمشترٍ بلا رقم ضريبي ولا معرّف بديل (BT-46)

الفاتورة الضريبية وإشعاراتها، متى خلت من الرقم الضريبي للمشتري، يلزمها أن تعرّفه بمعرّف آخر مع نوعه: سجل...

BR-KSA-F-13 تحذير
معرّف البائع أو المشتري الإضافي يحتوي قيمة غير صحيحة

الحقلان BT-29 و BT-46 يحملان معرّفًا غير الرقم الضريبي — سجل تجاري أو ترخيص أو هوية. الخطأ يأتي من عدم مط...

نوع الفاتورة وترميز المعاملة

الحقول التي تحدد ما هو هذا المستند أصلًا.
BR-KSA-04 يرفض الفاتورة
تاريخ الفاتورة في المستقبل

تاريخ إصدار الفاتورة يجب ألا يتجاوز تاريخ اليوم عند الهيئة. الإصدار بتاريخ سابق مقبول، وبتاريخ لاحق مرفوض...

BR-KSA-05 يرفض الفاتورة
نوع الفاتورة (BT-3) قيمة غير مقبولة

أربع قيم مقبولة: 388 فاتورة، و386 فاتورة دفعة مقدّمة، و381 إشعار دائن، و383 إشعار مدين. ولماذا لا يوجد «إ...

BR-KSA-06 يرفض الفاتورة
ترميز نوع المعاملة (KSA-2) غير صحيح — بنية NNPNESB

سبع خانات تحدد نوع الفاتورة وخصائص المعاملة. شرح كل خانة، والقيم التي تُستخدم فعليًا في الفاتورة الضريبية...

BR-KSA-11 يرفض الفاتورة
بند خارج نطاق الضريبة بنسبة غير صفرية

الفئة تقول إن البند غير خاضع لضريبة القيمة المضافة، ونسبة الضريبة عليه لا بد أن تكون صفرًا متى وُجدت. وال...

BR-KSA-15 تحذير
الفاتورة الضريبية بلا تاريخ توريد (KSA-5)

الفاتورة الضريبية تحمل تاريخين منفصلين: تاريخ إصدارها وتاريخ التوريد. والثاني إلزامي بنص القاعدة وإن كانت...

BR-KSA-16 تحذير
رمز وسيلة الدفع (BT-81) من خارج قائمة الهيئة

متى صرّحت الفاتورة بوسيلة الدفع وجب أن تكون القيمة رمزًا من القائمة الفرعية التي تعتمدها الهيئة من UNTDID...

BR-KSA-17 يرفض الفاتورة
الإشعار بلا سبب إصدار

كل إشعار دائن أو مدين يجب أن يحمل سبب إصداره في حقل مخصص. فاتورة الأصل وحدها لا تكفي: الهيئة تطلب نص السب...

BR-KSA-18 يرفض الفاتورة
رمز فئة الضريبة غير معتمد

فئة ضريبة القيمة المضافة في السطر تُكتب حرفًا واحدًا من أربعة لا غير: S للأساسية و Z للصفرية و E للمعفاة...

BR-KSA-31 يرفض الفاتورة
نوع معاملة ممنوع على الفاتورة المبسطة — التصدير والفوترة الذاتية

الفاتورة المبسطة وإشعاراتها لا تقبل من خصائص المعاملة الخمس إلا ثلاثًا: طرف ثالث، وتوريد صوري، ومعاملة مل...

BR-KSA-52 يرفض الفاتورة
مبلغ الضريبة على مستوى البند (KSA-11) مفقود

ضريبة كل بند حقل قائم بذاته في الفاتورة الضريبية وإشعاراتها، ولا يُغني عنه مجموع الضريبة أسفل المستند. وا...

BR-KSA-53 يرفض الفاتورة
إجمالي البند شاملًا الضريبة (KSA-12) مفقود

توأم مبلغ ضريبة البند، ويخرج من الكتلة نفسها. واسم العنصر في UBL هو RoundingAmount، وهذا الاسم وحده وراء...

BR-KSA-56 تحذير
الإشعار الدائن أو المدين بلا مرجع للفاتورة الأصلية

كل إشعار دائن (381) أو مدين (383) يجب أن يشير إلى رقم الفاتورة التي يصحّحها. أسباب ضياع هذا المرجع، وكيف...

BR-KSA-68 يرفض الفاتورة
عملة الاحتساب الضريبي (BT-6) غير موجودة

الفاتورة السعودية تصرّح بعملتين: العملة التي فوترت بها، والعملة التي تُحتسب بها الضريبة. والثانية إلزامية...

BR-KSA-70 يرفض الفاتورة
وقت إصدار الفاتورة (KSA-25) ناقص أو بصيغة خاطئة

التاريخ والوقت حقلان منفصلان. والنظام الذي لا يسجّل إلا التاريخ يمرّ من كل قواعد التاريخ ويسقط في هذه، وص...

BR-KSA-CL-01 يرفض الفاتورة
رمز عملة الفاتورة (BT-5) ليس رمزًا معتمدًا في ISO 4217

عملة الفاتورة تُكتب بثلاثة حروف من قائمة ISO 4217 — SAR — لا برمز عملة ولا باسمها ولا بحروف صغيرة. وهذه ا...

BR-KSA-CL-02 يرفض الفاتورة
عملة مختلطة في المستند — خاصية currencyID لا تطابق عملة الفاتورة

كل مبلغ في ملف XML يحمل خاصية تسمّي عملته، وكلها لا بد أن تردّد عملة الفاتورة. وبندٌ واحد أو مبلغ ضريبة و...

BR-KSA-DEC-02 يرفض الفاتورة
نسبة الضريبة خارج المدى أو بأكثر من منزلتين عشريتين

النسبة نسبةٌ مئوية لا كسر: خمسة عشر بالمئة تُكتب 15 لا 0.15. والمدى المسموح من 0.00 إلى 100.00 بمنزلتين ع...

BR-KSA-EN16931-01 يرفض الفاتورة
معرّف العملية (BT-23) ليس reporting:1.0

عنصر واحد في رأس كل فاتورة سعودية يحمل النص الثابت reporting:1.0. وهو ليس وصفًا لما تفعله ولا رقم إصدار ب...

BR-KSA-EN16931-02 يرفض الفاتورة
عملة الاحتساب الضريبي (BT-6) بقيمة غير SAR

الحقل الذي تفحص BR-KSA-68 وجوده تفحص هذه القاعدة قيمته: ثلاثة أحرف هي SAR ولا شيء سواها. والمنشأة التي تف...

BR-KSA-EN16931-07 يرفض الفاتورة
سعر الوحدة الصافي لا يساوي سعرها قبل الخصم ناقص خصمها

متى صرّح البند بسعر الوحدة قبل الخصم، وجب أن يساوي سعرها الصافي ذلك السعر ناقص خصم السعر، والاثنان للوحدة...

BR-KSA-EN16931-08 تحذير
أكثر من كتلة إجمالي ضريبة تحمل التفصيل

المستند يحمل كتلة إجمالي ضريبة واحدة فيها التفصيل حسب الفئة، ولا يحمل ثانية مثلها. والفاتورة المختلطة الف...

BR-KSA-EN16931-09 تحذير
إجمالي الضريبة بالريال مفقود أو مكرر

حين تصرّح الفاتورة بعملة الاحتساب الضريبي، يطلب المخطط كتلة إجمالي ضريبة واحدة بالضبط بلا تفصيلات — هي ال...

BR-KSA-F-04 يرفض الفاتورة
مبلغ أو كمية بالسالب

كل المبالغ والكميات في المستند يجب أن تكون موجبة إلا ما نصّت المواصفة على غيره. السطر السالب الذي تعالج ب...

كيف تقرأ رد الرفض من الهيئة

الهيئة لا ترسل رسالة نصية، بل كائنJSONفيهvalidationResultsوداخله ثلاث قوائم. الكود الذي أوقف فاتورتك يقع فيerrorMessages— وما فيwarningMessagesلم يمنع القبول.

رد حقيقي سجّلناه
{
  "validationResults": {
    "infoMessages":    [{ "code": "XSD_ZATCA_VALID", "status": "PASS"  }],
    "warningMessages": [],
    "errorMessages":   [{ "code": "BR-CUSTOM-VALIDATION-01",
                          "category": "KSA",
                          "status": "ERROR" }],
    "status": "ERROR"
  },
  "reportingStatus": "NOT_REPORTED"
}
  • XSD_ZATCA_VALIDبحالةPASSيعني أن بنية ملف XML سليمة — الرفض جاء من قاعدة عمل لا من صيغة الملف.
  • status: ERRORعلى مستوى النتيجة يعني الرفض.WARNINGيعني القبول مع تحذير.
  • reportingStatus: NOT_REPORTEDيعني أن الفاتورة لم تُسجَّل، ومهلة الـ24 ساعة ما زالت تسري.

المرجع الكامل

نص كل رسالة كما ترسلها الهيئة بالإنجليزية، بلا تعديل.

135 كودًا
BR-CL-KSA-14 يرفض الفاتورة

Field character limit for QR Code field has been exceeded. The maximum character limit for this field is 1000 characters.

BR-CUSTOM-VALIDATION-01 يرفض الفاتورة اقرأ الدليل ←
الرقم الضريبي للبائع مطابق للرقم الضريبي للمشتري

The Seller VAT registration number or seller group VAT registration number (BT-31) of The invoice must not match the buyer VAT registration number (BT-48) .

BR-KSA-03 يرفض الفاتورة اقرأ الدليل ←
معرّف الفاتورة (UUID) غير موجود أو غير صالح

The invoice must contain a unique identifier ("UUID") (KSA-1) given by the unit that issued the document (unique message identifier for interchange process). This value must contain only letters, digits, and dashes.

BR-KSA-04 يرفض الفاتورة اقرأ الدليل ←
تاريخ الفاتورة في المستقبل

The document issue date (BT-2) must be less or equal to the current date.

BR-KSA-05 يرفض الفاتورة اقرأ الدليل ←
نوع الفاتورة (BT-3) قيمة غير مقبولة

The invoice type code (BT-3) must be equal to one of value from the subset of UN/CEFACT code list 1001, D.16B agreed for KSA electronic invoices. Please refer paragraph 11.2.1 of XML implementation Standards.

BR-KSA-06 يرفض الفاتورة اقرأ الدليل ←
ترميز نوع المعاملة (KSA-2) غير صحيح — بنية NNPNESB

The invoice transaction code (KSA-2) must exist and respect the following structure: NNPNESB where NN (positions 1 and 2) = invoice subtype: - 01 for tax invoice - 02 for simplified tax invoice P (position 3) = 3rd Party invoice transaction, 0 for false, 1 for...

BR-KSA-07 يرفض الفاتورة

Self billing is not allowed (KSA-2, position 7 cannot be "1") for export invoices (KSA-2, position 5 = 1).

BR-KSA-08 تحذير اقرأ الدليل ←
معرّف البائع (BT-29) ناقص أو مكرر أو بمحارف غير مسموحة

The seller identification (BT-29) must exist only once with one of the scheme ID (BT-29-1) (CRN, MOM, MLS, SAG, OTH, 700) and must contain only alphanumeric characters. Commercial Registration number with "CRN" as schemeID. MOMRAH license with "MOM" as schemeI...

BR-KSA-09 تحذير اقرأ الدليل ←
عنوان البائع ناقص في الفاتورة

Seller address must contain street name (BT-35), building number (KSA-17), postal code (BT-38), city (BT-37), district (KSA-3), country code (BT-40). For more information please access this link: https://splonline.com.sa/en/national-address-1/

BR-KSA-10 تحذير

Buyer address must contain a street (BT-50), city (BT-52), country code (BT-55). This rule does not apply on the simplified tax invoices and associated credit notes and debit notes (KSA-2, position 1 and 2 = 02).

BR-KSA-11 يرفض الفاتورة اقرأ الدليل ←
بند خارج نطاق الضريبة بنسبة غير صفرية

An Invoice line (BG-25) where the VAT category code (BT-151) is "Not subject to VAT", an invoiced item VAT rate (BT-152) shall be 0 (zero), if exist.

BR-KSA-12 تحذير

A Document level allowance (BG-20) where VAT category code (BT-95) is "Not subject to VAT", a Document level allowance VAT rate (BT-96) shall be 0 (Zero), if exist.

BR-KSA-13 تحذير

A Document level charge (BG-21) where the VAT category code (BT-102) is "Not subject to VAT", a Document level charge VAT rate (BT-103) shall be 0 (zero), if exist.

BR-KSA-14 يرفض الفاتورة اقرأ الدليل ←
معرّف المشتري (BT-46) ناقص أو بلا نوع

The buyer identification (BT-46), required only if buyer is not VAT registered, then the buyer identification (BT-46) must be provided with one of the scheme IDs (BT-46-1) (TIN, CRN, MOM, MLS, 700, SAG, NAT, GCC, IQA, OTH) and must contain only alphanumeric ch...

BR-KSA-15 تحذير اقرأ الدليل ←
الفاتورة الضريبية بلا تاريخ توريد (KSA-5)

The tax invoice ((invoice type code (BT-30) = 388) and (invoice transaction code (KSA-2) has "01" as first 2 digits)) must contain the supply date (KSA-5).

BR-KSA-16 تحذير اقرأ الدليل ←
رمز وسيلة الدفع (BT-81) من خارج قائمة الهيئة

Payment means code (BT-81) in an invoice exist, then it must contain one of the values from subset of UNTDID 4461 code list

BR-KSA-17 يرفض الفاتورة اقرأ الدليل ←
الإشعار بلا سبب إصدار

Debit and credit note (invoice type code (BT-3) is equal to 383 or 381) must contain the reason (KSA-10) for this invoice type issuing.

BR-KSA-18 يرفض الفاتورة اقرأ الدليل ←
رمز فئة الضريبة غير معتمد

VAT category code must contain one of the values (S, Z, E, O).

BR-KSA-19 تحذير

Each Document level charge (BG-21) shall have a code for the reason for document level charge (BT-105).

BR-KSA-20 تحذير

Each Invoice line charge (BG-28) shall have a code for the reason for invoice line charge (BT-145).

BR-KSA-21 تحذير

Each Document level charge (BG-21) shall have a Reason for document level charge (BT-104).

BR-KSA-22 تحذير

Each Invoice line charge (BG-28) shall have a Reason for invoice line charge (BT-144).

BR-KSA-23 تحذير

A VAT breakdown (BG-23) with VAT Category code (BT-118) 'Exempt from VAT' shall have a VAT exemption reason code (BT-121).

BR-KSA-24 تحذير

A VAT breakdown (BG-23) with VAT Category code (BT-118) 'Not subject to VAT' shall have a VAT exception reason code (BT-121)

BR-KSA-25 تحذير

If it is a simplified tax invoice or an associated credit note or a debit note (KSA-2, position 1 and 2 = 02) and the tax exemption reason code (BT-121) is equal with VATEX-SA-EDU or VATEX-SA-HEA, then buyer name (BT-44) is mandatory.

BR-KSA-26 تحذير اقرأ الدليل ←
بصمة الفاتورة السابقة (PIH) بصيغة غير صحيحة

If the invoice contains the previous invoice hash (KSA-13), this hash must be base64 encoded SHA256. The hash shall be computed using the following method as described in the ds:transforms block in the XML Invoice Specifications: 1. Remove the <Invoice><ext:UB...

BR-KSA-27 تحذير

The document must contain a QR code (KSA-14), and this code must be base64Binary.

BR-KSA-28 يرفض الفاتورة

If the cryptographic stamp (KSA-15) exists in the invoice, this cryptographic stamp (KSA-15) must contain the exact "urn:oasis:names:specification:ubl:signature:1" value for signature information ID.

BR-KSA-29 تحذير

If the cryptographic stamp (KSA-15) exists in the invoice, this cryptographic stamp (KSA-15) must contain the exact "urn:oasis:names:specification:ubl:signature:Invoice" value for referenced signature ID and signature ID.

BR-KSA-30 يرفض الفاتورة

The document cryptographic stamp (KSA-15) must contain the exact "urn:oasis:names:specification:ubl:dsig:enveloped:xades" value for signature method.

BR-KSA-31 يرفض الفاتورة اقرأ الدليل ←
نوع معاملة ممنوع على الفاتورة المبسطة — التصدير والفوترة الذاتية

For simplified tax invoices and associated credit notes and debit notes (KSA-2, position 1 and 2 = 02),only the following transaction types can be "true": - third party (KSA-2, position 3 = 1), - nominal supply (KSA-2, position 4 = 1) and - summary transaction...

BR-KSA-33 يرفض الفاتورة اقرأ الدليل ←
عدّاد الفاتورة (ICV) غير موجود أو غير صحيح

Each invoice must have an invoice counter value (KSA-16).

BR-KSA-34 يرفض الفاتورة اقرأ الدليل ←
عدّاد الفاتورة (ICV) يحمل غير الأرقام

The invoice counter value (KSA-16) contains only digits.

BR-KSA-35 تحذير

If the invoice contains a supply end date (KSA-24), then the invoice must contain a supply date (KSA-5).

BR-KSA-36 تحذير

If the invoice contains a supply end date (KSA-24), then this date must be greater than or equal to the supply date (KSA-5).

BR-KSA-37 تحذير اقرأ الدليل ←
رقم مبنى البائع (KSA-17) ليس 4 أرقام

The seller address building number must contain 4 digits.

BR-KSA-39 يرفض الفاتورة اقرأ الدليل ←
الرقم الضريبي للبائع مفقود

The invoice must contain the seller VAT registration number or seller group VAT registration number (BT-31).

BR-KSA-40 يرفض الفاتورة اقرأ الدليل ←
الرقم الضريبي للبائع غير صحيح — 15 خانة تبدأ وتنتهي بالرقم 3

If it exists in the invoice, the seller VAT registration number (BT-31) must contain 15 digits. The first and the last digits are "3"..

BR-KSA-42 تحذير

The buyer name (BT-44) must be present in the tax invoice and associated credit notes and debit notes (KSA-2, position 1 and 2 = 01).

BR-KSA-44 يرفض الفاتورة اقرأ الدليل ←
الرقم الضريبي للمشتري غير صحيح في الفاتورة

If it exists in the invoice,the buyer VAT registration number or buyer group VAT registration number (BT-48) must contain 15 digits. The first digit and the last digit is "3".

BR-KSA-49 يرفض الفاتورة اقرأ الدليل ←
إعفاء التعليم أو الصحة بلا هوية وطنية للمشتري

If the tax exemption reason code (BT-121) is equal to VATEX-SA-EDU or VATEX-SA-HEA, then the other buyer ID (BT-46) is mandatory and must be national ID (BT-46-1 = NAT).

BR-KSA-51 تحذير

The line amount with VAT (KSA-12) must be Invoice line net amount (BT-131) + Line VAT amount (KSA-11).

BR-KSA-52 يرفض الفاتورة اقرأ الدليل ←
مبلغ الضريبة على مستوى البند (KSA-11) مفقود

The line VAT amount (KSA-11) is mandatory for tax invoice and associated credit notes and debit notes (KSA-2, position 1 and 2 = 01).

BR-KSA-53 يرفض الفاتورة اقرأ الدليل ←
إجمالي البند شاملًا الضريبة (KSA-12) مفقود

The line amount with VAT (KSA-12) is mandatory for tax invoice and associated credit notes and debit notes (KSA-2, position 1 and 2 = 01).

BR-KSA-56 تحذير اقرأ الدليل ←
الإشعار الدائن أو المدين بلا مرجع للفاتورة الأصلية

For credit notes ((BT-3) has the value of 381) and debit notes ((BT-3) has the value of 383), the billing reference ID (BT-25) is mandatory.

BR-KSA-60 تحذير

Cryptographic stamp (KSA-15) must exist in simplified tax invoices and associated credit notes and debit notes (KSA-2, position 1 and 2 = 02).

BR-KSA-61 تحذير اقرأ الدليل ←
بصمة الفاتورة السابقة (PIH) غير موجودة في الفاتورة

Previous invoice hash (KSA-13) must exist in an invoice.

BR-KSA-63 تحذير اقرأ الدليل ←
عنوان المشتري السعودي ناقص في الفاتورة

If the buyer country code (BT-55) is "SA", then these fields are mandatory:street name (BT-50), building number (KSA-18), postal code (BT-53), city (BT-52), District (KSA-4), country code (BT-55).For more information please access this link:https://splonline.c...

BR-KSA-66 تحذير اقرأ الدليل ←
الرمز البريدي للبائع ليس 5 خانات

Seller postal code (BT-38) must be 5 digits.

BR-KSA-67 تحذير اقرأ الدليل ←
الرمز البريدي للمشتري ليس 5 خانات

If the buyer country code (BT-55) is "SA", then the Buyer postal code(BT-53) must be 5 digits.

BR-KSA-68 يرفض الفاتورة اقرأ الدليل ←
عملة الاحتساب الضريبي (BT-6) غير موجودة

Tax currency code (BT-6) must exist in an invoice.

BR-KSA-69 تحذير

A VAT breakdown (BG-23) with VAT Category code (BT-118) 'Zero rated' shall have a VAT exception reason code (BT-121).

BR-KSA-70 يرفض الفاتورة اقرأ الدليل ←
وقت إصدار الفاتورة (KSA-25) ناقص أو بصيغة خاطئة

The invoice must contain Invoice Issue Time (KSA-25). This value should be in the format: hh:mm:ss for time expressed in local time (eg 19:20:30) or hh:mm:ssZ for time expressed in UTC (eg 19:20:30Z).

BR-KSA-71 تحذير

If the Invoice is a simplified invoice type and is a summary invoice (KSA-2, position 1 and 2 = 02, position 6 = 1),then the buyer name must be present.

BR-KSA-72 يرفض الفاتورة

If the Invoice is a simplified invoice type and is a summary invoice (KSA-2, position 1 and 2 = 02, position 6 = 1), then a supply date (KSA-5) and supply end date (KSA-24) must be present

BR-KSA-73 تحذير

If Pre-Paid amount (BT-113) is provided, then the following data is mandatory to provide as additional invoice line(s) -Prepayment ID (KSA-26) -Sequential invoice number (BT-1) of the prepayment invoice(s)-Prepayment Issue Date (KSA-28) -Issue date (BT-2) of t...

BR-KSA-74 يرفض الفاتورة

Prepayment Document Type Code (KSA-30) for the Invoice line document reference must be '386'.

BR-KSA-75 تحذير

If Prepayment Document Type code (KSA-30) is provided in an Invoice Line, then the following data is mandatory to provide in that invoice line - Prepayment VAT category Taxable Amount (KSA-31) - Sum total of taxable amounts subject to specific VAT Category cod...

BR-KSA-76 تحذير

An Invoice line (BG-25) where the Prepayment VAT category code (KSA-33) is "Zero rated" the Prepayment VAT rate (KSA-34) shall be 0 (zero).

BR-KSA-77 تحذير

An Invoice line (BG-25) where the Prepayment VAT category code (KSA-33) is "Exempt from VAT" the Prepayment VAT rate (KSA-34) shall be 0 (zero).

BR-KSA-78 تحذير

An Invoice line (BG-25) where the Prepayment VAT category code (KSA-33) is "Not subject to VAT" the Prepayment VAT rate (KSA-34) shall be 0 (zero).

BR-KSA-79 تحذير

The Prepayment VAT Category Tax Amount (KSA-32) must be Prepayment VAT category Taxable Amount( (KSA-31) x Prepayment VAT rate (KSA-34) /100).

BR-KSA-80 تحذير

The Pre-Paid amount (BT-113) must be equal to the sum total of the Prepayment VAT category Taxable Amount (KSA-31) and the Prepayment VAT Category Tax Amount (KSA-32).

BR-KSA-81 تحذير اقرأ الدليل ←
فاتورة ضريبية لمشترٍ بلا رقم ضريبي ولا معرّف بديل (BT-46)

The other Buyer ID (BT-46) must present in the tax invoice and associated debit notes and credit notes (KSA-2, position 1 and 2 = 01), where the buyer VAT registration number or buyer group VAT registration number (BT-48) is not provided.

BR-KSA-82 يرفض الفاتورة

An Invoice line (BG-25) where Prepayment Document Type Code (KSA-30) is provided, then Item net price (BT-146); Invoice line allowance amount (BT-136); Invoice line charge amount (BT-141); Item line net amount (BT-131); line VAT amount (KSA-11); and line amoun...

BR-KSA-83 تحذير

A VAT breakdown (BG-23) with VAT Category code (BT-118) 'Exempt from VAT' or 'Zero rated' or 'Not subject to VAT' shall have a VAT exemption (or exception) reason text (BT-120) with one of the values from paragraph 11.2.4 of XML implementation standards on Tax...

BR-KSA-84 يرفض الفاتورة

The Document level allowance VAT rate (BT-96), Document level Charge VAT rate (BT-103), VAT category rate(BT-119), Invoiced item VAT rate (BT-152), Prepayment VAT rate(KSA-34) must be limited to one of the following values (5 or 15) when the relevant Document...

BR-KSA-85 تحذير

The Buyer's contact phone number (BT-57) shall start with "0" or "+", followed by a maximum of 15 number and minimum 4 character after the "+" or "0" , if exist.

BR-KSA-86 تحذير

Buyer's Contact Email Address (BT-58) shall follow the following format ** [email protected] where: The [XXX] should consist of alphanumeric characters (a-z, A-Z, 0-9), dots ('.'), underscores ('_'), or hyphens ('-'). It must start and end with an alphanumeric charac...

BR-KSA-87 تحذير

If the tax exchange rate (KSA-36) exists, then Source Currency Code (KSA-37), Target Currency Code (KSA-38) and Calculation Rate (KSA-39) shall be provided

BR-KSA-88 يرفض الفاتورة

If exist, Source Currency Code (KSA-37) must be the same as Invoice currency code (BT-5)

BR-KSA-89 يرفض الفاتورة

If exists, Target Currency Code (KSA-38) must be the same as the Tax currency code (BT-6)

BR-KSA-90 يرفض الفاتورة

If exists, the allowed maximum number of digits for the Tax Exchange Rate (KSA-39) is 14.

BR-KSA-91 تحذير

For B2G supplies attracting provisions of Article 20(5) of VAT Regulations, Company Legal Form (KSA-40) should be provided with a static value "GOV" in case of a tax invoice and associated credit notes and debit notes (KSA-2, position 1 and 2 = 01).

BR-KSA-92 تحذير

If the Company Legal Form (KSA-40) is provided as 'GOV', then the Tax Point Date (BT-7) must present in a tax invoice and associated credit notes and debit notes (KSA-2, position 1 and 2 = 01) and it must refer to the Payment Order Date.

BR-KSA-93 تحذير

An Invoice line (BG-25) where the Prepayment VAT category code (KSA-33) is "Zero-rated" the Prepayment VAT exception reason code (KSA-41) should be provided.

BR-KSA-94 تحذير

An Invoice line (BG-25) where the Prepayment VAT category code (KSA-33) is " Exempt from VAT " the Prepayment VAT exemption reason code (KSA-41) should be provided.

BR-KSA-95 تحذير

An Invoice line (BG-25) where the Prepayment VAT category code (KSA-33) is " Not subject to VAT " the Prepayment VAT exception reason code (KSA-41) should be provided.

BR-KSA-96 تحذير

An Invoice line (BG-25) with the Prepayment VAT category code (KSA-33) 'Exempt from VAT' or 'Zero rated' or 'Not subject to VAT' shall have a Prepayment VAT exemption(or exception) reason text (KSA-42) with one of the values from paragraph 11.2.4 of XML implem...

BR-KSA-97 تحذير

If the Document Currency Code (BT-5) is different from "SAR", then the value in "Invoice total VAT amount (BT-110)" cannot be the same as the value in "Invoice total VAT amount in accounting currency (BT-111)".

BR-KSA-CL-01 يرفض الفاتورة اقرأ الدليل ←
رمز عملة الفاتورة (BT-5) ليس رمزًا معتمدًا في ISO 4217

Currency code (BT-5) must be according to ISO 4217:2005

BR-KSA-CL-02 يرفض الفاتورة اقرأ الدليل ←
عملة مختلطة في المستند — خاصية currencyID لا تطابق عملة الفاتورة

All currencyID attributes (BT-5) must have the same value as the invoice currency code (BT-5), except for the invoice total VAT amount in accounting currency (BT-111).

BR-KSA-CL-03 يرفض الفاتورة

Mime code must be according to subset of IANA code list.

BR-KSA-CL-04 تحذير

If VAT category Code (BT-118) is 'Z', or 'E', VAT exemption (or exception) reason code (BT-121) must exist with one of the values from paragraph 11.2.4 of XML implementation standards on Tax exemption (or exception) reason code - specific to Saudi Arabia.

BR-KSA-CL-06 تحذير

Code for the reason for document level charge (BT-105) and the code for the reason for invoice line charge (BT-145) MUST be coded using UNTDID 7161 code list. https://unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred7161.htm

BR-KSA-CL-07 تحذير

If the Prepayment VAT Category Code(KSA-33) is 'Z', or 'E' or 'O', the Prepayment VAT exemption (or exception) reason code(KSA-41) must exist with one of the values from paragraph 11.2.4 of XML implementation standards on Tax exemption (or exception) reason co...

BR-KSA-DEC-01 يرفض الفاتورة

The allowance percentage values (BT-94, BT-138) must be from 0.00 to 100.00, with maximum two decimal places. Only numerals are accepted, the percentage symbol (%) is not allowed.

BR-KSA-DEC-02 يرفض الفاتورة اقرأ الدليل ←
نسبة الضريبة خارج المدى أو بأكثر من منزلتين عشريتين

The VAT rates (BT-96, BT-103, BT-119, BT-152, KSA-34) must be from 0.00 to 100.00, with maximum two decimals.Only numerals are accepted, the percentage symbol (%) is not allowed.

BR-KSA-DEC-03 تحذير

VAT amount at line level (KSA-11) must have a maximum two decimals.

BR-KSA-DEC-04 تحذير

Amount with VAT at line level (KSA-12) must have a maximum two decimals.

BR-KSA-DEC-06 تحذير

Prepayment VAT category Taxable Amount (KSA-31) and Prepayment VAT Category Tax Amount (KSA-32) must have a maximum two decimals.

BR-KSA-EN16931-01 يرفض الفاتورة اقرأ الدليل ←
معرّف العملية (BT-23) ليس reporting:1.0

Business process (BT-23) must be "reporting:1.0".

BR-KSA-EN16931-02 يرفض الفاتورة اقرأ الدليل ←
عملة الاحتساب الضريبي (BT-6) بقيمة غير SAR

VAT accounting currency code (BT-6) must be "SAR".

BR-KSA-EN16931-03 تحذير

Allowance/Charge amount (BT-92, BT-99, BT-136, BT-141) must equal base amount (BT-93, BT-100, BT-137, BT-142) * percentage (BT-94, BT-101, BT-138, BT-143) / 100 if base amount and percentage exists.

BR-KSA-EN16931-04 تحذير

Allowance/Charge base amount (BT-93, BT-100, BT-137, BT-142) must be provided when allowance/Charge percentage (BT-94, BT-101,BT-138, BT-143) is provided.

BR-KSA-EN16931-05 تحذير

Allowance/Charge percentage (BT-94, BT-101, BT-138, BT-143) must be provided when the allowance/Charge base amount (BT-93, BT-100, BT-137, BT-142) is provided.

BR-KSA-EN16931-06 يرفض الفاتورة

Charge on price level (BG-29) is allowed. The value of Indicator should be ' True'.

BR-KSA-EN16931-07 يرفض الفاتورة اقرأ الدليل ←
سعر الوحدة الصافي لا يساوي سعرها قبل الخصم ناقص خصمها

Item net price (BT-146) must equal (Item Gross price (BT-148) - Allowance amount (BT-147)) when gross price is provided.

BR-KSA-EN16931-08 تحذير اقرأ الدليل ←
أكثر من كتلة إجمالي ضريبة تحمل التفصيل

Only one tax total (BG-22) with tax subtotals must be provided.Refer to Calculation of VAT.

BR-KSA-EN16931-09 تحذير اقرأ الدليل ←
إجمالي الضريبة بالريال مفقود أو مكرر

Only one tax total (BG-22) without tax subtotals (BG-23) must be provided when tax currency code is provided .

BR-KSA-EN16931-11 تحذير

Invoice line net amount (BT-131) must equal (Invoiced quantity (BT-129) * (Item net price (BT-146) / item price base quantity (BT-149))-) + Sum of invoice line charge amount (BT-141) - Sum of invoice line allowance amount (BT-136).

BR-KSA-EN16931-12 يرفض الفاتورة

Base quantity (BT-149) must be a positive number above zero.

BR-KSA-F-01 تحذير

A date MUST be formatted YYYY-MM-DD, in accordance to the "Calendar date complete representation" as specified by ISO 8601:2004, format YYYY-MM-DD.

BR-KSA-F-02 يرفض الفاتورة

Allowance/Charge Indicator value MUST equal to 'false'/’True’ respectively.

BR-KSA-F-04 يرفض الفاتورة اقرأ الدليل ←
مبلغ أو كمية بالسالب

All the document amounts and quantities must be positive, unless specified otherwise.

BR-KSA-F-05 تحذير

Prepayment Issue Time (KSA-29) must be in the format: hh:mm:ss for time expressed in local time or hh:mm:ssZ for time expressed in UTC.(eg 19:20:30)

BR-KSA-F-06-C3 تحذير

Field character limits for Purchase order ID field (BT-13) have not been met. The maximum limit is 127 characters.

BR-KSA-F-06-C4 تحذير

Field character limits for the Seller Address - Street field (BT-35) have not been met. The minimum limit is 1 character and the maximum limit is 1000 characters.

BR-KSA-F-06-C5 تحذير

Field character limits for Contract ID field (BT-12) have not been met. The maximum limit is 127 characters .

BR-KSA-F-06-C6 تحذير

Field character limits for the Seller Address - Additional street field (BT-36) have not been met. The maximum limit is 127 characters.

BR-KSA-F-06-C7 تحذير

Field character limits for the Seller Address - City field (BT-37) have not been met. The minimum limit is 1 character and the maximum limit is 127 characters.

BR-KSA-F-06-C9 تحذير

Field character limits for the Seller Address - District field (KSA-3) have not been met. The minimum limit is 1 character and the maximum limit is 127 characters.

BR-KSA-F-06-C11 تحذير

Field character limits for the Buyer Address - Additional street field (BT-51) have not been met. The maximum limit is 127 characters.

BR-KSA-F-06-C12 تحذير

Field character limits for Buyer name field (BT-44) have not been met. The minimum limit is 1 character and the maximum limit is 1000 characters.

BR-KSA-F-06-C13 تحذير

Field character limits for Reasons for issuance of credit / debit note field (KSA-10) have not been met. The minimum limit is 1 character and the maximum limit is 1000 characters .

BR-KSA-F-06-C14 تحذير

Field character limits for Payment terms field (KSA-22) have not been met. The maximum limit is 1000 characters.

BR-KSA-F-06-C15 تحذير

Field character limits for Payment account identifier field (BT-84) have not been met. The maximum limit is 127 characters.

BR-KSA-F-06-C16 تحذير

Field character limits for VAT exemption reason text field (BT-120) have not been met. The minimum limit is 1 character and the maximum limit is 1000 characters.

BR-KSA-F-06-C21 تحذير

Field character limits for Item price base quantity unit code field (BT-150) have not been met. The maximum limit is 127 characters.

BR-KSA-F-06-C22 يرفض الفاتورة

Field character limits for Billing reference ID field (BT-25) have not been met. The minimum limit is 1 character and the maximum limit is 5000 characters.

BR-KSA-F-06-C23 تحذير

Field character limits for the Buyer Address - Street field (BT-50) have not been met. The minimum limit is 1 character and the maximum limit is 1000 characters.

BR-KSA-F-06-C24 تحذير

Field character limits for the Buyer Address - Street field (BT-50) have not been met. The maximum limit is 1000 characters.

BR-KSA-F-06-C25 تحذير

Field character limits for the Buyer Address - City field (BT-52) have not been met. The minimum limit is 1 character and the maximum limit is 127 characters.

BR-KSA-F-06-C26 تحذير

Field character limits for the Buyer Address - City field (BT-52) have not been met. The maximum limit is 127 characters.

BR-KSA-F-06-C28 تحذير

Field character limits for the Buyer Address - District field (KSA-4) have not been met. The minimum limit is 1 character and the maximum limit is 127 characters.

BR-KSA-F-06-C29 تحذير

Field character limits for the Buyer Address - District field (KSA-4) have not been met. The maximum limit is 127 characters.

BR-KSA-F-06-C32 تحذير

Field character limits for Buyer name field (BT-44) have not been met. The maximum limit is 1000 characters.

BR-KSA-F-06-C33 تحذير

Field character limits for Reason for the document level charge (BT-104) have not been met. The maximum limit is 1,000 characters.

BR-KSA-F-06-C34 تحذير

Field character limits for Reason for invoice line charge (BT-144) have not been met. The maximum limit is 1,000 characters.

BR-KSA-F-06-C35 تحذير

Field character limits for Reason for the document level allowance (BT-97) have not been met. The maximum limit is 1,000 characters.

BR-KSA-F-06-C36 تحذير

Field character limits for Reason for the invoice line allowance (BT-139) have not been met. The maximum limit is 1,000 characters.

BR-KSA-F-06-C37 تحذير

Field character limits for the contact name - Buyer's contact point field (BT-56) have not been met. The maximum limit is 1000 characters.

BR-KSA-F-06-C38 تحذير

Field character limits for the contact note - Buyer's Contact Note field (KSA-35) have not been met. The maximum limit is 1000 characters.

BR-KSA-F-06-C39 تحذير

Field character limits for the Prepayment VAT exemption reason text (KSA-42) have not been met. The maximum limit is 1000 characters.

BR-KSA-F-13 تحذير اقرأ الدليل ←
معرّف البائع أو المشتري الإضافي يحتوي قيمة غير صحيحة

Please recheck Other Seller/Buyer ID (BT-29 or BT-46) as it contains an invalid value.

المصدر: ZATCA e-Invoicing SDK — compiled validation schematron (20210819_ZATCA_E-invoice_Validation_Rules.xsl، إصدار Java 238 R3.3.9)، استُخرج في 2026-07-30. نصوص الرسائل ملك الهيئة وتُعرض كما هي؛ الشرح العربي من ZATCA Tools.

أسئلة شائعة

ما الفرق بين خطأ وتحذير في رد الهيئة؟ +
الخطأ (ERROR) يرفض الفاتورة فلا تُسجَّل عند الهيئة، ويجب تصحيحها وإعادة إرسالها. التحذير (WARNING) لا يمنع القبول: الفاتورة تُقبل بحالة «مقبولة مع تحذيرات» وتُعدّ نظامية، لكن فيها بيانات ينبغي إصلاحها. من أصل 135 كودًا، 44 منها يرفض الفاتورة و91 تحذير.
أين أجد كود الخطأ في رد الهيئة؟ +
رد الهيئة كائن JSON فيه validationResults، وداخله ثلاث قوائم: infoMessages وwarningMessages وerrorMessages. كل عنصر يحمل code وcategory وmessage. الكود الذي يرفض فاتورتك هو الموجود داخل errorMessages.
فاتورتي رُفضت — هل عليّ غرامة؟ +
الرفض نفسه ليس غرامة، لكن الفاتورة المبسطة يجب أن تُبلَّغ خلال 24 ساعة من إصدارها، والفاتورة الضريبية تحتاج إجازة قبل إرسالها للعميل. إذا انتهت المهلة والفاتورة مرفوضة فأنت في نطاق عدم الالتزام. صحّح وأعد الإرسال في نفس اليوم.
من أين جاءت هذه القائمة؟ +
من ملف قواعد التحقق (schematron) المنشور داخل حزمة تطوير الفوترة الإلكترونية من هيئة الزكاة والضريبة والجمارك، إصدار Java 238 R3.3.9. نصوص الرسائل مأخوذة بحروفها كما ترسلها الهيئة بالإنجليزية، والشرح من عندنا.
هل القائمة كاملة؟ +
تغطي كل ما تنصّ عليه قواعد التحقق المنشورة، ولاحظنا أن الواجهة الحيّة ترجع أكوادًا لا توجد في تلك النسخة — أضفناها من ردود رفض حقيقية سجّلناها. إن وصلك كود غير موجود هنا فأخبرنا وسنضيفه.
معظم هذه الأكواد لا تصل إليك أصلًا

البصمة والعدّاد والترميز والتوقيع تُبنى تلقائيًا في ZATCA Tools — لا حقول تكتبها ولا قواعد تحفظها. ابدأ مجانًا، وبدون بطاقة ائتمانية.

ابدأ مجانًا