PCSID error in simulation phase

Hello Dear,

I want to ask you about simulation PCSID ( Note: I used SDK simulation version and added flag sim while generating CSR configuration file),
I completed these steps:

  • I did this while calling

( https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/compliance )

and get success response with ( binarySecurityToken + secret + requestID ).

  • Then, I sent sample invoices while calling

( https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/precompliance/invoices )

and replay with success message without errors or warnings.

  • But while calling

( https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/core/csids OR https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/production/csids )

with Authorization ( binarySecurityToken + secret ) in request header and requestID in request body, getting the following error

{
“code”: “Invalid-CurrentCCSID”,

“message”: “The provided CurrentCCSID is invalid”
}

Please, can you guide me to solve this issue ??

Thank you for your collaboration.

Hello @CDAdeveloper

Your steps are correct, maybe you need to recheck csr.invoice.type when creating CSR and Private Key.

If you choose 1100, it means you have to send 3 Standard Invoices (Sales, Credit Note and Debit Note) and 3 Simplified invoices (Sales, Credit Note and Debit Note) to Complliance Check. and make sure you use correct Api Url

https://gw-fatoora.zatca.gov.sa/e-invoicing/simulation/compliance/invoices

If all is successful, you should have no problem getting PCSID.

Dear @CDAdeveloper ,

Thank you for reaching out.

You might get this error because the CSR input you provided in the config file does not comply with ZATCA’s requirement. please fill all config file fields as per the “CSR Input” in the detailed technical guideline . Moreover, you can refer to the config file examples in the SDK.

If you fix your config file and still getting this error, please send your concern to the SP support email below. Make sure to include the full request, the full response, and the configuration file that you generated the CSR from.

SP email: sp_support@zatca.gov.sa

we send 6 invoices and all of them returned success but the PCSID returned error

we used the config file from sdk example, but we change the data to our company data.
this is config file data
csr.common.name=TST-886431145-399999999900003
csr.serial.number=1-TST|2-TST|3-ed22f1d8-e6a2-1118-9b58-d9a8f11e445f
csr.organization.identifier=399999999900003
csr.organization.unit.name=Riyadh Branch
csr.organization.name=Maximum Speed Tech Supply LTD
csr.country.name=SA
csr.invoice.type=1100
csr.location.address=RRRD2929
csr.industry.business.category=Supply activities