Dears,
I am experiencing an issue during the onboarding process. On the Developer Portal, the code is tested and works correctly. However, in the production environment, during the compliance phase, even though the OTP code is correct, the system returns the error:
“Invalid-OTP - The provided OTP is invalid.”
I have double-checked whether the page from which we retrieved the OTP is a simulation or not, and confirmed that the same code works with the Developer API using test OTP codes.
The endpoint URL I am using is:
https://gw-fatoora.zatca.gov.sa/e-invoicing/core/compliance
The line where I add the header in my .NET solution is:
httpClient.DefaultRequestHeaders.Add(“OTP”, otp);
I don’t see any reason why the OTP would be considered invalid. I would appreciate any advice or guidance on resolving this issue.
Thank you in advance.