---
title: "AePS Mini Statement API Reference"
description: "Retrieve the last few transactions from an Aadhaar-linked bank account via biometric authentication."
canonical: "https://eps.eko.in/docs/aeps-fingpay-mini-statement"
---


> **Canonical URL:** https://eps.eko.in/docs/aeps-fingpay-mini-statement
> This is a machine-readable Markdown version of the page for AI agents and LLMs. The primary (HTML) version lives at the canonical URL above.

# AePS Mini Statement API Reference

`POST https://staging.eko.in/ekoapi/v3/customer/collection/aeps-fingpay/mini-statement/{customer_id}`

Retrieve the last few transactions from an Aadhaar-linked bank account via biometric authentication.

Fetches a mini statement (typically the last 5–10 transactions) from a customer's bank account by authenticating through Aadhaar biometrics. Uses the dedicated `mini-statement` endpoint — the request shape matches Balance Enquiry (no `amount`). No money movement occurs. The response includes a list of recent debit/credit transactions with amounts and dates. Useful for customers who want to verify recent activity at an agent point without visiting a branch.

To capture the `piddata` PID block with an RDService-compliant fingerprint scanner, see the [Aadhaar Biometric Authentication guide](/docs/aadhaar-biometric-rdservice).

> View product & pricing details: [AePS Cashout](https://eps.eko.in/products/aeps-api.md)

## Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| customer_id | string | yes | Customer's registered mobile number. e.g. 9000000000 |

## Body parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| initiator_id | string | yes | Registered mobile number of the API user (see Platform Credentials). e.g. 9962981729 |
| client_ref_id | string | no | Unique reference ID per API call, generated by your system (max 20 characters). e.g. 2026010100123456789 |
| user_code | string | yes | Unique code of your user/agent/retailer the service is run for. Use `Onboard Agent` API to register your users e.g. 10000001 |
| bank_code | string | yes | Short bank code identifying the customer's Aadhaar-linked bank (e.g. `HDFC`, `SBIN`). Obtain from the bank list API. e.g. HDFC |
| aadhar | string | yes | RSA-encrypted, Base64-encoded Aadhaar number. Encrypt the 12-digit Aadhaar with the Eko RSA public key using PKCS#1 v1.5 padding (Java's default `Cipher.getInstance("RSA")`), then Base64-encode the ciphertext. e.g. BASE64_ENCRYPTED_AADHAAR |
| latlong | string | yes | GPS coordinates of the transaction origin in 'latitude,longitude' format. e.g. 28.6139,77.2090 |
| piddata | string | yes | PID XML string from the UIDAI-certified biometric device (fType=2, Data type='X', mc present in DeviceInfo). e.g. <?xml version='1.0'?><PidData><Data type='X'>...</Data><DeviceInfo mc='...' /></PidData> |

## Headers

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| developer_key | string | yes | Static API key issued to your account after KYC. |
| secret-key | string | yes | Dynamic per-request signature: base64(HMAC-SHA256(timestamp, base64(access_key))). |
| secret-key-timestamp | string | yes | Current time in milliseconds since UNIX epoch, used to compute secret-key. Must match server time. |
| content-type | string | yes | application/json e.g. application/json |

## Response

⭐ marks fields highlighted as verifiable.

| Field | Type | Description |
| --- | --- | --- |
| status | number | Primary success indicator (0 = success). |
| message | string | Human-readable response / error message. |
| response_status_id | number | Granular status id; see the shared error-codes table. |
| response_type_id | number | A unique id for every possible response shape (success or error) — useful for client logic branching and analytics. |
| tx_status | string | Transaction state: 0=Success, 1=Fail, 2=Awaited, 3=Refund Pending, 4=Refunded, 5=On Hold. |
| txstatus_desc | string | Human-readable transaction status. |
| data | object | API-specific response payload. |
| data.tid ⭐ | string | Eko's internal transaction ID for this enquiry. |
| data.mini_statement_list ⭐ | array | List of recent transactions. Each entry carries the transaction date, amount, direction (Dr/Cr), and narration. |
| data.mini_statement_list.date | string | Transaction date (DD/MM). |
| data.mini_statement_list.amount ⭐ | string | Transaction amount in INR. |
| data.mini_statement_list.narration | string | Bank-provided transaction narration or description. |
| data.mini_statement_list.txnType ⭐ | string | Transaction direction: 'Cr' for credit, 'Dr' for debit. |
| data.sender_name | string | Name of the agent/sender initiating the enquiry. |
| data.merchantname | string | Registered merchant name of the agent. |
| data.merchant_code | string | Merchant code of the agent. May be empty. |
| data.user_code | string | Echo of the agent's user_code from the request. |
| data.customer_balance ⭐ | string | Customer's account balance as reported by the bank (INR). May be empty. |
| data.commission | string | Commission earned by the agent on this enquiry (INR). |
| data.service_tax | string | Service tax component on the fee (INR). May be empty. |
| data.totalfee | string | Total fee including taxes (INR). May be empty. |
| data.terminal_id | string | Terminal identifier. May be empty. |
| data.bank_ref_num | string | NPCI/bank reference number for this statement fetch. May be empty. |
| data.transaction_date | string | Transaction date (DD-MM-YY HH:MM:SS). |
| data.transaction_time | string | Transaction timestamp (DD-MM-YY HH:MM:SS). |
| data.reason | string | Failure reason, when the enquiry did not complete. Empty on success. |
| data.comment | string | Human-readable remark from the provider (e.g. 'Request Completed'). |

## Response types

Branch on `response_type_id` to decide the next call:

| response_type_id | Meaning | Next step |
| --- | --- | --- |
| 1527 | Transaction Successful | — |
| 1528 | Transaction Fail | — |

## Example request

```json
{
  "initiator_id": "9962981729",
  "client_ref_id": "2026010100123456789",
  "user_code": "10000001",
  "bank_code": "HDFC",
  "aadhar": "BASE64_ENCRYPTED_AADHAAR",
  "latlong": "28.6139,77.2090",
  "piddata": "<?xml version='1.0'?><PidData><Data type='X'>...</Data><DeviceInfo mc='...' /></PidData>"
}
```

## Example response

`response_type_id` `1527` — Transaction Successful.

```json
{
  "response_status_id": 0,
  "data": {
    "transaction_date": "01-01-24 00:00:00",
    "mini_statement_list": [
      {
        "date": "01/01",
        "amount": "0.00",
        "narration": "MAT/W/000000",
        "txnType": "Dr"
      },
      {
        "date": "31/12",
        "amount": "0.00",
        "narration": "MAT/D/000000",
        "txnType": "Cr"
      },
      {
        "date": "28/12",
        "amount": "0.00",
        "narration": "POS/W/000000",
        "txnType": "Dr"
      }
    ],
    "sender_name": "Test User",
    "tid": "0000000000",
    "user_code": "10000001",
    "merchantname": "Test User",
    "customer_balance": "0.00",
    "transaction_time": "01-01-24 00:00:00",
    "commission": "0.00",
    "terminal_id": "",
    "comment": "Request Completed"
  },
  "response_type_id": 1527,
  "message": "Transaction Successful",
  "status": 0
}
```

## Error scenarios

| Status | response_type_id | Scenario |
| --- | --- | --- |
| 200 | `1528` — Transaction Fail | Transaction Fail — incorrect merchant credentials |
