“status_code”: 400,
“version”: “HTTP/1.1”,
“message”: “Bad Request”,
“body”: {
“code”: “Invalid-CurrentCCSID”,
“message”: “The provided CurrentCCSID is invalid”
}
}
All preceding steps, including generating and sending the CSR and conducting compliance checks on six types of invoices (1100), have been executed correctly, except for the final step of obtaining the PCSID.
@idaoud I’m encountering the same issue in the simulation environment. In addition to including ‘compliance_request_id’ in the body, I’m also adding the base64-encoded ‘binaryToken:secret’ in the Authorization header.
While we’ve successfully onboarded many businesses in both the production and simulation environments, this issue has only started occurring in the simulation environment over the past two weeks.
@idaoud I’m encountering the same issue in the simulation environment. In addition to including ‘compliance_request_id’ in the body, I’m also adding the base64-encoded ‘binaryToken:secret’ in the Authorization header.
While we’ve successfully onboarded many businesses in both the production and simulation environments, this issue has only started occurring in the simulation environment over the past two weeks.
Can you please recheck csr.invoice.type in the config file?
If you choose 1100, it means you have to send 3 Standard Invoices (tax invoice, Credit Note and Debit Note) and 3 Simplified invoices (tax invoice, Credit Note and Debit Note) to Compliance Check. and make sure you use the correct API end point
Over the past two years, we’ve successfully integrated with ZATCA and onboarded multiple businesses, but we’ve only encountered this issue in the past two weeks.
This issue is probably related to one of the following:
1- the provided CCSID in the authorization header (binary security token & secret) is not related to the request_id in the body of the PCSID API request. So kindly ensure to submit the right request_id with the related CCSID in the authorization header.
2- the CSR was not generated for simulation, if using the CLI SDK, you should include the flag -sim in the command of the CSR generation.
3- There is a mistake with the format of the CSR config file, you can refer to the example provided in the SDK, you can find it \Data\Input directory, also you can refer to the detailed technical guideline for more information related to the CSR input.
Finally, If you are using OpenSSL, please ensure that the certificateTemplateName in the config file is ASN1:PRINTABLESTRING:PREZATCA-Code-Signing
1 - The CCSID in the authorization header is related to request_id
2 - The CSR was generated successfully.
3 - We don’t think there is any issue here.
We’ve onboarded around 5 businesses since i posted this question. All of then were onboarded successfully. Except this one business which we are not able to onboard.
We suspect the issue could be just with this specific business.
To ensure comprehensive support as usual, can I kindly ask you to mention the steps you followed from the first step to generate the CSR, until getting the error you mentioned?
Please note that providing some screenshot with the exact cleared steps will be helpful for our investigation to provide comprehensive support as usual.