> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kler.africa/llms.txt
> Use this file to discover all available pages before exploring further.

# Reconciliation

> Get a full payment summary for a session.

## Get reconciliation summary

**GET** `/v1/reconciliation/:session_id`

Returns transaction totals broken down by status, channel, and terminal.

<RequestExample>
  ```bash theme={null}
  curl https://api.kler.africa/v1/reconciliation/3f1e2d... \
    -H "x-api-key: YOUR_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "data": {
      "session_id": "3f1e2d...",
      "total_inflow": "245000.00",
      "transaction_count": 49,
      "successful_count": 47,
      "pending_count": 1,
      "failed_count": 1,
      "by_channel": {
        "bank_transfer": { "count": 30, "total": "150000.00" },
        "pos": { "count": 17, "total": "95000.00" }
      },
      "by_terminal": {
        "pos_3f1e2d_001": { "count": 8, "total": "40000.00" },
        "pos_3f1e2d_002": { "count": 9, "total": "55000.00" }
      },
      "reconciled_at": "2025-08-01T22:00:00.000Z"
    }
  }
  ```
</ResponseExample>

| Field               | Description                                  |
| ------------------- | -------------------------------------------- |
| `total_inflow`      | Sum of all `successful` transactions         |
| `transaction_count` | Total across all statuses                    |
| `by_channel`        | Successful volume grouped by payment channel |
| `by_terminal`       | Successful volume grouped by terminal ID     |
