add checking case about parameters on getPin API