# QR Simplifeid Invoice

**URL:** https://zatca1.discourse.group/t/qr-simplifeid-invoice/2868
**Category:** QR code
**Created:** [September 8, 2024, 9:14am UTC](https://zatca1.discourse.group/t/qr-simplifeid-invoice/2868 "2024-09-08T09:14:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Madleen](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@Madleen](https://zatca1.discourse.group/u/Madleen)
#### Post date: [September 8, 2024, 9:14am UTC](https://zatca1.discourse.group/t/qr-simplifeid-invoice/2868/1 "2024-09-08T09:14:11Z")

</div>

Dear All,  
How can generate qr code for B2C invoice ?

---

<div class="post-metadata">

### Author: ![halrashidy](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@halrashidy](https://zatca1.discourse.group/u/halrashidy)
#### Post date: [September 8, 2024, 9:34am UTC](https://zatca1.discourse.group/t/qr-simplifeid-invoice/2868/2 "2024-09-08T09:34:04Z")

</div>

Dear @Madleen

This is the command to generate the QR:- fatoora -qr -invoice

we have standard approach for onboarding please make sure that you are validating the new generated invoice after signing that has the suffix “\_signed” and not the first invoice before signing,  
Please follow the steps here for java  
[readme.pdf](https://zatca1.discourse.group/uploads/short-url/dvXQEJRKo3wDAoF3dD6vz8D7LwW.pdf) (478.6 KB)  
for .net  
[README.pdf](https://zatca1.discourse.group/uploads/short-url/zJBnrcukqwIqzfutYvZGiSqGt3I.pdf) (255.2 KB)

thanks

---

<div class="post-metadata">

### Author: ![Madleen](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@Madleen](https://zatca1.discourse.group/u/Madleen)
#### Post date: [September 11, 2024, 1:40pm UTC](https://zatca1.discourse.group/t/qr-simplifeid-invoice/2868/3 "2024-09-11T13:40:39Z")

</div>

Dear @halrashidy ,  
thank you for ur help, when try to used this command: fatooranet qr -invoice \<inovice.xml\> , show this error  
“Operation Failed  
Error: [Error] Generating EInvoice QR Code  
Exception: [Error] Unable to get Certificate value” , how fix it?

---

<div class="post-metadata">

### Author: ![halrashidy](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@halrashidy](https://zatca1.discourse.group/u/halrashidy)
#### Post date: [November 3, 2024, 12:30pm UTC](https://zatca1.discourse.group/t/qr-simplifeid-invoice/2868/4 "2024-11-03T12:30:12Z")

</div>

Dear @Madleen,

Please update the cert.pem file in the SDK:  
Ensure that you are replacing the decoded binaryToken in the following bath in the SDK: “zatca-einvoicing-sdk-238-R3.3.5\Data\Certificates\cert.pem”

Then update the private key in the same directory:\*\*  
When you generate your CSR from your config file, two files generated (the CSR, and Private Key) make sure that you take the private key and replace it with the following path “zatca-einvoicing-sdk-238-R3.3.5\Data\Certificates\ec-secp256k1-priv-key.pem”.

The signing function takes 3 parameters (xml, cert, and the private key), you need to update the private key.

Thanks,
