I’m trying to sign a simplified invoice using SDK 3.0.8. Everything is in the right place (certificate and private key), and the signing result is successful. However, when I report it to core/compliance/invoices, I receive the following response:
[
"validationResults" => array:4 [
"infoMessages" => array:1 [
0 => array:5 [
"type" => "INFO"
"code" => "XSD_ZATCA_VALID"
"category" => "XSD validation"
"message" => "Complied with UBL 2.1 standards in line with ZATCA specifications"
"status" => "PASS"
]
]
"warningMessages" => array:1 [
0 => array:5 [
"type" => "WARNING"
"code" => "invoiceTimeStamp_QRCODE_INVALID"
"category" => "QRCODE_VALIDATION"
"message" => "Time on QR Code does not match with Invoice Issue Time (KSA-25). If ZATCA's SDK was used to generate QR Code, kindly use the latest version of SDK"
"status" => "WARNING"
]
]
"errorMessages" => array:3 [
0 => array:5 [
"type" => "ERROR"
"code" => "publicKey_QRCODE_INVALID"
"category" => "QRCODE_VALIDATION"
"message" => "ECDSA Public Key does not match with qr code ECDSA public key"
"status" => "ERROR"
]
1 => array:5 [
"type" => "ERROR"
"code" => "INVOICE_SIGNATURE_VALUE_QRCODE_INVALID"
"category" => "QRCODE_VALIDATION"
"message" => "invoice signature value does not match with qr invoice signature value "
"status" => "ERROR"
]
2 => array:5 [
"type" => "ERROR"
"code" => "CERTIFICATE_SIGNATURE_QRCODE_INVALID"
"category" => "QRCODE_VALIDATION"
"message" => "certificate signature does not match with qr certificate signature value "
"status" => "ERROR"
]
]
"status" => "ERROR"
]
"reportingStatus" => "NOT_REPORTED"
"clearanceStatus" => null
"qrSellertStatus" => null
"qrBuyertStatus" => null
]