v1

latestOpenAPI 3.1.02026-07-2418201.6 MB

DigiLocker File Data API

post/v2/kyc/digilocker/file/data

Headers

client_idstring required

ID/identifier that is provided by Decentro to a specific client and environment. Please note, this may change based on the environment you are on.

client_secretstring required

The confidential credential provided by Decentro that is associated with the client_id

Request body

initiation_decentro_transaction_idstring required
file_urnstring required
consentboolean required

true/false based on the consent given by the customer. Mandatory as per regulation.

consent_purposestring required

The purpose of taking this consent from your customer. Mandatory as per regulation. (>20 characters)

reference_idstring required

Response

200

decentroTxnIdstring
statusstring
responseCodestring
messagestring
responseKeystring

Example response

{
  "decentroTxnId": "DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  "status": "SUCCESS",
  "responseCode": "S00000",
  "message": "File data fetched successfully as JSON from Digilocker",
  "data": {
    "data": {
      "documentIssuer": "Income Tax Department",
      "documentName": "PAN Card",
      "documentType": "PANCR",
      "idNumber": "ABCDE1234F",
      "userName": "MANISH GUPTA",
      "userDateOfBirth": "DD-MM-YYYY",
      "userGender": "MALE",
      "documentVerifiedOn": "10-05-2023 18:54:22",
      "documentStatus": "Active"
    },
    "initiationDecentroTransactionId": "DXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  },
  "responseKey": "success_file_data"
}