BR-KSA-98, certificate-issuer-name , invalid-signing-certificate

while getting my EGS on board, after submitting CSR and obtaining binary token , decoded into base64 and use as a cert for signing the invoice.

after that generating json api response , validating from SDK , i am facing these warnings.

{
  "validationResults": {
    "infoMessages": [
      {
        "type": "INFO",
        "code": "XSD_ZATCA_VALID",
        "category": "XSD validation",
        "message": "Complied with UBL 2.1 standards in line with ZATCA specifications",
        "status": "PASS"
      }
    ],
    "warningMessages": [
      {
        "type": "WARNING",
        "code": "BR-KSA-98",
        "category": "KSA",
        "message": "[BR-KSA-98] - The simplified invoice should be submitted within 24 hours of issuing the invoice.",
        "status": "WARNING"
      },
      {
        "type": "WARNING",
        "code": "certificate-issuer-name",
        "category": "CERTIFICATE_ERRORS",
        "message": "X509Certificate (CCSID / PCSID) used for signing is not valid certificate (CCSID / PCSID) for this VAT Registration Number.",
        "status": "WARNING"
      },
      {
        "type": "WARNING",
        "code": "invalid-signing-certificate",
        "category": "CERTIFICATE_ERRORS",
        "message": "X509Certificate (CCSID / PCSID) used for signing is not valid certificate (CCSID / PCSID) for this VAT Registration Number.",
        "status": "WARNING"
      }
    ],
    "errorMessages": [],
    "status": "WARNING"
  },
  "reportingStatus": "REPORTED",
  "clearanceStatus": null,
  "qrSellertStatus": null,
  "qrBuyertStatus": null
}

after reporting all standard and simplified invoices , when i tried to get PCSID , and submit the request id but getting error.

sending request on
https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/production/csids

{
  "detail": "ZATCA API error: {\"errorCode\":\"400\",\"errorCategory\":\"Invalid-CSR\",\"errorMessage\":\"The provided Certificate Signing Request (CSR) is invalid.\"}"
}

any help, i am doing all steps with SDK java version 238-R3.4.1

Dear @arkaabrothers,

I hope you are doing well.

To fix them, please ensure the following:

1- When CSR is being generated, it should contain the flag -sim if you are using CMD (CLI), as production and simulation are independent environments, CSR on simulation should be generated with SIM tag, check on the readme file inside the SDK folder for more information.

2- for the warning, please make sure to use the CCSID for the compliance invoice API only, while the PCSID should be used only in reporting API, mixing them up will retrieve this warning, also if you are signing the invoices with a certificate that belongs to a different taxpayer (VAT no.) to the XML invoice “companyID” seller tag.

Regards,