Thank you so much,
Yeah you are right hash code may be a problem. I am creating correct xml depends on Zadka regulations needs. I do not put QR data Signature and I will remove UBL extension. Than I am creating hash code with SHA256 algorithm with using XML string data. My developments has not yet finished when it is done, I will tried to test developer portal. In our company we do not have B2C (Simplified Invoice) scenario. As I learned, HASH code Algorithm SHA256 should be ok for us.
Load Document, make sure set PreserveWhiteSpace Properties in XMLDocument to True.
- Use SDK library to generate Invoice Hash.
- Use SDK library to generate InvoiceRequest, then replace invoiceHash field with our generated Hash on step 1
- Submit to Portal, If this accepted, we just need extract QRCode from clearedInvoice in Server Response to print on ERP Invoice
Hello Dear,
Thank you for your previous helps. I have a question about clearence API http code 202 . Cleared with warnings. Currently We are creating correctly hash and sending standart B2B invoices not included QR and signature. If we get status code 200. There is no problem because zatca provides to Signed invoice data and QR code. But once we received 202 code one of our invoices, zatca cleared that invoice But Zatca does not provide signed invoice to us. Actually we shoudl resend that corractly invoice to zatca to get signedn invoice and QR code.
Once we get 202 status code, will we resend or not?
If we do not resend it to zatca, How to get QR code and Signed invoice xml?
Could you help for my question?
Hello Ibrahem.
I found out that IN c#, we do not have a standard function to canonicalize so I shifted to PHP and my issue was resolved.
