Get an account ledger
GET
Returns the ledger for one account: opening balance before from, every posted line in the from–to range, and a running balance. Omit the dates for the full history.
BearerAuthheader
AuthorizationBearer <JWT>id*stringID of the record (UUID).
Format
uuidfrom?stringStart date, YYYY-MM-DD.
Format
dateto?stringEnd date, YYYY-MM-DD.
Format
dateX-TenantID*stringYour merchant's tenant code — the value typed in the Domain field on the iotoms login screen. See Concepts.
OK
*/*- response
status*stringOutcome of the call: SUCCESS when the request was processed; otherwise an error status.
message*stringShort human-readable message describing the outcome, e.g. which record was saved or why the call failed.
data?The account ledger: opening balance, posted lines in the date range and closing balance.
Example Request
curl -X GET 'https://beta.iotoms.com/api/v1/accounting/gl/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/ledger' \ -H 'X-TenantID: your-tenant-code'Example Response
{ "status": "string", "message": "string", "data": { "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9", "accountCode": "string", "accountName": "string", "accountType": "ASSET", "currency": "string", "from": "2019-08-24", "to": "2019-08-24", "openingBalanceMinor": 0, "closingBalanceMinor": 0, "rows": [ { "entryId": "09a8b554-45ca-4bab-a638-265db4b3e828", "lineId": 0, "effectiveAt": "2019-08-24", "postedAt": "2019-08-24T14:15:22Z", "memo": "string", "sourceSystem": "string", "eventType": "string", "direction": "DEBIT", "amountMinor": 0, "runningBalanceMinor": 0 } ] }}