Error in production state

Hello everyone,
we have some problems in the production state

  1. This is first error:

“errorMessages”:[{“type”:“ERROR”,“code”:“BR-KSA-14”,“category”:“KSA”,“message”:“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 characters. Tax Identification Number ‘TIN’ as schemeID. Commercial registration number with ‘CRN’ as schemeID. MOMRAH license with ‘MOM’ as schemeID. MHRSD license with ‘MLS’ as schemeID. 700 Number with ‘700’ as schemeID. MISA license with ‘SAG’ as schemeID. National ID with ‘NAT’ as schemeID. GCC ID with ‘GCC’ as schemeID. Iqama Number with ‘IQA’ as schemeID. Passport ID with ‘PAS’ as schemeID. Other ID with ‘OTH’ as schemeID.In case of multiple commercial registrations, the seller should fill the commercial registration of the branch in respect of which the Tax Invoice is being issued. In case multiple IDs exist then one of the above must be entered following the sequence specified above.”,“status”:“ERROR”}]

this is XML


<cac:AccountingCustomerParty>
		<cac:Party>
			<cac:PartyIdentification>
				<cbc:ID schemeID="NAT">000000000</cbc:ID>
			</cac:PartyIdentification>
			<cac:PartyLegalEntity>
				<cbc:RegistrationName>دانيا سالم ابراهيم الدوسري</cbc:RegistrationName>
			</cac:PartyLegalEntity>
		</cac:Party>
	</cac:AccountingCustomerParty>
  1. This is the second problem
    when we send a sign XML the status is null and the message is An error occurred while sending the request.
    it has been acquired 3 times until now
  2. finally problem:
    this message is returned from Zatca
 <html>
<head><title>503 Service Temporarily Unavailable</title></head>
<body>
<center><h1>503 Service Temporarily Unavailable</h1></center>
<hr><center>nginx</center>
</body>
</html>

Please help me and tell me how we can avoid these problems in the future.
I appreciate your help.

First Problem, You need to Enter National ID Number
<cbc:ID schemeID="NAT">000000000</cbc:ID>
not 000000000

yes we put the correct National ID Number but here I write 00000000 for example

please check the AccountingSupplierParty block >> PartyIdentification >> ID also

we send more than 100 invoice but only this rejected with these massage

until and unless you share the complete XML, we cannot find out the problem

</ext:UBLExtensions>
	<cbc:ProfileID>reporting:1.0</cbc:ProfileID>
	<cbc:ID>27300</cbc:ID>
	<cbc:UUID>c7565dc5-ba61-411b-9416-50c6f6e91be1</cbc:UUID>
	<cbc:IssueDate>2024-11-04</cbc:IssueDate>
	<cbc:IssueTime>00:00:00Z</cbc:IssueTime>
	<cbc:InvoiceTypeCode name="0200000">388</cbc:InvoiceTypeCode>
	<cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode>
	<cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode>
	<cbc:LineCountNumeric>1</cbc:LineCountNumeric>	
 	<cac:AdditionalDocumentReference>
		<cbc:ID>ICV</cbc:ID>
		<cbc:UUID>27300</cbc:UUID>
	</cac:AdditionalDocumentReference>
    <cac:AdditionalDocumentReference>
        <cbc:ID>PIH</cbc:ID>
        <cac:Attachment>
            <cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">2etdmJP+V+uRbfo8TL4SZrJpcuXKCweWKxJlKygaL80=</cbc:EmbeddedDocumentBinaryObject>
          </cac:Attachment>
    </cac:AdditionalDocumentReference>
	<cac:AdditionalDocumentReference>
        <cbc:ID>QR</cbc:ID>
        <cac:Attachment>
            <cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">AS/YrNmF2LnZitipINin2YTYo9i32YHYp9mEINiw2YjZiiDYp9mE2KXYudin2YLYqQIPMzEwMTc5ODkwODAwMDAzAxMyMDI0LTExLTA0VDAzOjAwOjAwBAQwLjAwBQQwLjAwBixPQSs0L0NZeGNWZVRLNzJZTExlMVNScmhyQURTcFYvb1hqSWZpc09xdTZRPQdgTUVZQ0lRQ2ZUMVl5V2xmT0JVM1ZUVnBtY3NvKzR6bm9RZHFPWkdCYjV2TjZVWXZOYmdJaEFNbFoxZGpmUFowSkViYUtSK0htUzBHOTd1U0N2cmRCK0ZyRlU0d2VKM2VECFgwVjAQBgcqhkjOPQIBBgUrgQQACgNCAASgSjKeXHbpWqggtVdEvDzix11C0+kBnTG7YdlfU4PU0nM2QqSqARTXBHranse9fwZFXhCjHBHapCTrUIYbMcmdCUcwRQIhAIMzaBaPEbBUsN768Zr/Iuj9yblY5nJM31DHx/zNUqfhAiA4AtiMtut+r3dgWd9xO70mTx3TOpcv3VGXHVK/q0xu9g==</cbc:EmbeddedDocumentBinaryObject>
        </cac:Attachment>
</cac:AdditionalDocumentReference><cac:Signature>
      <cbc:ID>urn:oasis:names:specification:ubl:signature:Invoice</cbc:ID>
      <cbc:SignatureMethod>urn:oasis:names:specification:ubl:dsig:enveloped:xades</cbc:SignatureMethod>
