Skip to main content

Account Statement

All balance changes in your account will be shown here.

Here's a list explaining the main fields.

Logs Fields

FieldTypeDescription
balanceChangeNumberThe amount transacted in the account.
finalBalanceNumberThe account balance after the transaction is applied.
descriptionStringA human-readable explanation describing the reason for the balance change.

Pagination

FieldTypeDescription
cursorStringA pagination cursor for retrieving the next set of log entries.
createdAfterint64Unix epoch timestamp in milliseconds (UTC) — e.g. 1700000000000. Returns entries with a transaction timestamp on or after this instant (inclusive).
createdBeforeint64Unix epoch timestamp in milliseconds (UTC) — e.g. 1800000000000. Returns entries with a transaction timestamp strictly before this instant (exclusive).
Timestamp format

createdAfter / createdBefore are Unix epoch timestamps in milliseconds, UTC (13 digits for current dates, e.g. 1700000000000) — not seconds. If you have a value in seconds, multiply it by 1000. The lower bound is inclusive and the upper bound is exclusive, and the returned createdAt is an RFC3339 UTC string ending in Z. Convert local date boundaries to UTC before computing the epoch.

Note: Remember that you can pass subAccountId as a parameter for the operation to be for the sub account.

HTTP Get Request

https://api.sandbox.avenia.io:10952/v2/account/statement

cUrl Example:

curl -X GET "https://api.sandbox.avenia.io:10952/v2/account/statement"

Sample JSON Response

{
"logs": [
{
"id": "04d3b592-40cc-44ed-9370-65852842bdd6",
"token": "BRLA",
"balanceChange": "100",
"finalBalance": "9357.170326",
"description": "[DEBIT] Process ticket output: BRLA delivery",
"createdAt": "2025-04-01T23:06:34.440381Z"
},
{
"id": "1412d736-d35f-4c98-9d73-3449f4845fea",
"token": "BRLA",
"balanceChange": "800",
"finalBalance": "9257.170326",
"description": "[DEBIT] Process ticket output: BRLA delivery",
"createdAt": "2025-04-01T23:01:34.335504Z"
}
],
"cursor": "MjgzLTE3NDM1MTU4MjA4MDY="
}

Here you will have all the tracking of your account movements!