"The provided OTP is invalid" error occurs when using the compliance API

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.