Last modified:2026-11-13 07:18:36
x-auth:Bearer access token
x-called-from:journey `kyc` after the profile. PAN and Aadhaar share this step. After 3 failures, `POST /application/kyc/upload`.
x-details:body `{ pan?, aadhaar?, redirectUrl? }`. `pan` and `aadhaar` are `e1.` blobs sealed with `PII_CIPHER_KEY`. The server opens them, then checks the number. A blob the key cannot open is `422` `validation_failed`. One of `pan` or `aadhaar` is required. DigiLocker is sent back to `https://myemipay.com/__callback/kyc`. A `redirectUrl` in the body is not sent. Header `X-App-Session` is the app process id. The same value keeps this DigiLocker client id for the visit. Pending → `{ status: "pending", url, pan, aadhaar }`.
x-errors:[{"meaning":"unauthorized: Authorization required","status":401},{"meaning":"step_not_ready: Finish the current step before you can continue.","status":409},{"meaning":"validation_failed: Aadhaar does not match the verified Aadhaar","status":422},{"meaning":"validation_failed: Enter a PAN or a 12-digit Aadhaar number.","status":422},{"meaning":"validation_failed: Enter a valid 12-digit Aadhaar number.","status":422},{"meaning":"validation_failed: PAN does not match the verified PAN","status":422},{"meaning":"validation_failed: Please enter a valid 10-character PAN.","status":422}]
x-next:open `url`, then poll `GET /application/kyc/status`.
x-order:0
x-section:digilocker
x-when:body `{ pan?, aadhaar?, redirectUrl? }`.