# Simplified invoice signing

**URL:** https://zatca1.discourse.group/t/simplified-invoice-signing/7254
**Category:** Signing process
**Created:** [June 1, 2025, 9:30am UTC](https://zatca1.discourse.group/t/simplified-invoice-signing/7254 "2025-06-01T09:30:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![alihassan0304](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@alihassan0304](https://zatca1.discourse.group/u/alihassan0304)
#### Post date: [June 1, 2025, 9:30am UTC](https://zatca1.discourse.group/t/simplified-invoice-signing/7254/1 "2025-06-01T09:30:52Z")

</div>

Hi,

Can someone help us how to sign a simplified invoice ? We are getting following errors.

category : SIGNATURE\_ERROR  
code :xadesSignedPropertiesDigestValue  
message : wrong xadesSignedPropertiesDigestValue

category : SIGNATURE\_ERROR  
code :signatureValue  
message : wrong signature Value

Many thanks.  
Ali Hassan

---

<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: [June 3, 2025, 6:27am UTC](https://zatca1.discourse.group/t/simplified-invoice-signing/7254/2 "2025-06-03T06:27:38Z")

</div>

Dear @alihassan0304,

Thank you for reaching out.

You can follow the below steps:  
1-After submitting the Certificate Signing Request (CSR) via the Compliance Request CSID API, you will receive a BinaryToken and a secret.  
2-Decode the BinaryToken using a base64 decoder. The decoded value will be the x.509 certificate.  
3-Navigate to the SDK directory: SDK/Data/Certificates/Cert.pem.  
4-Replace the contents of the Cert.pem file with the x.509 certificate obtained from the decoded BinaryToken.  
5-Insert the newly generated private key into the ec-secp256k1-priv-key.pem file.  
6-if you use JAVA SDK, run the following command: fatoora -sign -invoice “invoice.xml”.  
else the .Net SDK, run the following command: fatooranet sign -invoice “invoice.xml”  
7-The invoice will now be signed and can be successfully submitted during the compliance checks phase via the Compliance Invoice API.  
8-Repeat the above steps using the returned PCSID from the third API in the onboarding process, sign your simplified tax invoices, and submit them to the Reporting API. Ensure the returned Binary Token is decoded using a base64 decoder, and the certificate is updated at  
SDK/Data/Certificates/Cert.pem.

Thanks

---

<div class="post-metadata">

### Author: ![alihassan0304](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@alihassan0304](https://zatca1.discourse.group/u/alihassan0304)
#### Post date: [June 3, 2025, 12:58pm UTC](https://zatca1.discourse.group/t/simplified-invoice-signing/7254/3 "2025-06-03T12:58:25Z")

</div>

i am using core php i need only way how we create signature value
