Skip to content

Balance Statement

Retrieve the balance history for your account. Provides a detailed breakdown of the running balance over a given time period, including deposits, transactions, refunds, and commissions. The data can be filtered by date, enabling you to focus on specific time ranges.

TIP

You can also view and download balance statements from the Dashboard.

API Endpoint

http
GET https://api.iimmpact.com/v2/balance-statement

Request Headers

HeaderDescriptionRequired
X-Api-KeyYour API keyYes
X-TimestampUnix timestamp in secondsYes
X-NonceUnique request identifierYes
X-SignatureHMAC-SHA256 signature (v1=...)Yes

See API Key Authentication for how to sign your requests.

Query Parameters

ParameterTypeRequiredDescription
datestringYesSingle date or date range. Format: yyyy-MM-dd for a single date, yyyy-MM-dd - yyyy-MM-dd for a range (note: space-dash-space separator). Examples: 2025-05-01 or 2025-05-01 - 2025-05-31
typestringNoFilters entries by type. Leave blank to return all types. Possible values: DEPOSIT, TRANSACTION, REFUND, COMMISSION
pagestringNoPagination
limitstringNoSpecifies the maximum number of transaction records to return

Response 200

FieldTypeDescription
dataarrayList of balance entries
data[].idnumberUnique identifier for the balance entry
data[].datestringTimestamp of when the balance entry was recorded (GMT+8)
data[].amountnumberThe amount by which the balance changed (can be positive or negative)
data[].balancenumberThe account balance after this entry was applied
data[].remarksstringDescription of the transaction
data[].typestringThe type of balance entry
linksobjectPagination links
links.firststringURL to the first page
links.laststringURL to the last page
links.prevstringURL to the previous page (null if on first page)
links.nextstringURL to the next page (null if on last page)
metaobjectPagination metadata
meta.current_pagenumberThe current page number
meta.fromnumberStarting record index on this page
meta.last_pagenumberThe total number of pages
meta.pathstringBase API path
meta.per_pagenumberNumber of records per page
meta.tonumberEnding record index on this page
meta.totalnumberThe total number of balance entries
summaryobjectAggregate totals for the queried period
summary.total_transactionsobjectTransaction totals: { amount: number, count: number }
summary.total_depositobjectDeposit totals: { amount: number, count: number }
summary.total_refundobjectRefund totals: { amount: number, count: number }

Example Response:

json
{
  "data": [
    {
      "id": 133382527,
      "date": "2025-05-19 13:06:50.523",
      "amount": -628.7,
      "balance": 139985.697,
      "remarks": "Trx #106609887 TNB.220000000000",
      "type": "T"
    }
  ],
  "links": {
    "first": "/balance-statement?page=1",
    "last": "/balance-statement?page=85526",
    "prev": null,
    "next": "/balance-statement?page=2"
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 85526,
    "path": "/balance-statement",
    "per_page": 2,
    "to": 2,
    "total": 171052
  },
  "summary": {
    "total_transactions": { "amount": -1212026.24, "count": 43846 },
    "total_deposit": { "amount": 1500000.00, "count": 52 },
    "total_refund": { "amount": 25960.54, "count": 318 }
  }
}

IIMMPACT API Documentation