Call this API to verify a PAN provided by your customer. A quick explanation of the request params—
pan is the PAN value. It may belong to different categories like Person, Company, Trust, Goverment, Firm, etc.
consent indicates if you have collected consent from your customer. To get a successful verification, it must contain Y or y.
reason is the explanation of why you are requesting for PAN from your customer. It should be explained in 20 characters or more.
While the implementation of consent and reason cannot be enforced by Setu, we recommend collecting explicit consent from your customers and also explaining to your customers the reason why you are verifying their PAN.
While testing on Sandbox, you may use the following sample values—
Use ABCDE1234A for a valid PAN
Use ABCDE1234B for an invalid PAN, i.e, a PAN number has been found but is invalid. A PAN is considered invalid by NSDL for different reasons. For e.g, if it is a blacklisted one, or maybe because it is not linked to an Aadhaar card.
If you use any other values for pan, you will get a 404 PAN not found error.
Your request has a valid pan and Setu has processed your request successfully.
"reason":"Reason for verifying PAN set by the developer"