Eko Platform Services Logo

    GETGet Aadhaar KYC Consent Details

    Fetch the DigiKhata Aadhaar e-KYC consent text and audio for a chosen language.

    GET/customer/payment/ppi-digikhata/sender/{customer_id}/aadhaar/consent/details

    Returns the full Aadhaar e-KYC consent content, short consent statement, and an audio URL for the language selected (via consent_language = the pkid from Get Aadhaar KYC Consent Languages). Display/play this consent before collecting Aadhaar OTP.

    Path parameters

    customer_idstringRequired

    Sender's 10-digit mobile number.

    example: 8617567988

    Query parameters

    initiator_idstringRequired

    Registered mobile number of the API user (see Platform Credentials).

    example: 9962981729

    user_codestringRequired

    User code of the retailer/agent the service is run for.

    example: 20810200

    org_idstringRequired

    Organisation identifier. Defaults to 1.

    example: 1

    client_ref_idstringRequired

    Unique reference identifier for the request.

    example: ref_20250121_001

    consent_languagestringRequired

    The pkid from Get Aadhaar KYC Consent Languages.

    example: 1

    Headers

    developer_keystringRequired

    Static API key issued to your account after KYC.

    secret-keystringRequired

    Dynamic per-request signature: base64(HMAC-SHA256(timestamp, base64(access_key))).

    secret-key-timestampstringRequired

    Current time in milliseconds since UNIX epoch, used to compute secret-key. Must match server time.

    content-typestringRequired

    application/json

    example: application/json

    Responses

    • statusnumber

      Primary success indicator (0 = success).

    • messagestring

      Human-readable response / error message.

    • response_status_idnumber

      Granular status id; see the shared error-codes table.

    • response_type_idnumber

      A unique id for every possible response shape (success or error) — useful for client logic branching and analytics.

    • dataobject

      API-specific response payload.

      • consent_detailobject

        Consent content, short statement, and audio URL.

        • consentContentstring

          Full Aadhaar e-KYC consent text.

        • consentstring

          Short consent statement to display.

        • audioUrlstring

          Audio rendition of the consent in the chosen language.

        • consentIdnumber

          Consent identifier.

        • consentLanguagestring

          Language of the returned consent.