Dear Support Team,
I am writing to inquire about the availability of older versions of the SDK. Specifically, I am in need of versions 3.2.6 and 3.3.3 for a project I am currently working on.
Could you please provide me with download links or instructions on how to obtain these versions?
Thank you for your assistance.
Best regards,
Ayman Ahmed
Malik
August 29, 2024, 12:28pm
2
Dear Ayman,
Why you want to use older version latest is recommended and good to use. thanks
This The Output From Latest SDK Validate I Use All Data From SDK CSR and Standard Invoice
Validate Sign Inputs = True
Generate EInvoice Hash = True
Generate Signature = True
Parse Certificate = False
Hash Certificate = True
Transform Xml Result = True
Populate Signed Signature Properties = False
Populate UBL Extensions = True
Generate EInvoice QR = False
Finalize Sign Document = True
and This invoice Validate From Sandbox For Same CSR Same Invoice :
message: “The invoice hash API body does not match the (calculated) Hash of the XML”,
message: "Schema validation failed; XML does not comply with UBL 2.1 standards in line with ZATCA specifications. ERROR: org.xml.sax.SAXParseException; lineNumber: 46; columnNumber: 77; cvc-datatype-valid.1.2.1: ‘>’ is not a valid value for ‘dateTime’.
message: "[KSA-14]Field character limit for QR Code field has been exceeded. The maximum character limit for this field is 1000 characters.
I Keep Searching Here For Latest Post Alot of Users Said The Older Version Working Well. so I Need Older Version to Use it in My Project and Check The Different
Malik
September 2, 2024, 7:08am
9
Hi, Please share your XML let me review it as using older version is not recommended so need to find why it is getting failed for you and not for others. thanks
lalomar
September 2, 2024, 7:50am
10
Dear @aymannagy ,
Thank you for reaching out.
Please note that the version history of SDK is available on ZATCA website. However, it is not recommended to use older versions of the SDK.
Can you please share your issue, the XML file, and the error message with our support team via email so we can investigate your issue:
SP email: sp_support@zatca.gov.sa
Thanks,
Dear Mr. Malik
I fixed The Problem but I Have Different issue When I Validate the Singed invoice .
Zatca.EInvoice.SDK.Contracts.Models.ValidationStepResult;“Validate EN Schematrons”;False;“[[Error] occurred in validating Schematrons.]”
Zatca.EInvoice.SDK.Contracts.Models.ValidationStepResult;“Validate KSA Schematrons”;False;“[[Error] occurred in validating Schematrons.]”
Data :
CSR : MIID6jCCA5CgAwIBAgITb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RzdGNybC56YXRjYS5nb3Yuc2Evb2NzcDAOBgNVHQ8BAf8EBAMCB4AwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMDMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwIwCgYIKwYBBQUHAwMwCgYIKoZIzj0EAwIDSAAwRQIhAMWDOI67/kAqLSDMGeUDUettoh+1dRGNHppri9d7y02vAiAtfnOLHuJBlO8QqNxXOdeQZphNYai0DDzQXmESb+6FZA==
PK : MHQCAQEEIDyLDaWIn/1/g3PGLrwupV4nTiiLKM59UEqUch1vDfhpoAcGBSuBBAAKoUQDQgAEYYMMoOaFYAhMO/steotfZyavr6p11SSlwsK9azmsLY7b1b+FLhqMArhB2dqHKboxqKNfvkKDePhpqjui5hcn0Q==
PIH: NWZlY2ViNjZmZmM4NmYzOGQ5NTI3ODZjNmQ2OTZjNzljMmRiYzIzOWRkNGU5MWI0NjcyOWQ3M2EyN2ZiNTdlOQ==
Invoice : Standard_Invoice.xml That inside the SDK Folder
can you Provide me the link Please ?
Dear Support .
When I Use New SDK To Generate SDK This is The Code i Use
string CommonName = “TST-886431145-399999999900003”;
string serialnumber = “1-TST|2-TST|3-ed22f1d8-e6a2-1118-9b58-d9a8f11e445f”;
string organizationidentifier = “399999999900003”;
string organizationunitname = “Riyadh Branch”;
string organizationname = “Maximum Speed Tech Supply LTD”;
string countryname = “SA”;
string invoicetype = “1100”;
string locationaddress = “RRRD2929”;
string industrybusinesscategory = “Supply activities”;
Zatca.EInvoice.SDK.CsrGenerator csrGenerator = new Zatca.EInvoice.SDK.CsrGenerator();
Zatca.EInvoice.SDK.Contracts.Models.CsrGenerationDto csrGenerationDto = new Zatca.EInvoice.SDK.Contracts.Models.CsrGenerationDto(CommonName, serialnumber, organizationidentifier, organizationunitname,
organizationname, countryname, invoicetype, locationaddress, industrybusinesscategory);
var CGC = csrGenerator.GenerateCsr(csrGenerationDto, Zatca.EInvoice.SDK.Contracts.Models.EnvironmentType.Simulation, false);
and when I Use The output CSR and PK For Sign its Give me Certificate Error Can You Help me ?
“[[Error] Parsing EInvoice Certificate]”
“System.Security.Cryptography.CryptographicException: Cannot find the requested object.
at System.Security.Cryptography.X509Certificates.CertificatePal.FromBlobOrFile(ReadOnlySpan1 rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags) at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(ReadOnlySpan
1 data)
at System.Security.Cryptography.X509Certificates.X509Certificate2…ctor(Byte rawData)
at Zatca.EInvoice.SDK.CoR.Actions.ParseCertificateMiddleware.Execute(EInvoiceData eInvoiceData) in C:\Users\ehajhassan\source\repos\zatca-dotnet-sdk\Source\Code\Zatca.EInvoice.SDK\CoR\Actions\ParseCertificateMiddleware.cs:line 24”
anusv
September 2, 2024, 3:46pm
16
@aymannagy how did you solved this issue ? Please advice
anusv
September 3, 2024, 5:23am
18
“The invoice hash API body does not match the (calculated) Hash of the XML” , the mentioned issue
use this csr :
Data :
CSR : MIID6jCCA5CgAwIBAgITbwAAfsboAdNVNKd+1wABAAB+xjAKBggqhkjOPQQDAjBjMRUwEwYKCZImiZPyLGQBGRYFbG9jYWwxEzARBgoJkiaJk/IsZAEZFgNnb3YxFzAVBgoJkiaJk/IsZAEZFgdleHRnYXp0MRwwGgYDVQQDExNUU1pFSU5WT0lDRS1TdWJDQS0xMB4XDTIyMDgxNjE0MjU0OFoXDTI0MDgxNTE0MjU0OFowTjELMAkGA1UEBhMCU0ExEzARBgNVBAoTCjMxMDIzMzM3NDYxDDAKBgNVBAsTA1RTVDEcMBoGA1UEAxMTVFNULTMxMDIzMzM3NDYwMDAwMzBWMBAGByqGSM49AgEGBSuBBAAKA0IABGGDDKDmhWAITDv7LXqLX2cmr6+qddUkpcLCvWs5rC2O29W/hS4ajAK4Qdnahym6MaijX75Cg3j4aao7ouYXJ9GjggI5MIICNTCBmgYDVR0RBIGSMIGPpIGMMIGJMTswOQYDVQQEDDIxLVRTVHwyLVRTVHwzLT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2ZiNTdlOQ==
eCloud
September 3, 2024, 7:17am
20
Have you get Compliance CSID Certificate?
We need Compliance CSID or Production CSID to Signing Document.
And for Simulation Environment, we should use our VAT Number, and get OTP from Fatoora portal to get Compliance CSID.
You Mean i use binarySecurityToken For Signing the Invoice ??
eCloud
September 3, 2024, 9:01am
22
Yes, Decoded binarySecurityToken and PrivateKey are required to sign Invoice.
anusv
September 3, 2024, 9:19am
23
@aymannagy “The invoice hash API body does not match the (calculated) Hash of the XML”. How you resolved this ?