“The provided OTP is invalid” error occurs when using the compliance API.
To resolve the error, consider the following factors:
Check that the VAT number in the CSR request is the same VAT number used to request the OTP.
Verify the OTP’s validity as it expires after 1 hour from the time of generation.
Also, make sure to generate the OTP from the correct Portal/environment you want to use.
If using Simulation APIs, generate the OTP from the Simulation portal.
If using Fatoora APIs ( Core ), generate the OTP from the Fatoora portal.