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

# Reconciliation

> Pull posted settlement ledger lines for your books.

# Reconciliation

Scope: `reconciliation:read`.

Returns **posted** (final) settlement movements only. Planned reserves appear in balance `reserved`, not in closing balance here.

```http theme={null}
GET https://api.imbawallet.com/partner/reconciliation?from=2026-07-01T00:00:00.000Z&to=2026-07-11T00:00:00.000Z&limit=500
Authorization: Bearer <access_token>
```

| Query    | Notes                                |
| -------- | ------------------------------------ |
| `from`   | Inclusive (UTC RFC 3339)             |
| `to`     | Exclusive; omit → up to request time |
| `limit`  | Page size (default 100, max 500)     |
| `cursor` | From previous `next_cursor`          |

Invariant:

```
opening_balance + total_credit - total_debit = closing_balance
```

When paging, reuse the same `as_of` / `to` from the first page.

```json theme={null}
{
  "currency": "USDT",
  "network": "TRON",
  "from": "2026-07-01T00:00:00.000Z",
  "to": "2026-07-11T00:00:00.000Z",
  "as_of": "2026-07-10T12:00:00.000Z",
  "opening_balance": "10000.00",
  "closing_balance": "14750.00",
  "total_debit": "800.00",
  "total_credit": "5550.00",
  "entries": [
    {
      "ts": "2026-07-10T09:20:00.000Z",
      "operation_type": "withdrawal",
      "amount": "100.50",
      "direction": "debit",
      "ext_id": "withdraw-20260710-001",
      "ref_id": "019d0123-bf52-74b5-b78a-76c49333e82d"
    },
    {
      "ts": "2026-07-10T09:20:00.000Z",
      "operation_type": "withdrawal_fee",
      "amount": "1.00",
      "direction": "debit",
      "ext_id": "withdraw-20260710-001",
      "ref_id": "019d0123-bf52-74b5-b78a-76c49333e82d"
    }
  ],
  "next_cursor": null,
  "request_id": "019d0120-7b59-7eab-b837-a7af38ea3db2"
}
```

## `operation_type` values

`deposit`, `withdrawal`, `withdrawal_fee`, `card_issue`, `card_topup`, `card_fee`, `esim_purchase`, `esim_topup`, `gift_purchase`, `adjustment`.
