Command to get general journal entries' data.
<mbapi> <command><!-- string --></command> <showXMLHeader><!-- boolean --></showXMLHeader> <params> <ledgerAccountID><!-- int --></ledgerAccountID> <parentLedgerAccountID><!-- int --></parentLedgerAccountID> <ledgerAccountNumber><!-- int --></ledgerAccountNumber> <ledgerAccountType><!-- int --></ledgerAccountType> <ledgerAccountName><!-- int --></ledgerAccountName> <ledgerAccountTransKey><!-- int --></ledgerAccountTransKey> </params> </mbapi>
<mbapi> <header> <remoteSessionID><!-- hex --></remoteSessionID> <errorCount><!-- int --></errorCount> <errors> <error> <title><!-- string --></title> <message><!-- string --></message> </error> </errors> <numResults><!-- int --></numResults> <numAffectedRows><!-- int --></numAffectedRows> </header> <results> <ledger_accounts> <account> <ledgerAccountID><!-- int --></ledgerAccountID> <parentLedgerAccountID><!-- int --></parentLedgerAccountID> <ledgerAccountNumber><!-- int --></ledgerAccountNumber> <ledgerAccountType><!-- int --></ledgerAccountType> <ledgerAccountName><!-- string --></ledgerAccountName> <ledgerAccountTransKey><!-- string --></ledgerAccountTransKey> </account> </ledger_accounts> </results> </mbapi>
mbapi
MBAPI request document root.
command
Required. The string GetAccountingLedgerAccounts.
showXMLHeader
Whether to show an XML header in the results.
params
GetAccountingLedgerAccounts parameters.
ledgerAccountID
The ID of the ledger account to fetch. This will always select at most 1 ledger account.
parentLedgerAccountID
The parent ID of the ledger account to fetch. This will always select at most 1 ledger account.
ledgerAccountNumber
The Number of the ledger account to fetch. This will always select at most 1 ledger account.
ledgerAccountType
The type ID of the ledger accounts you want to fetch.
ledgerAccountName
The ledger account API name to search by.
ledgerAccountTransKey
The translation key to search by.
mbapi
MBAPI response document root.
header
Contains result meta data: data about the result itself.
remoteSessionID
A session ID that may be used for authentication instead of a remote access hash.
errorCount
The number of errors that occured.
errors
Contains any errors that occured.
error
Contains information relating to a single error. Occurs header errorCount times.
title
The title of the error.
message
The error message.
numResults
The number of results that have been returned. For Get commands.
numAffectedRows
The number of rows that have been affected. For Set commands.
results
Contains any results.
ledger_accounts
Contains all ban results.
account
Contains all results for a single ban. Occurs header numResults times.
ledgerAccountID
The ID of the ledger account.
parentLedgerAccountID
The ID of the ledger account parent of this account.
ledgerAccountNumber
Ledger account number of this account.
ledgerAccountType
The ledger account type.
ledgerAccountName
The ledger account API name.
ledgerAccountTransKey
The ledger account translation key or display name.