</cac:Signature><cac:AccountingSupplierParty>
		<cac:Party>
		    <cac:PartyIdentification>
			    <cbc:ID schemeID="CRN">000000 for example </cbc:ID>
		    </cac:PartyIdentification>
			<cac:PostalAddress>
				<cbc:StreetName>Imam Saud Bin Abdulaziz Bin Mohammed Rd</cbc:StreetName>
				<cbc:BuildingNumber>2365</cbc:BuildingNumber>
				<cbc:CitySubdivisionName>King Fahad Dist.</cbc:CitySubdivisionName>
				<cbc:CityName>Riyadh</cbc:CityName>
				<cbc:PostalZone>12273</cbc:PostalZone>
				<cbc:CountrySubentity>Kingdom Of Saudi Arabia</cbc:CountrySubentity>
				<cac:Country>
					<cbc:IdentificationCode>SA</cbc:IdentificationCode>
				</cac:Country>
			</cac:PostalAddress>
			<cac:PartyTaxScheme>
				<cbc:CompanyID>000000 for example</cbc:CompanyID>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:PartyTaxScheme>
			<cac:PartyLegalEntity>
				<cbc:RegistrationName>جمعية الأطفال ذوي الإعاقة</cbc:RegistrationName>
			</cac:PartyLegalEntity>
		</cac:Party>
	</cac:AccountingSupplierParty>
	<cac:AccountingCustomerParty>
		<cac:Party>
			<cac:PartyIdentification>
				<cbc:ID schemeID="NAT">000000 for example</cbc:ID>
			</cac:PartyIdentification>
			<cac:PartyLegalEntity>
				<cbc:RegistrationName>دانيا سالم ابراهيم الدوسري</cbc:RegistrationName>
			</cac:PartyLegalEntity>
		</cac:Party>
	</cac:AccountingCustomerParty>
 
	
	<cac:PaymentMeans>
		<cbc:PaymentMeansCode>48</cbc:PaymentMeansCode>
		<cbc:InstructionNote />
	</cac:PaymentMeans>

	<cac:TaxTotal>
		<cbc:TaxAmount currencyID="SAR">0.00</cbc:TaxAmount>
	</cac:TaxTotal>
<cac:TaxTotal>
		<cbc:TaxAmount currencyID="SAR">0.00</cbc:TaxAmount>
		<cac:TaxSubtotal>
			<cbc:TaxableAmount currencyID="SAR">0.00</cbc:TaxableAmount>
			<cbc:TaxAmount currencyID="SAR">0.00</cbc:TaxAmount>
			<cac:TaxCategory>
				<cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5305">Z</cbc:ID>
				<cbc:Percent>0.00</cbc:Percent>
                <cbc:TaxExemptionReasonCode>VATEX-SA-HEA</cbc:TaxExemptionReasonCode><cbc:TaxExemptionReason>Saudi Child</cbc:TaxExemptionReason>
				<cac:TaxScheme>
					<cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5153">VAT</cbc:ID>
				</cac:TaxScheme>
        	</cac:TaxCategory>
		</cac:TaxSubtotal>
	</cac:TaxTotal>
	
	<cac:LegalMonetaryTotal>
	<cbc:LineExtensionAmount currencyID="SAR">0.00</cbc:LineExtensionAmount>
	<cbc:TaxExclusiveAmount currencyID="SAR">0.00</cbc:TaxExclusiveAmount>
	<cbc:TaxInclusiveAmount currencyID="SAR">0.00</cbc:TaxInclusiveAmount>
     <cbc:PrepaidAmount currencyID="SAR">0.00</cbc:PrepaidAmount> 
	<cbc:PayableAmount currencyID="SAR">0.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
	<cac:InvoiceLine>
		<cbc:ID>1</cbc:ID>
		<cbc:InvoicedQuantity unitCode="PCE">1</cbc:InvoicedQuantity>
		<cbc:LineExtensionAmount currencyID="SAR">0.00</cbc:LineExtensionAmount>
		<cac:TaxTotal>
			<cbc:TaxAmount currencyID="SAR">0.00</cbc:TaxAmount>
			<cbc:RoundingAmount currencyID="SAR">0.00</cbc:RoundingAmount>
		</cac:TaxTotal>
		<cac:Item>
			<cbc:Name>تقييم و متابعة اجهزة مساعدة/جبائر/ استشارة  للقسم النفسي /غير مدفوع</cbc:Name>
			<cac:ClassifiedTaxCategory>
				<cbc:ID>Z</cbc:ID>
				<cbc:Percent>0.00</cbc:Percent>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:ClassifiedTaxCategory>
		</cac:Item>
		<cac:Price>
			<cbc:PriceAmount currencyID="SAR">0.00</cbc:PriceAmount>
            <cbc:BaseQuantity>1</cbc:BaseQuantity>
			<cac:AllowanceCharge>
				<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
				<cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
				<cbc:Amount currencyID="SAR">0.00</cbc:Amount>
			</cac:AllowanceCharge>
		</cac:Price>
	</cac:InvoiceLine>
</Invoice>

Replace it and Check, for Simplified Invoices PostalZone, CountrySubentity & Country is mandatory

	<cac:AccountingCustomerParty>
		<cac:Party>
			<cac:PartyIdentification>
				<cbc:ID schemeID="NAT">1234567891</cbc:ID>
			</cac:PartyIdentification>
			<cac:PostalAddress>
				<cbc:PostalZone>12273</cbc:PostalZone>
				<cbc:CountrySubentity>Riyadh</cbc:CountrySubentity>
				<cac:Country>
					<cbc:IdentificationCode>SA</cbc:IdentificationCode>
				</cac:Country>
			</cac:PostalAddress>
			<cac:PartyLegalEntity>
				<cbc:RegistrationName>دانيا سالم ابراهيم الدوسري</cbc:RegistrationName>
			</cac:PartyLegalEntity>
		</cac:Party>
	</cac:AccountingCustomerParty>

but we generated more than 100 invoices only this was rejected!!!
what about others??

did this work??? First confirm than we can see other things

yes all other is accepted but yesterday 5 invoices are rejected with same error