Hi
does it mean we should not print the invoice before getting clearance from the portal?
Also, what about the QR, was generated before clearance, is it not acceptable?
Hi @kalaiarasan ,
The detailed technical guideline should help you.
Moreover, the developer portal will help you in the onboarding process
Thanks,
@karimjaber no you should not print B2B Tax Invoices before getting Clearance. Only Cleared invoice must be shared with B2B customer as Tax Invoice. If uncleared invoice is shared it will not be considered a valid Tax Invoice in Phase 2 (for those sellers who are covered in integration enforcement wave). Also, B2B invoices must be shared only electronically either as XML or PDF/A-3(with embedded XML), human readable form must contain QR Code issued by ZATCA during Clearance.
Dear @Hadi ,
Clearance is done perfectly
now we extarct the QR code from the cleared invoice and saved it in database
But its not showing the image in invoice while we have decode it and check the extracted QR code has value info in it.
can u please verify what we are missing ?
thanks,
@arjun_tech24 please create a new topic and do not mix up questions on different topics. Your question has been answered on original topic, so it will be deleted from all other places. In future please do not post unrelated questions to different topics
@Ankit_Tiwari
Sorry for the inconvenience. I had already posted a topic about this, but the approval was delayed. It’s now approved, so please feel free to delete this.
@idaoud , @Malik , @Lina-alrehaili1
Please provide step by step instruction on how to print QR code once a B2B invoice has been cleared by Zatca.
Thanks,
Zahid Ali.
Dear @zahid,
Please find below an example on how to print the QR code of the cleared B2B invoice:
1- decode the cleared e-invoice returned from clearance API using base64 decoder.
2- go to cac:AdditionalDocumentReference / cac:Attachment / cbc:EmbeddedDocumentBinaryObject
where
cac:AdditionalDocumentReference / cbc:ID = QR
cac:AdditionalDocumentReference / cac:Attachment / cbc:EmbeddedDocumentBinaryObject /@mimeCode = text/plain
3- the value in the previous tag is the TLV base64 string that you should print.
4- you may scan the printed QR code through ZATCA mobile app to ensure the validity of your QR code printing process.
For more information, please refer to this document :
https://www.zatca.gov.sa/ar/E-Invoicing/SystemsDevelopers/Documents/QRCodeCreation.pdf
Regards,
@Aturkistani i have already completed the first two steps and successfully saved the TLV Base64 string in the database. However, the issue arises when printing the QR code image. Even after converting it into an image using the ZATCA library, scanning it with the ZATCA app returns an error: “Unable to verify.”
Dear @zahid,
If you’re still facing this issue even after updating the ZATCA mobile app with the last version. Kindly share the XML file for the full invoice with ZATCA via the official channels or your RM for further investigation by the technical team.