500Internal Server Error in Simulation (Invalid Request Code)

We successfully submit 3 B2B invoices but for getting final Certificate getting this error in Simulation:

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

Compliance ID as below:

{
“compliance_request_id”: “1707386084527”
}

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

To resolve this issue, Please check:
1- CSR Request : check that you’ve correctly configured the CSR (Certificate Signing Request) based on the environment you intend to use.
Please try generate the CSR from the beginning for the simulation with the SDK using this command:
‘Fatoora -sim -csr -csrConfig [propertiesfilename. properties]’ (delete -sim if you are in production not in simulation).
You can find sample for properties files located in data/input in SDK directory.

2- API Endpoint: Ensure that you are using the correct APIs for the correct Environment you want to use.
e.g.: If you’re using Simulation Env, use the Simulation portal to get the OTP and Simulation APIs to get the CCSID and PCCSID.

to know the difference between simulation and production portal:

Also there are some notes need to be noted regarding the CSR and OTP in simulation as the below answers

Please try to perform requests via Postman. If the issue still persists, please share the postman collection, the CSR and its config file.