v1

latestOpenAPI 3.0.32026-07-14108241269.2 KB
DigiLocker

DigiLocker Authorization Callback

Completes a DigiLocker authorization flow using the authorization code and PKCE code verifier.

post/verify/digilocker

Request body

codestring required

Authorization code received from DigiLocker

code_verifierstring required

PKCE code verifier used for the DigiLocker authorization flow

Example request

{
  "code": "AUTH_CODE",
  "code_verifier": "CODE_VERIFIER"
}

Response

DigiLocker authorization result

statusstring

Result status, usually success or failed

messagestring

Human-readable result message

resultobject
dataobject
error_codestring nullable

Provider or IDTO error code

tranx_idstring nullable

Transaction identifier

timestampstring date-time nullable

Response timestamp

chargeblestring

Billing flag returned by existing APIs

user_consentstring

Consent flag returned by existing APIs

Example response

{
  "status": "success",
  "message": "Verification completed successfully",
  "error_code": "IDTO_400",
  "chargeble": "true",
  "user_consent": "true"
}