Internal Server Error when renew PCSID in simulation portal

Hello, I’m trying to renew PCSID on the simulation portal using the API

PATCH https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/production/csids

Header
Accept-Language=en
Accept-Version=V2
OTP=xxxxxx

Authentication using currently active PCSID

Body
{
  "csr": "LS0tLS1CRUdJTiB..."
}

On this try, I use the same CSR as the onboarding one. Also tried using new generated CSR with no changes to the information.

But it give me the response 500 - Internal Server Error

{
    "code": "Invalid-Request",
    "message": "System failed to process your request"
}

Is there anything I missed?

HI @stevenalbert

Try to add Content-Type: application/json at the header.

dear @stevenalbert ,

please add the CurrentCCSID header and pass the previous PCSID as value for it.
and make sure the OTP is renewal OTP not new device OTP.

Regards,