Pull Documents API
Introduction
This Pull documents API from signzy is designed to fetch the PAN documents from Digilocker.
How to call the API
You will need to login before sending Pull document request. You are required to pass the access token received from the login call, as authorization header in the Request along with the requestId, name , document type and PAN number.
API Input Guidelines
- You need to provide the alpha numeric requestId.
- Doc type will be PANCR for PAN card for eg.
Sample Curl
.Idcurl --location --request POST 'https://preproduction.signzy.tech/api/v2/patrons/..patronId./digilockers' \
--header 'accept-language: en-US,en;q=0.8' \
--header 'content-type: application/json' \
--header 'Authorization: ...<accesstoken>.... \
--data-raw '{
"task": "pullDocuments",
"essentials": {
"requestId": "<request id number>",
"docType": "PANCR",
"name" : "...name...",
"panNumber" : "...panNumber..."
}
}'Input Parameters
PARAMETERS | DESCRIPTION | TYPE | VALUE (REQUIRED OR OPTIONAL) |
|---|---|---|---|
Authorization | Contains the id parameter returned from the login step | String | REQUIRED |
content-type | application/json | String | REQUIRED |
requestId | RequestId token from create URL API | String | REQUIRED |
docType | Name of the DocType to be called | String | REQUIRED |
name | Name of the person | String | REQUIRED (conditional) |
panNumber | Pan Number of the person | String | REQUIRED (conditional) |
Sample Response
{
essentials: {
requestId: "<request id>",
docType: "PANCR",
name: "...name....",
panNumber: "...panNumber..."
},
id: "<token>",
patronId: "..<patron Id>..",
task: "pullDocuments",
result: {
pdf: ".....URL to pdf file.....",
xml: "....URL to xml file......"
}
} Response Parameter
PARAMETERS | DESCRIPTION |
|---|---|
essentials | Contains the input data |
essentials.requestId | Request ID from Create URL API. |
essentials.docType | Type of the document |
essentials.name | Name of the person |
essentials.panNumber | PAN number of the person |
id | Unique ID of the response |
patronId | Unique ID generated from the login call |
task | task is pullDocuments for this call |
result | It contians the actual result from the response |
result.pdf | Contains the URL to the document in pdf file format |
result.xml | Contains the URL to the document in xml file format |
Getting help
Please feel free to contact us if you have any questions, require clarification, or have ideas for how to make the documents or any of our services better.
You can reach out to us at [email protected].