I integrated my system with ZATCA a year ago, and everything was working fine. However, over the past few days, when I use the Simulation portal for testing, Simplified Invoices are being reported with warnings. I’ve been using the same code since the beginning, and there were no issues earlier. My production server is working fine on the live server with the same code, but I’m encountering this warning only on the Simulation server.
Here is the response from ZATCA.
202: {
“validationResults”: {
“infoMessages”: [
{
“type”: “INFO”,
“code”: “XSD_ZATCA_VALID”,
“category”: “XSD validation”,
“message”: “Complied with UBL 2.1 standards in line with ZATCA specifications”,
“status”: “PASS”
}
],
“warningMessages”: [
{
“type”: “WARNING”,
“code”: “invalid-signing-certificate”,
“category”: “CERTIFICATE_ERRORS”,
“message”: “X509Certificate (CCSID / PCSID) used for signing is not valid certificate (CCSID / PCSID) for this VAT Registration Number.”,
“status”: “WARNING”
}
],
“errorMessages”: [
],
“status”: “WARNING”
},
“reportingStatus”: “REPORTED”
}
{
“validationResults”: {
“infoMessages”: [
{
“type”: “INFO”,
“code”: “XSD_ZATCA_VALID”,
“category”: “XSD validation”,
“message”: “Complied with UBL 2.1 standards in line with ZATCA specifications”,
“status”: “PASS”
}
],
“warningMessages”: [
{
“type”: “WARNING”,
“code”: “invalid-signing-certificate”,
“category”: “CERTIFICATE_ERRORS”,
“message”: “X509Certificate (CCSID / PCSID) used for signing is not valid certificate (CCSID / PCSID) for this VAT Registration Number.”,
“status”: “WARNING”
}
],
“errorMessages”: [
],
“status”: “WARNING”
},
“reportingStatus”: “REPORTED”
}
It says Issue in VAT and certifiate but all the correct and I used same.
Dear @advancesystem ,
please see below some of the most common mistakes that relates to the certificates warning:
1- Please make sure that you are using the production CSID and not the compliance CSID for signing invoices.
In the onboarding process, 2 CSIDs (X509 certificates) will be returned.
First one: after requesting the compliance CSID API, (which is the first step to do in onboarding process), we use this certifecate to sign invoices for the compliance checks step (compliance Invoice API), so we only use this certificate to sign invoices for the testing purposes in the compliance checks phase, as invoices in compliane checks are not being sent to ZATCA.
Second one: after requesting the production CSID API, we use this certificate to sign real invoices that are being sent to ZATCA by reporting API for simplified invoices or clearance API for standard invoices, however signing standard invoices is optional & not mandatory.
so what suggested is to make sure that you are using the PCSID X5509 certificate to sign your invoices and check again.
2- If the VAT number that associated with the certificate is not the vat number inside the XML body
3- If the certificate has been generated from simulation and used in production or vice versa
4- If you are using an expired certificate to send/sign invoices
if you are signing your invoices with a certificate & upload it to zatca with a different one, but both of the two are under the same VAT number but still facing “accepted with warning”, then please continue as this warning is not blocking you from the uploading process.
Thanks,
Thank you for your response.
As I mentioned earlier, I designed and developed my system last year, successfully testing and integrating it for many of my customers. Everything was working perfectly. However, I have recently started receiving warnings in the Simulation server for the same program that was functioning flawlessly before.
The same program is working without any issues on the Production server, but it generates warnings in the Simulation environment.
I suspect that something has changed in the Simulation server. Kindly review the issue and let me know if any changes are required.
Thank you.
Bellow are the two xml files. First one is Simplifed Tax Invoice with reported with warning and second one is Tax Invoice which is cleared. In both xml you can see the same certificate and Seller details are mentioned.
Simplified Tax Invoice Reported with Warning
ext:UBLExtensions
ext:UBLExtension
ext:ExtensionURI urn:oasis:names:specification:ubl:dsig:enveloped:xades</ext:ExtensionURI>
ext:ExtensionContent
<sig:UBLDocumentSignatures xmlns:sac=“urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2” xmlns:sbc=“urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2” xmlns:sig=“urn:oasis:names:specification:ubl:schema:xsd:CommonSignatureComponents-2”>
sac:SignatureInformation
cbc:ID urn:oasis:names:specification:ubl:signature:1</cbc:ID>
sbc:ReferencedSignatureID urn:oasis:names:specification:ubl:signature:Invoice</sbc:ReferencedSignatureID>
<ds:Signature xmlns:ds=“XML-Signature Syntax and Processing ” Id=“signature”>
ds:SignedInfo
<ds:CanonicalizationMethod Algorithm=“Canonical XML 1.1 ”/>
<ds:SignatureMethod Algorithm=“xmldsig-more namespace ”/>
<ds:Reference Id=“invoiceSignedData” URI=“”>ds:Transforms <ds:Transform Algorithm=“XML Path Language (XPath) ”>ds:XPath not(//ancestor-or-self::ext:UBLExtensions)</ds:XPath></ds:Transform><ds:Transform Algorithm=“XML Path Language (XPath) ”>ds:XPath not(//ancestor-or-self::cac:Signature)</ds:XPath></ds:Transform><ds:Transform Algorithm=“XML Path Language (XPath) ”>ds:XPath not(//ancestor-or-self::cac:AdditionalDocumentReference[cbc:ID=‘QR’])</ds:XPath></ds:Transform><ds:Transform Algorithm=“Canonical XML 1.1 ”/></ds:Transforms>
<ds:DigestMethod Algorithm=“XML Encryption Syntax and Processing ”/>
ds:DigestValue Nkt58ySEpdcixnQIViJS2ngVYL80DjgadiIgFOqVwJ8=</ds:DigestValue>
</ds:Reference>
<ds:Reference Type=“XML-Signature Syntax and Processing ” URI=“#xadesSignedProperties ”>
<ds:DigestMethod Algorithm=“XML Encryption Syntax and Processing ”/>
ds:DigestValue ZDg0YjYyNWRkNjUzYzJhNWM2NjZkNDRkZThjZTlmNWE3NTYyMmRmOTgxNThjMGJjYTNkZDVkMmE2ZGRmODg5NQ==</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
ds:SignatureValue MEQCIDUc+9Kf1Bp3ox6J5QLf6VXUm2ejcCB9z5lGRezd48tqAiAuyIQZZMUMYM+uni712PqoPwZpFyLPeXE6X/NLVkqhaQ==</ds:SignatureValue>
ds:KeyInfo
ds:X509Data
ds:X509Certificate MIIFGjCCBMGgAwIBAgITEwAAXVK2xYhM8PM+/gABAABdUjAKBggqhkjOPQQDAjBiMRUwEwYKCZImiZPyLGQBGRYFbG9jYWwxEzARBgoJkiaJk/IsZAEZFgNnb3YxFzAVBgoJkiaJk/IsZAEZFgdleHRnYXp0MRswGQYDVQQDExJQRVpFSU5WT0lDRVNDQTItQ0EwHhcNMjUwMTE0MTA1MDQwWhcNMjcwMTE0MTEwMDQwWjBrMQswCQYDVQQGEwJTQTEdMBsGA1UEChMUTWFoaWxsIFRyYWRpbmcgQ29ycC4xGDAWBgNVBAsTD1JpeWFkaCBTaG93cm9vbTEjMCEGA1UEAxMaTVRDLVJVSDAxMS0zMDA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GlvbkF1dGhvcml0eTAOBgNVHQ8BAf8EBAMCB4AwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIgYaoHYTQ+xKG7Z0kh877GdPAVWaBnNgtg+XFXQIBZAIBEDAdBgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwMwJwYJKwYBBAGCNxUKBBowGDAKBggrBgEFBQcDAjAKBggrBgEFBQcDAzAKBggqhkjOPQQDAgNHADBEAiAd2J8BXRbNdvHVA+SvBssdCtB3fJBnHmVBICsrkCK1FAIgSXbnF+DDEX2tUl1uPzH1VDswGgyibUkLv+gICejTokw=</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
ds:Object
<xades:QualifyingProperties xmlns:xades=“Assigned ETSI XML URIs ” Target=“signature”>
<xades:SignedProperties Id=“xadesSignedProperties”>
xades:SignedSignatureProperties
xades:SigningTime 2025-01-14T14:02:38Z</xades:SigningTime>
xades:SigningCertificate
xades:Cert
xades:CertDigest
<ds:DigestMethod Algorithm=“XML Encryption Syntax and Processing ”/>
ds:DigestValue NmQ2MDcyMWM5MTBhYTRjNTQyYmYzMmNkYzA5YzlkYzA4Yzc0YzU1OTQyNTE3NGVkN2Y5YWVkNmI2NTk5ZDJiMA==</ds:DigestValue>
</xades:CertDigest>
xades:IssuerSerial
ds:X509IssuerName CN=PEZEINVOICESCA2-CA, DC=extgazt, DC=gov, DC=local</ds:X509IssuerName>
ds:X509SerialNumber 423714282819760838765068159912945770425245010</ds:X509SerialNumber>
</xades:IssuerSerial>
</xades:Cert>
</xades:SigningCertificate>
</xades:SignedSignatureProperties>
</xades:SignedProperties>
</xades:QualifyingProperties>
</ds:Object>
</ds:Signature></sac:SignatureInformation>
</sig:UBLDocumentSignatures>
</ext:ExtensionContent>
</ext:UBLExtension>
</ext:UBLExtensions>
cbc:ProfileID reporting:1.0</cbc:ProfileID>
cbc:ID SI-RUH11-2500001</cbc:ID>
cbc:UUID 710840DA-29A2-4E91-A1DF-B6819EBBE174</cbc:UUID>
cbc:IssueDate 2025-01-14</cbc:IssueDate>
cbc:IssueTime 14:02:38</cbc:IssueTime>
<cbc:InvoiceTypeCode name=“0200000”>388</cbc:InvoiceTypeCode>
cbc:DocumentCurrencyCode SAR</cbc:DocumentCurrencyCode>
cbc:TaxCurrencyCode SAR</cbc:TaxCurrencyCode>
cac:AdditionalDocumentReference
cbc:ID ICV</cbc:ID>
cbc:UUID 1</cbc:UUID>
</cac:AdditionalDocumentReference>
cac:AdditionalDocumentReference
cbc:ID PIH</cbc:ID>
cac:Attachment
<cbc:EmbeddedDocumentBinaryObject mimeCode=“text/plain”>NWZlY2ViNjZmZmM4NmYzOGQ5NTI3ODZjNmQ2OTZjNzljMmRiYzIzOWRkNGU5MWI0NjcyOWQ3M2EyN2ZiNTdlOQ==</cbc:EmbeddedDocumentBinaryObject>
</cac:Attachment>
</cac:AdditionalDocumentReference>
cac:AdditionalDocumentReference cbc:ID QR</cbc:ID>cac:Attachment <cbc:EmbeddedDocumentBinaryObject mimeCode=“text/plain”>AT9NYWhpbGwgVHJhZGluZyBDb3JwLiB8INmF2KTYs9iz2Kkg2KfZhNmF2KfZh9mEINin2YTYqtis2KfYsdmK2KkCDzMwMDA0Mzk4MjMwMDAwMwMTMjAyNS0wMS0xNFQxNDowMjozOAQGNDQ4LjUwBQU1OC41MAYsTmt0NTh5U0VwZGNpeG5RSVZpSlMybmdWWUw4MERqZ2FkaUlnRk9xVndKOD0HYE1FUUNJRFVjKzlLZjFCcDNveDZKNVFMZjZWWFVtMmVqY0NCOXo1bEdSZXpkNDh0cUFpQXV5SVFaWk1VTVlNK3VuaTcxMlBxb1B3WnBGeUxQZVhFNlgvTkxWa3FoYVE9PQhYMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEenKQlnFomBoaWPI7v953R4UVh9gMetOEu+SKQqdSZiwOiUyg8eo62BiJU4TpYslPx5ZGt0JJ6ge9OHlMI3x68AlGMEQCIB3YnwFdFs128dUD5K8Gyx0K0Hd8kGceZUEgKyuQIrUUAiBJducX4MMRfa1SXW4/MfVUOzAaDKJtSQu/6AgJ6NOiTA==</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”>1010082560</cbc:ID>
</cac:PartyIdentification>
cac:PostalAddress
cbc:StreetName Salahuddin Al Ayyubi | صلاح الدين الأيوبي</cbc:StreetName>
cbc:BuildingNumber 6314</cbc:BuildingNumber>
cbc:PlotIdentification 4026</cbc:PlotIdentification>
cbc:CitySubdivisionName Al Malaz Dist. | حي الملز</cbc:CitySubdivisionName>
cbc:CityName Riyadh | الرياض</cbc:CityName>
cbc:PostalZone 12836</cbc:PostalZone>
cbc:CountrySubentity Riyadh Province | منطقة الرياض</cbc:CountrySubentity>
cac:Country
cbc:IdentificationCode SA</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
cac:PartyTaxScheme
cbc:CompanyID 300043982300003</cbc:CompanyID>
cac:TaxScheme
cbc:ID VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
cac:PartyLegalEntity
cbc:RegistrationName Mahill Trading Corp. | مؤسسة الماهل التجارية</cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingSupplierParty>
cac:AccountingCustomerParty
cac:Party
cac:PostalAddress
cac:Country
cbc:IdentificationCode SA</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
cac:PartyTaxScheme
cac:TaxScheme
cbc:ID VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
cac:PartyLegalEntity
cbc:RegistrationName MANABA AL HAYAT | منابة الحياة</cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingCustomerParty>
cac:Delivery
cbc:ActualDeliveryDate 2025-01-14</cbc:ActualDeliveryDate>
</cac:Delivery>
cac:PaymentMeans
cbc:PaymentMeansCode 10</cbc:PaymentMeansCode>
</cac:PaymentMeans>
cac:TaxTotal
<cbc:TaxAmount currencyID=“SAR”>58.50</cbc:TaxAmount>
cac:TaxSubtotal
<cbc:TaxableAmount currencyID=“SAR”>390.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID=“SAR”>58.50</cbc:TaxAmount>
cac:TaxCategory
cbc:ID S</cbc:ID>
cbc:Percent 15.00</cbc:Percent>
cac:TaxScheme
cbc:ID VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
cac:TaxTotal
<cbc:TaxAmount currencyID=“SAR”>58.50</cbc:TaxAmount>
</cac:TaxTotal>
cac:LegalMonetaryTotal
<cbc:LineExtensionAmount currencyID=“SAR”>390.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID=“SAR”>390.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID=“SAR”>448.50</cbc:TaxInclusiveAmount>
<cbc:AllowanceTotalAmount currencyID=“SAR”>0.00</cbc:AllowanceTotalAmount>
<cbc:PayableAmount currencyID=“SAR”>448.50</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
cac:InvoiceLine
cbc:ID 1</cbc:ID>
<cbc:InvoicedQuantity unitCode=“Each”>100.00</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID=“SAR”>390.00</cbc:LineExtensionAmount>
cac:TaxTotal
<cbc:TaxAmount currencyID=“SAR”>58.50</cbc:TaxAmount>
<cbc:RoundingAmount currencyID=“SAR”>448.50</cbc:RoundingAmount>
</cac:TaxTotal>
cac:Item
cbc:Name NIBCO PVC Sch-80 Female Adapter 1/2" | NIBCO 1/2" جلبة بسنه داخلي بارد</cbc:Name>
cac:ClassifiedTaxCategory
cbc:ID S</cbc:ID>
cbc:Percent 15.00</cbc:Percent>
cac:TaxScheme
cbc:ID VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
cac:Price
<cbc:PriceAmount currencyID=“SAR”>3.9000</cbc:PriceAmount>
<cbc:BaseQuantity unitCode=“Each”>1</cbc:BaseQuantity>
cac:AllowanceCharge
cbc:ChargeIndicator false</cbc:ChargeIndicator>
cbc:AllowanceChargeReason Discount</cbc:AllowanceChargeReason>
<cbc:Amount currencyID=“SAR”>0.0000</cbc:Amount>
<cbc:BaseAmount currencyID=“SAR”>3.9000</cbc:BaseAmount>
cac:TaxCategory
cbc:ID S</cbc:ID>
cbc:Percent 15.00</cbc:Percent>
cac:TaxScheme
cbc:ID VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:AllowanceCharge>
</cac:Price>
</cac:InvoiceLine>
Tax Invoice Cleared
<?xml version="1.0" encoding="UTF-8"?>
ext:UBLExtensions
ext:UBLExtension
ext:ExtensionURI urn:oasis:names:specification:ubl:dsig:enveloped:xades</ext:ExtensionURI>
ext:ExtensionContent
<sig:UBLDocumentSignatures xmlns:sig=“urn:oasis:names:specification:ubl:schema:xsd:CommonSignatureComponents-2” xmlns:sac=“urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2” xmlns:sbc=“urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2”>
sac:SignatureInformation
cbc:ID urn:oasis:names:specification:ubl:signature:1</cbc:ID>
sbc:ReferencedSignatureID urn:oasis:names:specification:ubl:signature:Invoice</sbc:ReferencedSignatureID>
<ds:Signature xmlns:ds=“XML-Signature Syntax and Processing ” Id=“signature”>
ds:SignedInfo
<ds:CanonicalizationMethod Algorithm=“Canonical XML 1.1 ”/>
<ds:SignatureMethod Algorithm=“xmldsig-more namespace ”/>
<ds:Reference Id=“invoiceSignedData” URI=“”>
ds:Transforms
<ds:Transform Algorithm=“XML Path Language (XPath) ”>
ds:XPath not(//ancestor-or-self::ext:UBLExtensions)</ds:XPath>
</ds:Transform>
<ds:Transform Algorithm=“XML Path Language (XPath) ”>
ds:XPath not(//ancestor-or-self::cac:Signature)</ds:XPath>
</ds:Transform>
<ds:Transform Algorithm=“XML Path Language (XPath) ”>
ds:XPath not(//ancestor-or-self::cac:AdditionalDocumentReference[cbc:ID=‘QR’])</ds:XPath>
</ds:Transform>
<ds:Transform Algorithm=“Canonical XML 1.1 ”/>
</ds:Transforms>
<ds:DigestMethod Algorithm=“XML Encryption Syntax and Processing ”/>
ds:DigestValue HqhMYxvkT40usDmVPATGD5AxDinv89zWoQKDH+1PYIs=</ds:DigestValue>
</ds:Reference>
<ds:Reference Type=“XML-Signature Syntax and Processing ” URI=“#xadesSignedProperties ”>
<ds:DigestMethod Algorithm=“XML Encryption Syntax and Processing ”/>
ds:DigestValue ODY2OTA5ODdkYzhiMDlhOGYyOTA2ZDYwNTU5YWRjNTUxNDhjMmM2ZjE0Yjk2ODM2NDZkZDAyY2IxOTY1ZWMwOA==</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
ds:SignatureValue MEYCIQChX2eoiHIQDO2t/MexN5BNMUL+mD+5kVL9g8Ap04mARgIhANaXbEa2LZBOApDUb59HjgI0NHsT6upPelK3w4nbrRjM</ds:SignatureValue>
ds:KeyInfo
ds:X509Data
ds:X509Certificate MIIFGjCCBMGgAwIBAgITEwAAXVK2xYhM8PM+/gABAABdUjAKBggqhkjOPQQDAjBiMRUwEwYKCZImiZPyLGQBGRYFbG9jYWwxEzARBgoJkiaJk/IsZAEZFgNnb3YxFzAVBgoJkiaJk/IsZAEZFgdleHRnYXp0MRswGQYDVQQDExJQRVpFSU5WT0lDRVNDQTItQ0EwHhcNMjUwMTE0MTA1MDQwWhcNMjcwMTE0MTEwMDQwWjBrMQswCQYDVQQGEwJTQTEdMBsGA1UEChMUTWFoaWxsIFRyYWRpbmcgQ29ycC4xGDAWBgNVBAsTD1JpeWFkaCBTaG93cm9vbTEjMCEGA1UEAxMaTVRDLVJVSDAxMS0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WNhdGlvbkF1dGhvcml0eTAOBgNVHQ8BAf8EBAMCB4AwPAYJKwYBBAGCNxUHBC8wLQYlKwYBBAGCNxUIgYaoHYTQ+xKG7Z0kh877GdPAVWaBnNgtg+XFXQIBZAIBEDAdBgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwMwJwYJKwYBBAGCNxUKBBowGDAKBggrBgEFBQcDAjAKBggrBgEFBQcDAzAKBggqhkjOPQQDAgNHADBEAiAd2J8BXRbNdvHVA+SvBssdCtB3fJBnHmVBICsrkCK1FAIgSXbnF+DDEX2tUl1uPzH1VDswGgyibUkLv+gICejTokw=</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
ds:Object
<xades:QualifyingProperties xmlns:xades=“Assigned ETSI XML URIs ” Target=“signature”>
<xades:SignedProperties Id=“xadesSignedProperties”>
xades:SignedSignatureProperties
xades:SigningTime 2025-01-14T14:07:02</xades:SigningTime>
xades:SigningCertificate
xades:Cert
xades:CertDigest
<ds:DigestMethod Algorithm=“XML Encryption Syntax and Processing ”/>
ds:DigestValue NmQ2MDcyMWM5MTBhYTRjNTQyYmYzMmNkYzA5YzlkYzA4Yzc0YzU1OTQyNTE3NGVkN2Y5YWVkNmI2NTk5ZDJiMA==</ds:DigestValue>
</xades:CertDigest>
xades:IssuerSerial
ds:X509IssuerName CN=PEZEINVOICESCA2-CA, DC=extgazt, DC=gov, DC=local</ds:X509IssuerName>
ds:X509SerialNumber 423714282819760838765068159912945770425245010</ds:X509SerialNumber>
</xades:IssuerSerial>
</xades:Cert>
</xades:SigningCertificate>
</xades:SignedSignatureProperties>
</xades:SignedProperties>
</xades:QualifyingProperties>
</ds:Object>
</ds:Signature>
</sac:SignatureInformation>
</sig:UBLDocumentSignatures>
</ext:ExtensionContent>
</ext:UBLExtension>
</ext:UBLExtensions>
<cbc:ProfileID>reporting:1.0</cbc:ProfileID>
<cbc:ID>SI-RUH11-2500002</cbc:ID>
<cbc:UUID>DCBCE8AD-2694-4DD1-81E5-ACFBE3817262</cbc:UUID>
<cbc:IssueDate>2025-01-14</cbc:IssueDate>
<cbc:IssueTime>14:08:19</cbc:IssueTime>
<cbc:InvoiceTypeCode name="0100000">388</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode>
<cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode>
<cac:AdditionalDocumentReference>
<cbc:ID>ICV</cbc:ID>
<cbc:UUID>2</cbc:UUID>
</cac:AdditionalDocumentReference>
<cac:AdditionalDocumentReference>
<cbc:ID>PIH</cbc:ID>
<cac:Attachment>
<cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">Nkt58ySEpdcixnQIViJS2ngVYL80DjgadiIgFOqVwJ8=</cbc:EmbeddedDocumentBinaryObject>
</cac:Attachment>
</cac:AdditionalDocumentReference>
<cac:AdditionalDocumentReference>
<cbc:ID>QR</cbc:ID>
<cac:Attachment>
<cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">AT9NYWhpbGwgVHJhZGluZyBDb3JwLiB8INmF2KTYs9iz2Kkg2KfZhNmF2KfZh9mEINin2YTYqtis2KfYsdmK2KkCDzMwMDA0Mzk4MjMwMDAwMwMTMjAyNS0wMS0xNFQxNDowODoxOQQHNDAyNS4wMAUGNTI1LjAwBixIcWhNWXh2a1Q0MHVzRG1WUEFUR0Q1QXhEaW52ODl6V29RS0RIKzFQWUlzPQdgTUVZQ0lRQ2hYMmVvaUhJUURPMnQvTWV4TjVCTk1VTCttRCs1a1ZMOWc4QXAwNG1BUmdJaEFOYVhiRWEyTFpCT0FwRFViNTlIamdJME5Ic1Q2dXBQZWxLM3c0bmJyUmpNCFgwVjAQBgcqhkjOPQIBBgUrgQQACgNCAAR6cpCWcWiYGhpY8ju/3ndHhRWH2Ax604S75IpCp1JmLA6JTKDx6jrYGIlThOliyU/Hlka3QknqB704eUwjfHrw</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”>1010082560</cbc:ID>
</cac:PartyIdentification>
cac:PostalAddress
cbc:StreetName Salahuddin Al Ayyubi | صلاح الدين الأيوبي</cbc:StreetName>
cbc:BuildingNumber 6314</cbc:BuildingNumber>
cbc:PlotIdentification 4026</cbc:PlotIdentification>
cbc:CitySubdivisionName Al Malaz Dist. | حي الملز</cbc:CitySubdivisionName>
cbc:CityName Riyadh | الرياض</cbc:CityName>
cbc:PostalZone 12836</cbc:PostalZone>
cbc:CountrySubentity Riyadh Province | منطقة الرياض</cbc:CountrySubentity>
cac:Country
cbc:IdentificationCode SA</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
cac:PartyTaxScheme
cbc:CompanyID 300043982300003</cbc:CompanyID>
cac:TaxScheme
cbc:ID VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
cac:PartyLegalEntity
cbc:RegistrationName Mahill Trading Corp. | مؤسسة الماهل التجارية</cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingSupplierParty>
cac:AccountingCustomerParty
cac:Party
cac:PartyIdentification
<cbc:ID schemeID=“CRN”>1010011705</cbc:ID>
</cac:PartyIdentification>
cac:PostalAddress
cbc:StreetName Abdullah Ibn Huzeran | عبدالله بن حجران</cbc:StreetName>
cbc:BuildingNumber 6454</cbc:BuildingNumber>
cbc:PlotIdentification 2593</cbc:PlotIdentification>
cbc:CitySubdivisionName Al Sinaiyah Dist. | حي الصناعية</cbc:CitySubdivisionName>
cbc:CityName RIYADH | الرياض</cbc:CityName>
cbc:PostalZone 12843</cbc:PostalZone>
cbc:CountrySubentity Al Riyadh | الرياض</cbc:CountrySubentity>
cac:Country
cbc:IdentificationCode SA</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
cac:PartyTaxScheme
cbc:CompanyID 300054044800003</cbc:CompanyID>
cac:TaxScheme
cbc:ID VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
cac:PartyLegalEntity
cbc:RegistrationName Arabian Plastic Industries Co. Ltd. (APLACO) | الشركة العربيه لصناعة البلاستيك المحدوده ابلكو</cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingCustomerParty>
cac:Delivery
cbc:ActualDeliveryDate 2025-01-14</cbc:ActualDeliveryDate>
</cac:Delivery>
cac:PaymentMeans
cbc:PaymentMeansCode 30</cbc:PaymentMeansCode>
</cac:PaymentMeans>
cac:TaxTotal
<cbc:TaxAmount currencyID=“SAR”>525.00</cbc:TaxAmount>
cac:TaxSubtotal
<cbc:TaxableAmount currencyID=“SAR”>3500.00</cbc:TaxableAmount>
<cbc:TaxAmount currencyID=“SAR”>525.00</cbc:TaxAmount>
cac:TaxCategory
cbc:ID S</cbc:ID>
cbc:Percent 15.00</cbc:Percent>
cac:TaxScheme
cbc:ID VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
cac:TaxTotal
<cbc:TaxAmount currencyID=“SAR”>525.00</cbc:TaxAmount>
</cac:TaxTotal>
cac:LegalMonetaryTotal
<cbc:LineExtensionAmount currencyID=“SAR”>3500.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID=“SAR”>3500.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID=“SAR”>4025.00</cbc:TaxInclusiveAmount>
<cbc:AllowanceTotalAmount currencyID=“SAR”>0.00</cbc:AllowanceTotalAmount>
<cbc:PayableAmount currencyID=“SAR”>4025.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
cac:InvoiceLine
cbc:ID 1</cbc:ID>
<cbc:InvoicedQuantity unitCode=“Each”>1000.00</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID=“SAR”>3500.00</cbc:LineExtensionAmount>
cac:TaxTotal
<cbc:TaxAmount currencyID=“SAR”>525.00</cbc:TaxAmount>
<cbc:RoundingAmount currencyID=“SAR”>4025.00</cbc:RoundingAmount>
</cac:TaxTotal>
cac:Item
cbc:Name NIBCO PVC Sch-80 Female Adapter 1/2" | NIBCO 1/2" جلبة بسنه داخلي بارد</cbc:Name>
cac:ClassifiedTaxCategory
cbc:ID S</cbc:ID>
cbc:Percent 15.00</cbc:Percent>
cac:TaxScheme
cbc:ID VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
cac:Price
<cbc:PriceAmount currencyID=“SAR”>3.5000</cbc:PriceAmount>
<cbc:BaseQuantity unitCode=“Each”>1</cbc:BaseQuantity>
cac:AllowanceCharge
cbc:ChargeIndicator false</cbc:ChargeIndicator>
cbc:AllowanceChargeReason Discount</cbc:AllowanceChargeReason>
<cbc:Amount currencyID=“SAR”>0.0000</cbc:Amount>
<cbc:BaseAmount currencyID=“SAR”>3.5000</cbc:BaseAmount>
cac:TaxCategory
cbc:ID S</cbc:ID>
cbc:Percent 15.00</cbc:Percent>
cac:TaxScheme
cbc:ID VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:AllowanceCharge>
</cac:Price>
</cac:InvoiceLine>
@advancesystem @halrashidy @Ankit_Tiwari
The same issue is happening to me as well.
I have been using ERP software integrated with ZATCA for over a year, and everything has been running smoothly, with no warnings or issues in both the Simplified and Standard Invoice API responses.
Recently, however, I’ve encountered a warning in the Simplified Invoice API (Simulation Reporting) . Here’s the context:
The integration was working perfectly before.
I can confirm there have been no changes to the source code, private key, PCSID, binary security token, or API connection credentials.
I am using the PCSID (not the CCSID) to sign invoices, and the XML is being correctly passed to the API.
Interestingly, this issue only occurs with the Simulation Reporting API . The core Reporting API functions as expected, with no warnings.
Could you please help clarify why this warning might appear in the Simulation API, especially when everything is fine with the core Reporting API?
{
“type”: “WARNING”,
“code”: “invalid-signing-certificate”,
“category”: “CERTIFICATE_ERRORS”,
“message”: “X509Certificate (CCSID / PCSID) used for signing is not valid certificate (CCSID / PCSID) for this VAT Registration Number.”,
“status”: “WARNING”
}
Your insights or guidance on this would be highly appreciated.
Thank you!
1 Like
i face the same issue from two days before it was getting accepted
i m doing first time integration i am facing same issue but having more warning can any body see and help me please bcz you already done integrations
[2025-01-08 09:47:52] local.INFO: {“validationResults”:{“infoMessages”:[{“type”:“INFO”,“code”:“XSD_ZATCA_VALID”,“category”:“XSD validation”,“message”:“Complied with UBL 2.1 standards in line with ZATCA specifications”,“status”:“PASS”}],“warningMessages”:[{“type”:“WARNING”,“code”:“certificate-issuer-name”,“category”:“CERTIFICATE_ERRORS”,“message”:“X509Certificate (CCSID / PCSID) used for signing is not valid certificate (CCSID / PCSID) for this VAT Registration Number.”,“status”:“WARNING”},{“type”:“WARNING”,“code”:“invalid-signing-certificate”,“category”:“CERTIFICATE_ERRORS”,“message”:“X509Certificate (CCSID / PCSID) used for signing is not valid certificate (CCSID / PCSID) for this VAT Registration Number.”,“status”:“WARNING”}],“errorMessages”:[{“type”:“ERROR”,“code”:“certificate-permissions”,“category”:“CERTIFICATE_ERRORS”,“message”:“User only allowed to use the vat number that exists in the authentication certificate”,“status”:“ERROR”}],“status”:“ERROR”},“reportingStatus”:“NOT_REPORTED”}
Dears @advancesystem , @farhan06 , @rizwan100mu , @arjun_tech24 ,
Regarding this issue, kindly note that the existing issue the team is investigating it, we appreciate the patience and apologize for any inconveniences. We will keep you updated once it is solved ASAP.
Thanks & regards,
1 Like
Dear @halrashidy ;
I would like to mention to a point, may it will help in the investigation process of the existing issue.
This issue has shown up immediately, after the fixing of the issue of “the Compliance and production/csids APIs”
We’ve already mentioned the current issue also in that thread.
Please have a look at This Thread .
1 Like
The same thing happened to me, as the warning issue that appears after sending the simplified invoice occurred immediately after fixing the certificate generation problem.
1 Like
Hello guys, just FYI, we had similar issue 1 year ago and managed to fix it by “trying” different options.
Hello everyone, we spent few days trying to find the issue and FINALLY we were able to pinpoint the problem and get the fix done.
In our case (please note that there maybe more issues on your side) we had the incorrect order inside <ds:X509IssuerName> tag.
Because we generated this list ourselves, we were not thinking that this field is somehow important (especially at the time of implementation there were no check at all). The issue start appearing after some release of SDK and changes from Z…
Please note that we are generating everything ourselves, CSR, XML, signing… we are not using SDK at all.
If you have issues using SDK, then there should be definitely another root cause.
The easiest way to check everything, compare your output with output from SDK and also (what we did), examine the SDK sources to check if you have exactly the same steps while generating.
Sounds weird, but this what we had to do when we had similar warning
Best regards,
Sergei
@halrashidy @Ankit_Tiwari @sergei.shishov
I have the following issuer name in PCSID
in simulation : CN=PEZEINVOICESCA2-CA, DC=extgazt, DC=gov, DC=local
in core api: CN = PRZEINVOICESCA3-CA,DC = extgazt,DC = gov,DC = local
does this have any problem?
Simplified Invoice Report with warning by Simulation Reporting API
Warnings type=“WARNING” code=“invalid-signing-certificate” category=“CERTIFICATE_ERRORS” message=“X509Certificate (CCSID / PCSID) used for signing is not valid certificate (CCSID / PCSID) for this VAT Registration Number.” status=“WARNING”
Hello ZATCA Team,
Is there any update on this issue?
eCloud
January 25, 2025, 11:49am
15
@advancesystem
In what endpoint you get this warning?
Have you make sure, use CCSID Certificate for Compliance Check and PCSID Certificate for Clearance and Reporting.
Last one year I used my same code for make Simulation and production and its was successfully working with my all clients. Now I am getting this error into Simulation portal.
eCloud
January 25, 2025, 12:57pm
17
I once got the same error when I first tried the simulation environment about six months ago. And the error occurred because I was using a PCSID Certificate to access the Complian Check Endpont.
But in my case all the process and code are same but getting the error.
@advancesystem
In the simulation API, it is now solved, and it does not show a warning. Can you check that?
Yes, its solved and not getting any warning now.
Thank you.
1 Like
Sarika
January 30, 2025, 1:55pm
21
We are getting {“validationResults”:{“infoMessages”:[{“type”:“INFO”,“code”:“XSD_ZATCA_VALID”,“category”:“XSD validation”,“message”:“Complied with UBL 2.1 standards in line with ZATCA specifications”,“status”:“PASS”}],“warningMessages”:[{“type”:“WARNING”,“code”:“certificate-issuer-name”,“category”:“CERTIFICATE_ERRORS”,“message”:“X509Certificate (CCSID / PCSID) used for signing is not valid certificate (CCSID / PCSID) for this VAT Registration Number.”,“status”:“WARNING”}],“errorMessages”: ,“status”:“WARNING”},“reportingStatus”:“REPORTED”} both in simulation and production environment. Can someone help
<?xml version="1.0" encoding="UTF-8"?>
<ext:UBLExtensions>
<ext:UBLExtension>
<ext:ExtensionURI>urn:oasis:names:specification:ubl:dsig:enveloped:xades</ext:ExtensionURI>
<ext:ExtensionContent>
<sig:UBLDocumentSignatures xmlns:sac="urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2" xmlns:sbc="urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2" xmlns:sig="urn:oasis:names:specification:ubl:schema:xsd:CommonSignatureComponents-2">
<sac:SignatureInformation>
<cbc:ID>urn:oasis:names:specification:ubl:signature:1</cbc:ID>
<sbc:ReferencedSignatureID>urn:oasis:names:specification:ubl:signature:Invoice</sbc:ReferencedSignatureID>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="signature">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2006/12/xml-c14n11"/>
<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha256"/>
<ds:Reference Id="invoiceSignedData" URI="">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
<ds:XPath>not(//ancestor-or-self::ext:UBLExtensions)</ds:XPath>
</ds:Transform>
<ds:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
<ds:XPath>not(//ancestor-or-self::cac:Signature)</ds:XPath>
</ds:Transform>
<ds:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
<ds:XPath>not(//ancestor-or-self::cac:AdditionalDocumentReference[cbc:ID='QR'])</ds:XPath>
</ds:Transform>
<ds:Transform Algorithm="http://www.w3.org/2006/12/xml-c14n11"/>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
<ds:DigestValue>IJlk5+w3RQYnP5REasvt6os9FpPo+YlyZN+i24xlrCM=</ds:DigestValue>
</ds:Reference>
<ds:Reference Type="http://www.w3.org/2000/09/xmldsig#SignatureProperties" URI="#xadesSignedProperties">
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
<ds:DigestValue>ZTQ3MjJmMjZlMzczMzM1OTljMTFkNjQ5ZmNmYTlkN2EwZmJkZDVkODVhOWI3MzczYzcwMzhjZmRkMTM4MTJmNg==</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>MEUCIQCq1tiY8S4xKUhVXvolQad9FIX7nx2bxGHuQ1m+iztiRwIgFxMWI61SpDBo8lUo2hjTrNMvQmlS6AbFxz88J5IBNbQ=</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>MIIFHzCCBMSgAwIBAgITFwAAvXPsITvLr69weAABAAC9czAKBggqhkjOPQQDAjBiMRUwEwYKCZImiZPyLGQBGRYFbG9jYWwxEzARBgoJkiaJk/IsZAEZFgNnb3YxFzAVBgoJkiaJk/IsZAEZFgdleHRnYXp0MRswGQYDVQQDExJQUlpFSU5WT0lDRVNDQTMtQ0EwHhcNMjUwMTI5MTc1NzM5WhcNMzAwMTI4MTc1NzM5WjBWMQswCQYDVQQGEwJTQTEeMBwGA1UEChMVU0FNQVIgVkVOVFVSRVMgQ08uTFREMRMwEQYDVQQLEwoxMDEwNDg0NTI2MRIwEAYDVQQDEwlGSVNIIFRJTUUwVjAQBgcqhkjOPQIBBgUrgQQACgNCAAQRuYhVf/1AelN1UNOqyqjm1Ztem00lvyldlwqvsuV8gfMryqfy2eSEDUXWfI/xQdjB6IKhamQvgToVnUSff0yGo4IDZjCCA2IwgdAGA1UdEQSByDCBxaSBwjCBvzEOMAwGA1UEDwwFU3RvcmUxHDAaBgNVB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AwIwJwYJKwYBBAGCNxUKBBowGDAKBggrBgEFBQcDAzAKBggrBgEFBQcDAjAKBggqhkjOPQQDAgNJADBGAiEAyq/gP9wAFXraV8o3xRYnRaakuAirpKxHKxaLBpanrlcCIQCOLORg69TsiT1SR6ErEUnOmDMf6wr5/srfCzErNmSTCA==</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
<ds:Object>
<xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="signature">
<xades:SignedProperties Id="xadesSignedProperties">
<xades:SignedSignatureProperties>
<xades:SigningTime>2025-01-30T11:31:30</xades:SigningTime>
<xades:SigningCertificate>
<xades:Cert>
<xades:CertDigest>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
<ds:DigestValue>YWVmOTgxNjYwNTExODUwNjM5MGM0MjU1M2MwOGRmMDY4MGMzYmFhZWZiNTkwNmU5ZmE3NDU1NDBhZjA1ZTY3Yw==</ds:DigestValue>
</xades:CertDigest>
<xades:IssuerSerial>
<ds:X509IssuerName>CN=PRZEINVOICESCA3-CA,DC=extgazt,DC=gov,DC=local</ds:X509IssuerName>
<ds:X509SerialNumber>512917391392198956037608612574717321796435315</ds:X509SerialNumber>
</xades:IssuerSerial>
</xades:Cert>
</xades:SigningCertificate>
</xades:SignedSignatureProperties>
</xades:SignedProperties>
</xades:QualifyingProperties>
</ds:Object>
</ds:Signature>
</sac:SignatureInformation>
</sig:UBLDocumentSignatures>
</ext:ExtensionContent>
</ext:UBLExtension>
</ext:UBLExtensions>
<cbc:ProfileID>reporting:1.0</cbc:ProfileID>
<cbc:ID>MSI-177404</cbc:ID>
<cbc:UUID>d77f5e7d-a139-4b99-8256-1750ce292ea1</cbc:UUID>
<cbc:IssueDate>2025-01-29</cbc:IssueDate>
<cbc:IssueTime>13:46:35</cbc:IssueTime>
<cbc:InvoiceTypeCode name="0210000">388</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode>
<cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode>
<cac:AdditionalDocumentReference>
<cbc:ID>ICV</cbc:ID>
<cbc:UUID>300077426</cbc:UUID>
</cac:AdditionalDocumentReference>
<cac:AdditionalDocumentReference>
<cbc:ID>PIH</cbc:ID>
<cac:Attachment>
<cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">NWZlY2ViNjZmZmM4NmYzOGQ5NTI3ODZjNmQ2OTZjNzljMmRiYzIzOWRkNGU5MWI0NjcyOWQ3M2EyN2ZiNTdlOQ==</cbc:EmbeddedDocumentBinaryObject>
</cac:Attachment>
</cac:AdditionalDocumentReference>
<cac:AdditionalDocumentReference>
<cbc:ID>QR</cbc:ID>
<cac:Attachment>
<cbc:EmbeddedDocumentBinaryObject mimeCode="text/plain">ARVTQU1BUiBWRU5UVVJFUyBDTyBMVEQCDzMxMTAxMzY4NjkwMDAwMwMTMjAyNS0wMS0yOVQxMzo0NjozNQQGMTcwLjk0BQUyMi4yOQYsSUpsazUrdzNSUVluUDVSRWFzdnQ2b3M5RnBQbytZbHlaTitpMjR4bHJDTT0HYE1FVUNJUUNxMXRpWThTNHhLVWhWWHZvbFFhZDlGSVg3bngyYnhHSHVRMW0raXp0aVJ3SWdGeE1XSTYxU3BEQm84bFVvMmhqVHJOTXZRbWxTNkFiRnh6ODhKNUlCTmJRPQhYMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEEbmIVX/9QHpTdVDTqsqo5tWbXptNJb8pXZcKr7LlfIHzK8qn8tnkhA1F1nyP8UHYweiCoWpkL4E6FZ1En39MhglIMEYCIQDKr+A/3AAVetpXyjfFFidFpqS4CKukrEcrFosGlqeuVwIhAI4s5GDr1OyJPVJHoSsRSc6YMx/rCvn+yt8LMSs2ZJMI</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">1010484526</cbc:ID>
</cac:PartyIdentification>
<cac:PostalAddress>
<cbc:StreetName>7579 Ibn Al Mallah </cbc:StreetName>
<cbc:BuildingNumber>3454</cbc:BuildingNumber>
<cbc:PlotIdentification>1234</cbc:PlotIdentification>
<cbc:CitySubdivisionName>Riyadh Region</cbc:CitySubdivisionName>
<cbc:CityName>Riyadh</cbc:CityName>
<cbc:PostalZone>12474</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>SA</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>311013686900003</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>SAMAR VENTURES CO LTD</cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty> </cac:AccountingCustomerParty>
<cac:Delivery>
<cbc:ActualDeliveryDate>2025-01-29</cbc:ActualDeliveryDate>
<cbc:LatestDeliveryDate>2025-01-29</cbc:LatestDeliveryDate>
</cac:Delivery>
<cac:PaymentMeans>
<cbc:PaymentMeansCode>10</cbc:PaymentMeansCode>
</cac:PaymentMeans>
<cac:AllowanceCharge>
<cbc:ID>1</cbc:ID>
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
<cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
<cbc:Amount currencyID="SAR">0.00</cbc:Amount>
<cac:TaxCategory>
<cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5305">S</cbc:ID>
<cbc:Percent>15.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5153">VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:AllowanceCharge>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="SAR">22.29</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="SAR">148.65</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="SAR">22.29</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5305">S</cbc:ID>
<cbc:Percent>15.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID schemeAgencyID="6" schemeID="UN/ECE 5153">VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="SAR">22.29</cbc:TaxAmount>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="SAR">148.65</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="SAR">148.65</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="SAR">170.94</cbc:TaxInclusiveAmount>
<cbc:AllowanceTotalAmount currencyID="SAR">0.00</cbc:AllowanceTotalAmount>
<cbc:PrepaidAmount currencyID="SAR">0.00</cbc:PrepaidAmount>
<cbc:PayableAmount currencyID="SAR">170.94</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="PCE">2.22</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="SAR">125.48</cbc:LineExtensionAmount>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="SAR">18.82</cbc:TaxAmount>
<cbc:RoundingAmount currencyID="SAR">144.30</cbc:RoundingAmount>
</cac:TaxTotal>
<cac:Item>
<cbc:Name>SALMOON MEDIM</cbc:Name>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>15.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="SAR">56.52</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>2</cbc:ID>
<cbc:InvoicedQuantity unitCode="PCE">2.22</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="SAR">23.17</cbc:LineExtensionAmount>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="SAR">3.47</cbc:TaxAmount>
<cbc:RoundingAmount currencyID="SAR">26.64</cbc:RoundingAmount>
</cac:TaxTotal>
<cac:Item>
<cbc:Name>THANNOOR</cbc:Name>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>15.00</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="SAR">10.43</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>