[http_code] => 401
link=https://gw-fatoora.zatca.gov.sa/e-invoicing/developer-portal/invoices/reporting/single
Array
(
[requestID] => 1234567890123
[dispositionMessage] => ISSUED
[binarySecurityToken] => TUlJQ0VEQ0NBYmFnQXdJQkFnSUdBWktLNkhuSk1Bb0dDQ3FHU000OUJBTUNNQlV4RXpBUkJnTlZCQU1NQ21WSmJuWnZhV05wYm1jd0hoY05NalF4TURFME1USXdNakU1V2hjTk1qa3hNREV6TWpFd01EQXdXakJJTVEwd0N3WURWUVFEREFSS1QwOUVNUTB3Q3dZRFZRUUtEQVJLVDA5RU1Sc3dHUVlEVlFRTERCSkdhVzVoYm1ObElFUmxjR0Z5ZEcxbGJuUXhDekFKQmdOVkJBWVRBbE5CTUZZd0VBWUhLb1pJemowQ0FRWUZLNEVFQUFvRFFnQUVhN2QrS1phOXRadHRJMS85QkozNkFpb1VzZSs3STl4THhwaEEyejBZdGVZZ1RScGZ4ck1LRWhMZW9XL1dQWHREeTlhRVFEeWkwZm0rV3lOSHU0MHJ4S09Cd1RDQnZqQU1CZ05WSFJNQkFmOEVBakFBTUlHdEJnTlZIUkVFZ2FVd2dhS2tnWjh3Z1p3eFBqQThCZ05WQkFRTU5URXRiMjF1YVh3eUxURXVPWHd6TFRNdE1USXpaVFExTmpjdFpUZzVZaTB4TW1RekxXRTBOVFl0TkRJMk5qRTBNVGMwTURBd01SOHdIUVlLQ1pJbWlaUHlMR1FCQVF3UE16azVPVGs1T1RrNU9UQXdNREF6TVEwd0N3WURWUVFNREFRd01UQXdNUkV3RHdZRFZRUWFEQWhSVlU1R1ZVUkJTREVYTUJVR0ExVUVEd3dPVTFsVFZFVk5JRUZEUTA5VlRsUXdDZ1lJS29aSXpqMEVBd0lEU0FBd1JRSWhBTkdsWTB5NTk1b0V6WWF4UFd5Rndid0dhWStveTh2VEZ6S3dUSWNvQ1JQd0FpQndmaVNVc2p3MnJMdGpPTng1YStZc0grUnZJb3k4TlVaL0NTMWVpUXozTmc9PQ==
[secret] => zyfx+jiDhx/3vEdICYvpaJT/UOMZbiQ3Wt51c38CmEM=
[errors] =>
)
invoice xml
ext:ExtensionURIurn:oasis:names:specification:ubl:dsig:enveloped:xades</ext:ExtensionURI>
<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”>
cbc:IDurn:oasis:names:specification:ubl:signature:1</cbc:ID>
sbc:ReferencedSignatureIDurn:oasis:names:specification:ubl:signature:Invoice</sbc:ReferencedSignatureID>
<ds:Signature xmlns:ds=“XML-Signature Syntax and Processing” Id=“signature”>
<ds:CanonicalizationMethod Algorithm=“Canonical XML 1.1”/>
<ds:SignatureMethod Algorithm=“xmldsig-more namespace”/>
<ds:Reference Id=“invoiceSignedData” URI=“”>
<ds:Transform Algorithm=“XML Path Language (XPath)”>
ds:XPathnot(//ancestor-or-self::ext:UBLExtensions)</ds:XPath>
</ds:Transform>
<ds:Transform Algorithm=“XML Path Language (XPath)”>
ds:XPathnot(//ancestor-or-self::cac:Signature)</ds:XPath>
</ds:Transform>
<ds:Transform Algorithm=“XML Path Language (XPath)”>
ds:XPathnot(//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:DigestValue9D6nAovRcmKb5BMdjAHZ/OPKiNoflTZ1DtGxlDayOw8=</ds:DigestValue>
</ds:Reference>
<ds:Reference Type=“XML-Signature Syntax and Processing” URI=“#xadesSignedProperties”>
<ds:DigestMethod Algorithm=“XML Encryption Syntax and Processing”/>
ds:DigestValueOThkNmM5OWE0Mjc5MjQ3NjlhMzA5YmNjMzBjOWE4OWQ1YTRhZDA3NDA2MjlhZWNjZDc5NzVmMTMxZGYwZjIxNA==</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
ds:SignatureValueMEUCIG0i1bAaYZlrbqixpaGjF25Ge42IGcq5JG66lp37zByRAiEAu5t4TeqQEmFAheb4Fq3+jYfNmaqOLh5pyHMDPprIwI8=</ds:SignatureValue>
ds:X509CertificateMIICEDCCAbagAwIBAgIGAZKK6HnJMAoGCCqGSM49BAMCMBUxEzARBgNVBAMMCmVJbnZvaWNpbmcwHhcNMjQxMDE0MTIwMjE5WhcNMjkxMDEzMjEwMDAwWjBIMQ0wCwYDVQQDDARKT09EMQ0wCwYDVQQKDARKT09EMRswGQYDVQQLDBJGaW5hbmNlIERlcGFydG1lbnQxCzAJBgNVBAYTAlNBMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEa7d+KZa9tZttI1/9BJ36AioUse+7I9xLxphA2z0YteYgTRpfxrMKEhLeoW/WPXtDy9aEQDyi0fm+WyNHu40rxKOBwTCBvjAMBgNVHRMBAf8EAjAAMIGtBgNVHREEgaUwgaKkgZ8wgZwxPjA8BgNVBAQMNTEtb21uaXwyLTEuOXwzLTMtMTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjE0MTc0MDAwMR8wHQYKCZImiZPyLGQBAQwPMzk5OTk5OTk5OTAwMDAzMQ0wCwYDVQQMDAQwMTAwMREwDwYDVQQaDAhRVU5GVURBSDEXMBUGA1UEDwwOU1lTVEVNIEFDQ09VTlQwCgYIKoZIzj0EAwIDSAAwRQIhANGlY0y595oEzYaxPWyFwbwGaY+oy8vTFzKwTIcoCRPwAiBwfiSUsjw2rLtjONx5a+YsH+RvIoy8NUZ/CS1eiQz3Ng==</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
<xades:QualifyingProperties xmlns:xades=“Assigned ETSI XML URIs” Target=“signature”>
<xades:SignedProperties Id=“xadesSignedProperties”>
xades:SignedSignatureProperties
xades:SigningTime2024-10-14T14:10:23</xades:SigningTime>
<ds:DigestMethod Algorithm=“XML Encryption Syntax and Processing”/>
ds:DigestValueYTlmMTllMTRlNzFlOTI4YWY5ZDdjOTY3Yjc3MzFmYzFmMzAwNTU1NGRkZjZlNmQ0MjAxZDM3YzkwOTJiZDliMQ==</ds:DigestValue>
</xades:CertDigest>
ds:X509IssuerNameCN=eInvoicing</ds:X509IssuerName>
ds:X509SerialNumber1728907344329</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:ProfileIDreporting:1.0</cbc:ProfileID>
cbc:ID118</cbc:ID>
cbc:UUID1-omni|2-1.9|3-123e4567-e89b-12d3-a456-426614174000</cbc:UUID>
cbc:IssueDate2024-10-04</cbc:IssueDate>
cbc:IssueTime19:51:25</cbc:IssueTime>
<cbc:InvoiceTypeCode name=“0200000”>388</cbc:InvoiceTypeCode>
cbc:DocumentCurrencyCodeSAR</cbc:DocumentCurrencyCode>
cbc:TaxCurrencyCodeSAR</cbc:TaxCurrencyCode>
cac:AdditionalDocumentReference
cbc:IDICV</cbc:ID>
cbc:UUID399999999900003</cbc:UUID>
</cac:AdditionalDocumentReference>
cac:AdditionalDocumentReference
cbc:IDPIH</cbc:ID>
<cbc:EmbeddedDocumentBinaryObject mimeCode=“text/plain”>NWZlY2ViNjZmZmM4NmYzOGQ5NTI3ODZjNmQ2OTZjNzljMmRiYzIzOWRkNGU5MWI0NjcyOWQ3M2EyN2ZiNTdlOQ==</cbc:EmbeddedDocumentBinaryObject>
</cac:Attachment>
</cac:AdditionalDocumentReference>
cac:AdditionalDocumentReference
cbc:IDQR</cbc:ID>
<cbc:EmbeddedDocumentBinaryObject mimeCode=“text/plain”>AQRKT09EAg8zOTk5OTk5OTk5MDAwMDMDFDIwMjQtMTAtMDRUMTk6NTE6MjVaBAUyNDYuMQUEMzIuMQYsOUQ2bkFvdlJjbUtiNUJNZGpBSFovT1BLaU5vZmxUWjFEdEd4bERheU93OD0HYE1FVUNJRzBpMWJBYVlabHJicWl4cGFHakYyNUdlNDJJR2NxNUpHNjZscDM3ekJ5UkFpRUF1NXQ0VGVxUUVtRkFoZWI0RnEzK2pZZk5tYXFPTGg1cHlITURQcHJJd0k4PQhYMFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEa7d+KZa9tZttI1/9BJ36AioUse+7I9xLxphA2z0YteYgTRpfxrMKEhLeoW/WPXtDy9aEQDyi0fm+WyNHu40rxAlHMEUCIQDRpWNMufeaBM2GsT1shcG8BmmPqMvL0xcysEyHKAkT8AIgcH4klLI8Nqy7YzjceWvmLB/kbyKMvDVGfwktXokM9zY=</cbc:EmbeddedDocumentBinaryObject>
</cac:Attachment>
</cac:AdditionalDocumentReference>
cbc:IDurn:oasis:names:specification:ubl:signature:Invoice</cbc:ID>
cbc:SignatureMethodurn:oasis:names:specification:ubl:dsig:enveloped:xades</cbc:SignatureMethod>
</cac:Signature>
<cbc:ID schemeID=“CRN”>1010546173</cbc:ID>
</cac:PartyIdentification>
cbc:StreetNameKHALIDIAH</cbc:StreetName>
cbc:BuildingNumber1234</cbc:BuildingNumber>
cbc:PlotIdentification6153</cbc:PlotIdentification>
cbc:CitySubdivisionNameMAKKAH</cbc:CitySubdivisionName>
cbc:CityNameQUNFUDAH</cbc:CityName>
cbc:PostalZone12345</cbc:PostalZone>
cbc:IdentificationCodeSA</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
cbc:CompanyID399999999900003</cbc:CompanyID>
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
cbc:RegistrationNameJOOD</cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingSupplierParty>
<cbc:ID schemeID=“NAT”>1</cbc:ID>
</cac:PartyIdentification>
cbc:BuildingNumber1234</cbc:BuildingNumber>
cbc:PostalZone12222</cbc:PostalZone>
cbc:IdentificationCodeSA</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
</cac:TaxScheme>
</cac:PartyTaxScheme>
cbc:RegistrationNameعمر</cbc:RegistrationName>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingCustomerParty>
cbc:ChargeIndicatorfalse</cbc:ChargeIndicator>
cbc:AllowanceChargeReasoninvoice discount</cbc:AllowanceChargeReason>
<cbc:Amount currencyID=“SAR”>0</cbc:Amount>
cbc:IDS</cbc:ID>
cbc:Percent15</cbc:Percent>
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:AllowanceCharge>
<cbc:TaxAmount currencyID=“SAR”>32.1</cbc:TaxAmount>
</cac:TaxTotal>
<cbc:TaxAmount currencyID=“SAR”>32.1</cbc:TaxAmount>
<cbc:TaxableAmount currencyID=“SAR”>214</cbc:TaxableAmount>
<cbc:TaxAmount currencyID=“SAR”>32.1</cbc:TaxAmount>
cbc:IDS</cbc:ID>
cbc:Percent15</cbc:Percent>
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cbc:LineExtensionAmount currencyID=“SAR”>214</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID=“SAR”>214</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID=“SAR”>246.1</cbc:TaxInclusiveAmount>
<cbc:AllowanceTotalAmount currencyID=“SAR”>0</cbc:AllowanceTotalAmount>
<cbc:PrepaidAmount currencyID=“SAR”>0</cbc:PrepaidAmount>
<cbc:PayableAmount currencyID=“SAR”>246.1</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
cbc:ID22</cbc:ID>
<cbc:InvoicedQuantity unitCode=“”>1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID=“SAR”>100</cbc:LineExtensionAmount>
<cbc:TaxAmount currencyID=“SAR”>15</cbc:TaxAmount>
<cbc:RoundingAmount currencyID=“SAR”>115</cbc:RoundingAmount>
</cac:TaxTotal>
cbc:Nametest</cbc:Name>
cbc:IDS</cbc:ID>
cbc:Percent15</cbc:Percent>
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cbc:PriceAmount currencyID=“SAR”>100</cbc:PriceAmount>
cbc:ChargeIndicatorfalse</cbc:ChargeIndicator>
cbc:AllowanceChargeReasondiscount</cbc:AllowanceChargeReason>
<cbc:Amount currencyID=“SAR”>0</cbc:Amount>
</cac:AllowanceCharge>
</cac:Price>
</cac:InvoiceLine>
cbc:ID23</cbc:ID>
<cbc:InvoicedQuantity unitCode=“قطعة”>1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID=“SAR”>14</cbc:LineExtensionAmount>
<cbc:TaxAmount currencyID=“SAR”>2.1</cbc:TaxAmount>
<cbc:RoundingAmount currencyID=“SAR”>16.1</cbc:RoundingAmount>
</cac:TaxTotal>
cbc:Namekkk</cbc:Name>
cbc:IDS</cbc:ID>
cbc:Percent15</cbc:Percent>
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cbc:PriceAmount currencyID=“SAR”>14</cbc:PriceAmount>
cbc:ChargeIndicatorfalse</cbc:ChargeIndicator>
cbc:AllowanceChargeReasondiscount</cbc:AllowanceChargeReason>
<cbc:Amount currencyID=“SAR”>0</cbc:Amount>
</cac:AllowanceCharge>
</cac:Price>
</cac:InvoiceLine>
cbc:ID24</cbc:ID>
<cbc:InvoicedQuantity unitCode=“قطعة”>1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID=“SAR”>100</cbc:LineExtensionAmount>
<cbc:TaxAmount currencyID=“SAR”>15</cbc:TaxAmount>
<cbc:RoundingAmount currencyID=“SAR”>115</cbc:RoundingAmount>
</cac:TaxTotal>
cbc:Namejjjj</cbc:Name>
cbc:IDS</cbc:ID>
cbc:Percent15</cbc:Percent>
cbc:IDVAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cbc:PriceAmount currencyID=“SAR”>100</cbc:PriceAmount>
cbc:ChargeIndicatorfalse</cbc:ChargeIndicator>
cbc:AllowanceChargeReasondiscount</cbc:AllowanceChargeReason>
<cbc:Amount currencyID=“SAR”>0</cbc:Amount>
</cac:AllowanceCharge>
</cac:Price>
</cac:InvoiceLine>