Skip to main content

General Ledger Detail

Overview

The General Ledger Detail endpoint returns detailed general ledger transactions for the requested date range, account, and company. Each record provides transaction information including the transaction type, transaction date, account label, description, debit and credit amounts, reference number, transaction number, and journal status.

This endpoint is commonly used to review account transaction details, track debit and credit entries, and identify the related references and journal status within a specified period.

Request Endpoint

  • Method: POST
  • Path: {{base_url}}/api/reports/general-ledger-detail

Payload Construction and Schema Definition

The request payload is submitted as form-data fields.

Request Body Fields

FieldTypeRequiredDescription
start_datestring (date)YesStart date (YYYY-MM-DD) for the report.
end_datestring (date)YesEnd date (YYYY-MM-DD) for the report.
account_idstringyesAccount filter. Use all for all accounts.
company_idstringyesAccount filter. Use all for all accounts.

Response Body Fields

FieldTypeAlways presentDescription
errorbooleanYesIndicates whether the request failed. false means success.
statusstringYesStatus string. On success the example returns "ok".
messagestringYesHuman-readable message. Often empty on success.
dataarray of objectYes (on success)Array of jurnal-transaction object.

Response data Fields

FieldTypeDescriptionExample
_idstringUnique identifier of the ledger transaction.6a55e557c6e4-...
transaction_typestringType of transaction..EXPENSES_RECEIVING_PAYMENT
transaction_datestringtransaction date (YYYY-MM-DD).2026-07-04 08:00:00
labelstringAccount code and account name.1.1.01.01 - Cash On Hand
descriptionstringDescription of the transaction..Payment Cash - AP235 - Yoga (-,-)
debitnumberDebit amount of the transaction..0
creditnumberCredit amount of the transaction..35444
preference_nostringReference number of the transaction..AP-PAY-329
transaction_nostringTransaction number..PAY/2026-07-04/AP-PAY-329
jurnal_statusstringCurrent journal status of the transaction..POSTED

Expected System Responses

The system responds with HTTP 200 OK.

{
"error": false,
"status": "ok",
"message": "",
"data": [
{
"_id": "6a55e557c6e46bad",
"transaction_type": "EXPENSES_RECEIVING_PAYMENT",
"transaction_date": "2026-07-04 08:00:00",
"label": "1.1.01.01 - Cash On Hand",
"description": "Payment Cash - AP235 - Yoga (-,-)",
"debit": 0,
"credit": 35444,
"reference_no": "AP-PAY-329",
"transaction_no": "PAY/2026-07-04/AP-PAY-329",
"jurnal_status": "POSTED"
},
]
}