Ledger and cash accounts
LedgerService is the business's books: Cash Accounts, the chart of accounts and the double-entry journal behind them.
Sales, tips, tax and cash drawer activity post to the journal by themselves as registers sync. People add Cash Accounts, record opening balances and move money between accounts here. Journal entries never change; a mistake is undone with a reversing entry.
Reading needs the owner, admin or manager role. Adding or archiving Cash Accounts needs owner or admin.
ListCashAccounts#
Request body
includeArchivedbooleaninclude_archivedResponse
accountsCashAccount[]currencyCodestringcurrency_codecurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/ListCashAccounts \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"accounts": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"name": "Amina Mushi",
"kind": "CASH_ACCOUNT_KIND_BANK",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"notes": "",
"balance": "150000",
"ledgerAccountId": "",
"code": "",
"archived": false,
"system": false,
"institution": "",
"accountNumber": "",
"color": "",
"lowBalance": "150000",
"reconciledThrough": "",
"reconciledBalance": "150000",
"in30d": "0",
"out30d": "0",
"currencyCode": "TZS",
"foreignBalance": "150000",
"valueNow": "0",
"rate": "",
"unmatchedRows": 0
}
],
"currencyCode": "TZS"
}CreateCashAccount#
Request body
namestringkindCashAccountKindAny kind but CASH_DRAWER and CARD_CLEARING, which the system creates.
notesstringopeningBalanceint64 stringopening_balanceMoney already in the account, posted against opening balance equity. Zero or more.
openingAtstringopening_atRFC 3339 time the opening balance is as of. Defaults to now.
institutionstringaccountNumberstringaccount_numbercolorstringlowBalanceint64 stringlow_balancecurrencyCodestringcurrency_codeAnother currency it holds; the opening balance is then in it, at opening_rate (or the latest rate).
openingRatestringopening_rateatRegisterbooleanat_registerAlso add it to the register as a way to pay, named after the account, so payments taken with it land here. Needs owner or admin and a platform that allows the business's own methods.
Response
accountCashAccountcurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/CreateCashAccount \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Amina Mushi",
"kind": "CASH_ACCOUNT_KIND_BANK",
"openingBalance": "150000",
"lowBalance": "150000",
"currencyCode": "TZS"
}'{
"account": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"name": "Amina Mushi",
"kind": "CASH_ACCOUNT_KIND_BANK",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"notes": "",
"balance": "150000",
"ledgerAccountId": "",
"code": "",
"archived": false,
"system": false,
"institution": "",
"accountNumber": "",
"color": "",
"lowBalance": "150000",
"reconciledThrough": "",
"reconciledBalance": "150000",
"in30d": "0",
"out30d": "0",
"currencyCode": "TZS",
"foreignBalance": "150000",
"valueNow": "0",
"rate": "",
"unmatchedRows": 0
}
}UpdateCashAccount#
Request body
idstringnamestringnotesstringarchivedbooleanAn archived account is hidden and takes no new transfers. Archiving needs a zero balance and no checkout method paying into it.
institutionstringaccountNumberstringaccount_numbercolorstringlowBalanceint64 stringlow_balanceatRegisterbooleanoptionalat_registerSet to show the account at the register as a way to pay (adding a method named after it if none pays into it yet) or to hide the methods that pay into it. Unset leaves them as they are.
Response
accountCashAccountcurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/UpdateCashAccount \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"name": "Amina Mushi",
"lowBalance": "150000"
}'{
"account": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"name": "Amina Mushi",
"kind": "CASH_ACCOUNT_KIND_BANK",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"notes": "",
"balance": "150000",
"ledgerAccountId": "",
"code": "",
"archived": false,
"system": false,
"institution": "",
"accountNumber": "",
"color": "",
"lowBalance": "150000",
"reconciledThrough": "",
"reconciledBalance": "150000",
"in30d": "0",
"out30d": "0",
"currencyCode": "TZS",
"foreignBalance": "150000",
"valueNow": "0",
"rate": "",
"unmatchedRows": 0
}
}CreateTransfer#
CreateTransfer moves money from one Cash Account to another, such as a bank deposit of the day's cash.
Request body
idstringClient-chosen UUID, so a retried request records one transfer.
fromAccountIdstringfrom_account_idtoAccountIdstringto_account_idamountint64 stringoccurredAtstringoccurred_atRFC 3339. Defaults to now.
memostringfeeint64 stringWhat the bank or mobile money provider charged for the move, taken from the account the money left on top of amount and booked as a charge.
toAmountint64 stringto_amountamount and fee are in the from account's currency. When the two accounts hold different currencies, to_amount is what arrives, in the to account's.
Response
entryJournalEntryUnset when it waits for approval.
requestTransferRequestcurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/CreateTransfer \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"amount": "150000",
"fee": "150000",
"toAmount": "150000"
}'{
"entry": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"occurredAt": "",
"source": "",
"sourceId": "",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"memo": "",
"reversesId": "",
"reversedById": "",
"reversible": false,
"reference": "",
"createdByName": "Amina Mushi"
},
"request": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"kind": "",
"cashAccountId": "",
"cashAccountName": "Amina Mushi",
"toAccountId": "",
"toAccountName": "Amina Mushi",
"categoryAccountId": "",
"categoryName": "Amina Mushi",
"amount": "150000",
"toAmount": "150000",
"fee": "150000",
"bookAmount": "150000",
"currencyCode": "TZS",
"memo": "",
"reference": "",
"status": "TRANSFER_REQUEST_STATUS_PENDING",
"requestedBy": "",
"requestedByName": "Amina Mushi",
"requestedAt": "",
"decidedByName": "Amina Mushi",
"decidedAt": "",
"decisionNote": "",
"entryId": "",
"recurringId": "",
"canDecide": false
}
}ListAccountActivity#
ListAccountActivity pages through one Cash Account's journal lines.
Request body
cashAccountIdstringcash_account_idpageSizeintegerpage_sizepageTokenstringpage_tokenResponse
curl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/ListAccountActivity \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"pageSize": 50
}'{
"activity": [
{
"entryId": "",
"occurredAt": "",
"source": "",
"sourceId": "",
"memo": "",
"amount": "150000",
"balanceAfter": "0",
"reversible": false
}
],
"nextPageToken": "",
"balance": "150000"
}ListJournalEntries#
Request body
pageSizeintegerpage_sizepageTokenstringpage_tokenResponse
entriesJournalEntry[]nextPageTokenstringnext_page_tokencurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/ListJournalEntries \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"pageSize": 50
}'{
"entries": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"occurredAt": "",
"source": "",
"sourceId": "",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"memo": "",
"reversesId": "",
"reversedById": "",
"reversible": false,
"reference": "",
"createdByName": "Amina Mushi"
}
],
"nextPageToken": ""
}ReverseEntry#
ReverseEntry undoes a transfer or opening balance with an equal and opposite entry. Entries the system posted, such as sales, cannot be reversed by hand.
Request body
entryIdstringentry_idmemostringResponse
entryJournalEntrycurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/ReverseEntry \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"entry": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"occurredAt": "",
"source": "",
"sourceId": "",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"memo": "",
"reversesId": "",
"reversedById": "",
"reversible": false,
"reference": "",
"createdByName": "Amina Mushi"
}
}GetTrialBalance#
GetTrialBalance reports every ledger account over a range of local dates. It is the source of the profit and loss and the balance sheet.
Request body
fromDatestringfrom_dateLocal dates, YYYY-MM-DD, both inclusive.
toDatestringto_datetimeZonestringtime_zoneIANA time zone the dates are in.
locationIdstringlocation_idOnly entries of this location; empty for the whole business.
Response
currencyCodestringcurrency_codecurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/GetTrialBalance \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"fromDate": "2026-12-05",
"toDate": "2026-12-05",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"rows": [
{
"accountId": "",
"code": "",
"name": "Amina Mushi",
"type": "LEDGER_ACCOUNT_TYPE_ASSET",
"opening": "0",
"debits": "0",
"credits": "0",
"closing": "0",
"archived": false
}
],
"currencyCode": "TZS"
}GetProfitAndLoss#
GetProfitAndLoss is the business's profit and loss statement over a range of local dates: revenue, cost of sales, labor and operating expenses from the books, with a comparison period, margins, a trend, and breakdowns by location and department. Labor not yet in a posted pay run is estimated from timecards unless books_only is set. Needs reports.profit.
Request body
fromDatestringfrom_dateLocal dates, YYYY-MM-DD, both inclusive; at most 366 days.
toDatestringto_datetimeZonestringtime_zoneIANA time zone the dates are in.
locationIdstringlocation_idOne location only; empty for the whole business. Costs not tied to a location (payroll, business-wide expenses) are left out of a single location's figures unless allocate_shared is set.
comparePnlComparisonUnspecified means the previous period.
booksOnlybooleanbooks_onlyLeave out labor estimated from timecards, so every figure is in the books.
allocateSharedbooleanallocate_sharedShare costs not tied to a location among locations by net sales.
Response
currencyCodestringcurrency_codeperiodPnlPeriodcomparisonPnlPeriodUnset when no comparison was asked for.
linesPnlLine[]locationsPnlLocation[]departmentsPnlDepartment[]trendPnlTrendPoint[]By day for up to 31 days, by week up to 120 days, else by month.
trendUnitstringtrend_unit"day", "week" or "month".
laborPnlLabornotesstring[]Plain-words notes on what the figures include and leave out.
generatedAtstringgenerated_atcurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/GetProfitAndLoss \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"fromDate": "2026-12-05",
"toDate": "2026-12-05",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"compare": "PNL_COMPARISON_PREVIOUS_PERIOD"
}'{
"currencyCode": "TZS",
"period": {
"fromDate": "2026-12-05",
"toDate": "2026-12-05"
},
"comparison": {
"fromDate": "2026-12-05",
"toDate": "2026-12-05"
},
"lines": [
{
"key": "",
"accountId": "",
"code": "",
"name": "Amina Mushi",
"section": "PNL_SECTION_REVENUE",
"amount": "150000",
"compareAmount": "150000",
"estimated": false,
"systemKey": "",
"percentOfRevenueBp": 0
}
],
"locations": [
{
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"name": "Amina Mushi",
"amounts": {
"key": "0"
}
}
],
"departments": [
{
"departmentId": "",
"name": "Amina Mushi",
"netSales": "0",
"costOfGoods": "0",
"grossProfit": "0",
"grossMarginBp": 0,
"quantity": 1
}
],
"trend": [
{
"key": "",
"revenue": "0",
"costOfSales": "0",
"labor": "0",
"operatingExpenses": "0",
"netProfit": "0"
}
],
"trendUnit": "",
"passThrough": {
"salesTaxCollected": "0",
"tipsCollected": "0",
"taxOnPurchases": "0"
},
"labor": {
"workedMinutes": "0",
"overtimeMinutes": "0",
"daysCoveredByPayroll": 0,
"days": 0,
"unratedPeople": 0
},
"cashFlow": {
"cashIn": "0",
"cashOut": "0",
"netChange": "0",
"closingBalance": "150000"
},
"notes": [
""
],
"generatedAt": ""
}ListProfitAndLossEntries#
ListProfitAndLossEntries is the drill-down behind one profit and loss line: the journal entries that make it up, or for estimated labor, the people whose timecards do.
Request body
fromDatestringfrom_datetoDatestringto_datetimeZonestringtime_zonekeystringA PnlLine.key from GetProfitAndLoss.
locationIdstringlocation_idEmpty for every location; "none" for entries tied to no location.
pageSizeintegerpage_sizepageTokenstringpage_tokenResponse
entriesPnlEntry[]nextPageTokenstringnext_page_tokentotalint64 stringThe line's total over the whole range, for checking the page against.
curl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/ListProfitAndLossEntries \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"fromDate": "2026-12-05",
"toDate": "2026-12-05",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"pageSize": 50
}'{
"entries": [
{
"entryId": "",
"occurredAt": "",
"source": "",
"sourceId": "",
"memo": "",
"amount": "150000",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"locationName": "Amina Mushi",
"teamMemberId": "",
"workedMinutes": "0",
"overtimeMinutes": "0"
}
],
"nextPageToken": "",
"total": "150000"
}GetAccountsOverview#
GetAccountsOverview is the money position across Cash Accounts over a range of local dates: balances by kind, money in and out (leaving out moves between the business's own accounts) by where it came from and went, a daily trend, and each account's flows.
Request body
fromDatestringfrom_dateLocal dates, YYYY-MM-DD, both inclusive; at most 366 days.
toDatestringto_datetimeZonestringtime_zoneResponse
currencyCodestringcurrency_codetotalBalanceint64 stringtotal_balanceAll open Cash Accounts now.
openingint64 stringOver the range.
moneyInint64 stringmoney_inmoneyOutint64 stringmoney_outclosingint64 stringinflowsFlow[]outflowsFlow[]daysDayFlow[]accountsAccountFlow[]lowBalanceAccountIdsstring[]low_balance_account_idsAccounts below their low balance warning now.
previousMoneyInint64 stringprevious_money_inThe same totals for the same number of days just before.
previousMoneyOutint64 stringprevious_money_outcurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/GetAccountsOverview \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"fromDate": "2026-12-05",
"toDate": "2026-12-05"
}'{
"currencyCode": "TZS",
"totalBalance": "150000",
"byKind": [
{
"kind": "CASH_ACCOUNT_KIND_BANK",
"balance": "150000",
"accounts": 1
}
],
"opening": "0",
"moneyIn": "0",
"moneyOut": "0",
"closing": "0",
"inflows": [
{
"source": "",
"amount": "150000",
"count": 1
}
],
"outflows": [
{
"source": "",
"amount": "150000",
"count": 1
}
],
"days": [
{
"date": "2026-12-05",
"moneyIn": "0",
"moneyOut": "0",
"closing": "0"
}
],
"accounts": [
{
"cashAccountId": "",
"opening": "0",
"moneyIn": "0",
"moneyOut": "0",
"transfersIn": "0",
"transfersOut": "0",
"closing": "0"
}
],
"lowBalanceAccountIds": [
""
],
"previousMoneyIn": "0",
"previousMoneyOut": "0"
}GetAccountStatement#
GetAccountStatement is one Cash Account's statement over a range of local dates: opening balance, every line with the balance after it, and the closing balance.
Request body
cashAccountIdstringcash_account_idfromDatestringfrom_datetoDatestringto_datetimeZonestringtime_zoneResponse
accountCashAccountcurrencyCodestringcurrency_codeopeningint64 stringmoneyInint64 stringmoney_inmoneyOutint64 stringmoney_outclosingint64 stringlinesStatementLine[]Oldest first. At most 5000; truncated is set when there were more.
truncatedbooleaninflowsFlow[]outflowsFlow[]daysDayFlow[]curl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/GetAccountStatement \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"fromDate": "2026-12-05",
"toDate": "2026-12-05"
}'{
"account": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"name": "Amina Mushi",
"kind": "CASH_ACCOUNT_KIND_BANK",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"notes": "",
"balance": "150000",
"ledgerAccountId": "",
"code": "",
"archived": false,
"system": false,
"institution": "",
"accountNumber": "",
"color": "",
"lowBalance": "150000",
"reconciledThrough": "",
"reconciledBalance": "150000",
"in30d": "0",
"out30d": "0",
"currencyCode": "TZS",
"foreignBalance": "150000",
"valueNow": "0",
"rate": "",
"unmatchedRows": 0
},
"currencyCode": "TZS",
"opening": "0",
"moneyIn": "0",
"moneyOut": "0",
"closing": "0",
"lines": [
{
"entryId": "",
"lineNo": 0,
"occurredAt": "",
"source": "",
"sourceId": "",
"memo": "",
"amount": "150000",
"balanceAfter": "0",
"reversible": false,
"cleared": false,
"counterpart": "",
"matched": false,
"bookAmount": "150000"
}
],
"truncated": false,
"inflows": [
{
"source": "",
"amount": "150000",
"count": 1
}
],
"outflows": [
{
"source": "",
"amount": "150000",
"count": 1
}
],
"days": [
{
"date": "2026-12-05",
"moneyIn": "0",
"moneyOut": "0",
"closing": "0"
}
]
}RecordAccountTransaction#
RecordAccountTransaction is a deposit into or withdrawal from one Cash Account that is not a sale, expense or transfer: the owner putting money in or taking it out, a loan, interest, bank or mobile money charges. The other side is a ledger account from ListCategoryAccounts.
Request body
idstringClient-chosen UUID, so a retried request records once.
cashAccountIdstringcash_account_iddirectionTransactionDirectionamountint64 stringcategoryAccountIdstringcategory_account_idThe ledger account on the other side, from ListCategoryAccounts.
occurredAtstringoccurred_atRFC 3339. Defaults to now.
memostringreferencestringSlip, transaction or cheque number.
ratestringFor an account in another currency: amount is in it, at this rate (units of the business's currency per unit). Empty uses the latest.
Response
entryJournalEntryUnset when it waits for approval.
requestTransferRequestcurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/RecordAccountTransaction \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"direction": "TRANSACTION_DIRECTION_DEPOSIT",
"amount": "150000"
}'{
"entry": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"occurredAt": "",
"source": "",
"sourceId": "",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"memo": "",
"reversesId": "",
"reversedById": "",
"reversible": false,
"reference": "",
"createdByName": "Amina Mushi"
},
"request": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"kind": "",
"cashAccountId": "",
"cashAccountName": "Amina Mushi",
"toAccountId": "",
"toAccountName": "Amina Mushi",
"categoryAccountId": "",
"categoryName": "Amina Mushi",
"amount": "150000",
"toAmount": "150000",
"fee": "150000",
"bookAmount": "150000",
"currencyCode": "TZS",
"memo": "",
"reference": "",
"status": "TRANSFER_REQUEST_STATUS_PENDING",
"requestedBy": "",
"requestedByName": "Amina Mushi",
"requestedAt": "",
"decidedByName": "Amina Mushi",
"decidedAt": "",
"decisionNote": "",
"entryId": "",
"recurringId": "",
"canDecide": false
}
}ListCategoryAccounts#
ListCategoryAccounts lists the ledger accounts a deposit or withdrawal can be booked against.
Request body
No fields: send {}.
Response
accountsCategoryAccount[]curl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/ListCategoryAccounts \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"accounts": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"code": "",
"name": "Amina Mushi",
"type": "LEDGER_ACCOUNT_TYPE_ASSET",
"forDeposit": false,
"forWithdrawal": false,
"systemKey": ""
}
]
}ListPaymentMethodAccounts#
ListPaymentMethodAccounts lists the business's checkout methods and the Cash Account each pays into.
Request body
No fields: send {}.
Response
methodsPaymentMethodAccount[]customMethodsAllowedbooleancustom_methods_allowedWhether the business may add methods of its own, which at_register needs.
curl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/ListPaymentMethodAccounts \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"methods": [
{
"cashAccountId": ""
}
],
"customMethodsAllowed": false
}SetPaymentMethodAccount#
SetPaymentMethodAccount makes a checkout method pay into a Cash Account from now on. Payments already taken stay where they were posted. Needs owner or admin.
Request body
methodIdstringmethod_idcashAccountIdstringcash_account_idResponse
methodPaymentMethodAccountcurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/SetPaymentMethodAccount \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"method": {
"cashAccountId": ""
}
}GetReconciliation#
GetReconciliation is the worksheet for reconciling a Cash Account with its statement up to a date: the last reconciliation and the lines not yet cleared.
Request body
cashAccountIdstringcash_account_idstatementDatestringstatement_dateYYYY-MM-DD: the statement's end date. Lines up to its end count.
timeZonestringtime_zoneResponse
accountCashAccountlastReconciliationThe latest reconciliation; unset for the first one, which starts from 0.
linesStatementLine[]Lines up to the statement date not cleared yet, oldest first.
bookBalanceint64 stringbook_balanceThe account's balance in the books at the end of the statement date.
curl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/GetReconciliation \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"statementDate": "2026-12-05"
}'{
"account": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"name": "Amina Mushi",
"kind": "CASH_ACCOUNT_KIND_BANK",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"notes": "",
"balance": "150000",
"ledgerAccountId": "",
"code": "",
"archived": false,
"system": false,
"institution": "",
"accountNumber": "",
"color": "",
"lowBalance": "150000",
"reconciledThrough": "",
"reconciledBalance": "150000",
"in30d": "0",
"out30d": "0",
"currencyCode": "TZS",
"foreignBalance": "150000",
"valueNow": "0",
"rate": "",
"unmatchedRows": 0
},
"last": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"cashAccountId": "",
"statementDate": "2026-12-05",
"statementBalance": "150000",
"clearedBalance": "150000",
"bookBalance": "150000",
"adjustment": "0",
"linesCleared": 0,
"note": "",
"createdAt": "",
"createdByName": "Amina Mushi"
},
"lines": [
{
"entryId": "",
"lineNo": 0,
"occurredAt": "",
"source": "",
"sourceId": "",
"memo": "",
"amount": "150000",
"balanceAfter": "0",
"reversible": false,
"cleared": false,
"counterpart": "",
"matched": false,
"bookAmount": "150000"
}
],
"bookBalance": "150000"
}CompleteReconciliation#
CompleteReconciliation clears the lines ticked off and posts any difference left. Needs owner or admin.
Request body
idstringClient-chosen UUID.
cashAccountIdstringcash_account_idstatementDatestringstatement_datetimeZonestringtime_zonestatementBalanceint64 stringstatement_balanceThe closing balance printed on the statement.
clearedLineRef[]notestringpostDifferencebooleanpost_differencePost what is left between the statement and the cleared balance to "Reconciliation differences". Without it the cleared lines must match the statement exactly.
Response
reconciliationReconciliationcurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/CompleteReconciliation \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"statementDate": "2026-12-05",
"statementBalance": "150000"
}'{
"reconciliation": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"cashAccountId": "",
"statementDate": "2026-12-05",
"statementBalance": "150000",
"clearedBalance": "150000",
"bookBalance": "150000",
"adjustment": "0",
"linesCleared": 0,
"note": "",
"createdAt": "",
"createdByName": "Amina Mushi"
}
}ListReconciliations#
Request body
cashAccountIdstringcash_account_idResponse
reconciliationsReconciliation[]curl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/ListReconciliations \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"reconciliations": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"cashAccountId": "",
"statementDate": "2026-12-05",
"statementBalance": "150000",
"clearedBalance": "150000",
"bookBalance": "150000",
"adjustment": "0",
"linesCleared": 0,
"note": "",
"createdAt": "",
"createdByName": "Amina Mushi"
}
]
}ListExchangeRates#
Exchange rates for accounts in other currencies: units of the business's currency per unit of another, from a date on.
Request body
No fields: send {}.
Response
baseCurrencystringbase_currencyratesExchangeRate[]Newest first.
curl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/ListExchangeRates \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"baseCurrency": "TZS",
"rates": [
{
"currencyCode": "TZS",
"asOf": "",
"rate": ""
}
]
}SetExchangeRate#
Request body
currencyCodestringcurrency_codeasOfstringas_ofDefaults to today.
ratestringResponse
rateExchangeRatecurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/SetExchangeRate \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"currencyCode": "TZS"
}'{
"rate": {
"currencyCode": "TZS",
"asOf": "",
"rate": ""
}
}RevalueAccount#
RevalueAccount books the gain or loss on an account in another currency at the latest rate, so its book value matches what it is worth. Needs owner or admin.
Request body
cashAccountIdstringcash_account_idoccurredAtstringoccurred_atRFC 3339. Defaults to now.
Response
entryJournalEntryUnset when the book value already matched.
accountCashAccountcurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/RevalueAccount \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"entry": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"occurredAt": "",
"source": "",
"sourceId": "",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"memo": "",
"reversesId": "",
"reversedById": "",
"reversible": false,
"reference": "",
"createdByName": "Amina Mushi"
},
"account": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"name": "Amina Mushi",
"kind": "CASH_ACCOUNT_KIND_BANK",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"notes": "",
"balance": "150000",
"ledgerAccountId": "",
"code": "",
"archived": false,
"system": false,
"institution": "",
"accountNumber": "",
"color": "",
"lowBalance": "150000",
"reconciledThrough": "",
"reconciledBalance": "150000",
"in30d": "0",
"out30d": "0",
"currencyCode": "TZS",
"foreignBalance": "150000",
"valueNow": "0",
"rate": "",
"unmatchedRows": 0
}
}GetAccountSettings#
Request body
No fields: send {}.
Response
settingsAccountSettingscurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/GetAccountSettings \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"settings": {
"approvalThreshold": "0",
"approvalsEnabled": false
}
}UpdateAccountSettings#
UpdateAccountSettings needs owner or admin.
Request body
settingsAccountSettingsResponse
settingsAccountSettingscurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/UpdateAccountSettings \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"settings": {
"approvalThreshold": "0",
"approvalsEnabled": false
}
}ListTransferRequests#
Transfers and withdrawals at or over the approval threshold, by anyone but an owner, wait here for an owner or admin other than who asked.
Request body
statusTransferRequestStatusUnspecified lists all, newest first.
Response
requestsTransferRequest[]pendingintegercurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/ListTransferRequests \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status": "TRANSFER_REQUEST_STATUS_PENDING"
}'{
"requests": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"kind": "",
"cashAccountId": "",
"cashAccountName": "Amina Mushi",
"toAccountId": "",
"toAccountName": "Amina Mushi",
"categoryAccountId": "",
"categoryName": "Amina Mushi",
"amount": "150000",
"toAmount": "150000",
"fee": "150000",
"bookAmount": "150000",
"currencyCode": "TZS",
"memo": "",
"reference": "",
"status": "TRANSFER_REQUEST_STATUS_PENDING",
"requestedBy": "",
"requestedByName": "Amina Mushi",
"requestedAt": "",
"decidedByName": "Amina Mushi",
"decidedAt": "",
"decisionNote": "",
"entryId": "",
"recurringId": "",
"canDecide": false
}
],
"pending": 0
}DecideTransferRequest#
Request body
idstringapprovebooleannotestringResponse
requestTransferRequestcurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/DecideTransferRequest \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"request": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"kind": "",
"cashAccountId": "",
"cashAccountName": "Amina Mushi",
"toAccountId": "",
"toAccountName": "Amina Mushi",
"categoryAccountId": "",
"categoryName": "Amina Mushi",
"amount": "150000",
"toAmount": "150000",
"fee": "150000",
"bookAmount": "150000",
"currencyCode": "TZS",
"memo": "",
"reference": "",
"status": "TRANSFER_REQUEST_STATUS_PENDING",
"requestedBy": "",
"requestedByName": "Amina Mushi",
"requestedAt": "",
"decidedByName": "Amina Mushi",
"decidedAt": "",
"decisionNote": "",
"entryId": "",
"recurringId": "",
"canDecide": false
}
}CancelTransferRequest#
CancelTransferRequest withdraws one's own pending request.
Request body
idstringResponse
requestTransferRequestcurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/CancelTransferRequest \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"request": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"kind": "",
"cashAccountId": "",
"cashAccountName": "Amina Mushi",
"toAccountId": "",
"toAccountName": "Amina Mushi",
"categoryAccountId": "",
"categoryName": "Amina Mushi",
"amount": "150000",
"toAmount": "150000",
"fee": "150000",
"bookAmount": "150000",
"currencyCode": "TZS",
"memo": "",
"reference": "",
"status": "TRANSFER_REQUEST_STATUS_PENDING",
"requestedBy": "",
"requestedByName": "Amina Mushi",
"requestedAt": "",
"decidedByName": "Amina Mushi",
"decidedAt": "",
"decisionNote": "",
"entryId": "",
"recurringId": "",
"canDecide": false
}
}ListRecurringTransactions#
Recurring transfers, deposits and withdrawals, posted on their dates.
Request body
No fields: send {}.
Response
recurringRecurringTransaction[]curl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/ListRecurringTransactions \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"recurring": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"kind": "",
"cashAccountId": "",
"toAccountId": "",
"categoryAccountId": "",
"amount": "150000",
"toAmount": "150000",
"fee": "150000",
"memo": "",
"frequency": "RECURRING_FREQUENCY_DAILY",
"every": 0,
"nextDate": "2026-12-05",
"endDate": "2026-12-05",
"paused": false,
"lastDate": "2026-12-05",
"runs": 0,
"lastError": "",
"cashAccountName": "Amina Mushi",
"toAccountName": "Amina Mushi",
"categoryName": "Amina Mushi"
}
]
}SaveRecurringTransaction#
Request body
recurringRecurringTransactionClient-chosen UUID; saving it again updates it.
Response
recurringRecurringTransactioncurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/SaveRecurringTransaction \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"recurring": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"amount": "150000",
"toAmount": "150000",
"fee": "150000",
"frequency": "RECURRING_FREQUENCY_DAILY",
"nextDate": "2026-12-05",
"endDate": "2026-12-05",
"lastDate": "2026-12-05",
"cashAccountName": "Amina Mushi",
"toAccountName": "Amina Mushi",
"categoryName": "Amina Mushi"
}
}'{
"recurring": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"kind": "",
"cashAccountId": "",
"toAccountId": "",
"categoryAccountId": "",
"amount": "150000",
"toAmount": "150000",
"fee": "150000",
"memo": "",
"frequency": "RECURRING_FREQUENCY_DAILY",
"every": 0,
"nextDate": "2026-12-05",
"endDate": "2026-12-05",
"paused": false,
"lastDate": "2026-12-05",
"runs": 0,
"lastError": "",
"cashAccountName": "Amina Mushi",
"toAccountName": "Amina Mushi",
"categoryName": "Amina Mushi"
}
}DeleteRecurringTransaction#
Request body
idstringResponse
No fields: send {}.
curl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/DeleteRecurringTransaction \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{}ImportStatement#
ImportStatement adds a bank or mobile money statement's lines to an account and matches each to the books where it can. Lines seen before (same external id) are skipped.
Request body
idstringClient-chosen UUID.
cashAccountIdstringcash_account_idfileNamestringfile_nametimeZonestringtime_zoneThe business's time zone, for dates without a time.
rowsImportRow[]Response
curl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/ImportStatement \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"fileName": "Amina Mushi",
"rows": [
{
"amount": "150000",
"balance": "150000"
}
]
}'{
"added": 0,
"matched": 0,
"skipped": 0,
"rows": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"cashAccountId": "",
"occurredAt": "",
"description": "",
"reference": "",
"amount": "150000",
"balance": "150000",
"hasBalance": false,
"externalId": "",
"status": "STATEMENT_ROW_STATUS_UNMATCHED",
"entryId": "",
"lineNo": 0,
"matchedBy": "",
"origin": "",
"matchMemo": "",
"matchOccurredAt": ""
}
]
}ListStatementRows#
ListStatementRows lists an account's imported and fed statement lines.
Request body
cashAccountIdstringcash_account_idstatusStatementRowStatusUnspecified lists all.
Response
curl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/ListStatementRows \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status": "STATEMENT_ROW_STATUS_UNMATCHED"
}'{
"rows": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"cashAccountId": "",
"occurredAt": "",
"description": "",
"reference": "",
"amount": "150000",
"balance": "150000",
"hasBalance": false,
"externalId": "",
"status": "STATEMENT_ROW_STATUS_UNMATCHED",
"entryId": "",
"lineNo": 0,
"matchedBy": "",
"origin": "",
"matchMemo": "",
"matchOccurredAt": ""
}
],
"unmatched": 0,
"matched": 0
}ResolveStatementRow#
ResolveStatementRow matches a line to a line in the books, unmatches it, ignores it, or records it as a deposit or withdrawal.
Request body
idstringactionStatementRowActionentryIdstringentry_idlineNointegerline_nocategoryAccountIdstringcategory_account_idmemostringResponse
rowStatementRowcurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/ResolveStatementRow \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"action": "STATEMENT_ROW_ACTION_MATCH"
}'{
"row": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"cashAccountId": "",
"occurredAt": "",
"description": "",
"reference": "",
"amount": "150000",
"balance": "150000",
"hasBalance": false,
"externalId": "",
"status": "STATEMENT_ROW_STATUS_UNMATCHED",
"entryId": "",
"lineNo": 0,
"matchedBy": "",
"origin": "",
"matchMemo": "",
"matchOccurredAt": ""
}
}ListAccountFeeds#
Live feeds: a webhook per account that a bank, M-Pesa or an aggregator pushes transactions to. Needs owner or admin.
Request body
cashAccountIdstringcash_account_idResponse
feedsAccountFeed[]curl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/ListAccountFeeds \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"feeds": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"cashAccountId": "",
"provider": "",
"name": "Amina Mushi",
"active": false,
"webhookUrl": "",
"secret": "",
"lastEventAt": "",
"events": 0,
"createdAt": ""
}
]
}CreateAccountFeed#
Request body
cashAccountIdstringcash_account_idproviderstringnamestringResponse
feedAccountFeedcurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/CreateAccountFeed \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Amina Mushi"
}'{
"feed": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"cashAccountId": "",
"provider": "",
"name": "Amina Mushi",
"active": false,
"webhookUrl": "",
"secret": "",
"lastEventAt": "",
"events": 0,
"createdAt": ""
}
}UpdateAccountFeed#
Request body
idstringactivebooleanrotateSecretbooleanrotate_secretIssue a new secret; the old one stops working.
Response
feedAccountFeedcurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/UpdateAccountFeed \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{
"feed": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"cashAccountId": "",
"provider": "",
"name": "Amina Mushi",
"active": false,
"webhookUrl": "",
"secret": "",
"lastEventAt": "",
"events": 0,
"createdAt": ""
}
}DeleteAccountFeed#
Request body
idstringResponse
No fields: send {}.
curl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/DeleteAccountFeed \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'{}ListBudgets#
Monthly budgets for income and expense accounts, against what happened.
Request body
monthstringYYYY-MM. Defaults to this month.
timeZonestringtime_zoneResponse
monthstringbudgetsBudget[]Every income and expense account, budgeted or not.
elapsednumberOf the month that has gone so far, 0 to 1.
curl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/ListBudgets \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"month": "",
"budgets": [
{
"ledgerAccountId": "",
"code": "",
"name": "Amina Mushi",
"type": "LEDGER_ACCOUNT_TYPE_ASSET",
"amount": "150000",
"actual": "0",
"previous": "0"
}
],
"elapsed": 0
}SetBudget#
Request body
ledgerAccountIdstringledger_account_idamountint64 string0 removes it.
Response
budgetBudgetcurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/SetBudget \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"amount": "150000"
}'{
"budget": {
"ledgerAccountId": "",
"code": "",
"name": "Amina Mushi",
"type": "LEDGER_ACCOUNT_TYPE_ASSET",
"amount": "150000",
"actual": "0",
"previous": "0"
}
}GetCashForecast#
GetCashForecast projects the total across accounts day by day: the usual takings and spending by weekday, invoices due, recurring transactions and pay runs.
Request body
daysinteger7 to 180; defaults to 30.
timeZonestringtime_zoneResponse
currencyCodestringcurrency_codeopeningint64 stringdaysForecastDay[]itemsForecastItem[]The scheduled things in it, by date. The usual takings and spending are summed per weekday, not listed.
lowestint64 stringThe lowest closing and its day.
lowestDatestringlowest_dateusualInint64 stringusual_inAverage money in and out a day over the last eight weeks.
usualOutint64 stringusual_outcurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/GetCashForecast \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"currencyCode": "TZS",
"opening": "0",
"days": [
{
"date": "2026-12-05",
"moneyIn": "0",
"moneyOut": "0",
"closing": "0"
}
],
"items": [
{
"date": "2026-12-05",
"kind": "",
"description": "",
"amount": "150000",
"refId": ""
}
],
"lowest": "0",
"lowestDate": "2026-12-05",
"usualIn": "0",
"usualOut": "0"
}ListLedgerAccounts#
ListLedgerAccounts is the chart of accounts with each account's balance at the end of a local date.
Request body
asOfDatestringas_of_dateLocal date, YYYY-MM-DD; empty for today.
timeZonestringtime_zoneincludeArchivedbooleaninclude_archivedResponse
accountsLedgerAccount[]currencyCodestringcurrency_codecurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/ListLedgerAccounts \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"asOfDate": "2026-12-05"
}'{
"accounts": [
{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"code": "",
"name": "Amina Mushi",
"type": "LEDGER_ACCOUNT_TYPE_ASSET",
"group": "ACCOUNT_GROUP_CURRENT",
"description": "",
"systemKey": "",
"archived": false,
"balance": "150000",
"cashAccountId": "",
"used": false,
"editable": false
}
],
"currencyCode": "TZS"
}CreateLedgerAccount#
CreateLedgerAccount adds an account to the chart. Needs finance.admin.
Request body
codestring4 to 6 digits, in the type's range: 1 assets, 2 liabilities, 3 equity, 4 income, 5 to 9 costs.
namestringgroupAccountGroupdescriptionstringResponse
accountLedgerAccountcurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/CreateLedgerAccount \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Amina Mushi",
"type": "LEDGER_ACCOUNT_TYPE_ASSET",
"group": "ACCOUNT_GROUP_CURRENT"
}'{
"account": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"code": "",
"name": "Amina Mushi",
"type": "LEDGER_ACCOUNT_TYPE_ASSET",
"group": "ACCOUNT_GROUP_CURRENT",
"description": "",
"systemKey": "",
"archived": false,
"balance": "150000",
"cashAccountId": "",
"used": false,
"editable": false
}
}UpdateLedgerAccount#
UpdateLedgerAccount changes an account's code, name, description and group, or archives it. Accounts the system posts to and those behind Cash Accounts keep their code and name and stay open. An account with a balance cannot be archived. Needs finance.admin.
Request body
Response
accountLedgerAccountcurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/UpdateLedgerAccount \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"name": "Amina Mushi",
"group": "ACCOUNT_GROUP_CURRENT"
}'{
"account": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"code": "",
"name": "Amina Mushi",
"type": "LEDGER_ACCOUNT_TYPE_ASSET",
"group": "ACCOUNT_GROUP_CURRENT",
"description": "",
"systemKey": "",
"archived": false,
"balance": "150000",
"cashAccountId": "",
"used": false,
"editable": false
}
}CreateJournalEntry#
CreateJournalEntry posts a manual journal entry: two or more lines that balance, dated after the lock date. Needs finance.admin.
Request body
idstringClient-chosen UUID, so a retried request posts once.
datestringLocal date, YYYY-MM-DD.
timeZonestringtime_zonememostringreferencestringlinesManualJournalLine[]locationIdstringlocation_idResponse
entryJournalEntrycurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/CreateJournalEntry \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"date": "2026-12-05",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70"
}'{
"entry": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"occurredAt": "",
"source": "",
"sourceId": "",
"locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
"memo": "",
"reversesId": "",
"reversedById": "",
"reversible": false,
"reference": "",
"createdByName": "Amina Mushi"
}
}GetBooksSettings#
Lock date and tax registration.
Request body
No fields: send {}.
Response
settingsBooksSettingscurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/GetBooksSettings \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"settings": {
"lockDate": "2026-12-05",
"lockDateSetBy": "2026-12-05",
"lockDateSetAt": "2026-12-05",
"vatRegistered": false,
"tin": "",
"vrn": ""
}
}SetLockDate#
SetLockDate closes the books up to and including a date; empty opens them. Needs finance.admin.
Request body
lockDatestringlock_dateResponse
settingsBooksSettingscurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/SetLockDate \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"lockDate": "2026-12-05"
}'{
"settings": {
"lockDate": "2026-12-05",
"lockDateSetBy": "2026-12-05",
"lockDateSetAt": "2026-12-05",
"vatRegistered": false,
"tin": "",
"vrn": ""
}
}SetTaxRegistration#
SetTaxRegistration records whether the business is VAT registered and its TIN and VRN. Needs finance.admin.
Request body
vatRegisteredbooleanvat_registeredtinstringvrnstringResponse
settingsBooksSettingscurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/SetTaxRegistration \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'{
"settings": {
"lockDate": "2026-12-05",
"lockDateSetBy": "2026-12-05",
"lockDateSetAt": "2026-12-05",
"vatRegistered": false,
"tin": "",
"vrn": ""
}
}GetBooksOverview#
GetBooksOverview is the headline position for a period with the prior period beside it, and the books' health.
Request body
fromDatestringfrom_datetoDatestringto_datetimeZonestringtime_zoneResponse
currencyCodestringcurrency_codecashOverviewFigureBalances at the end of each period.
receivableOverviewFigurepayableOverviewFigureVAT charged less VAT paid, owed to the tax authority.
revenueOverviewFigureFlows over each period.
expensesOverviewFigurecurrentRatioint64 stringcurrent_ratioCurrent assets over current liabilities, times 100.
outOfBalanceint64 stringout_of_balanceHealth.
settingsBooksSettingslatePostsintegerlate_postsoverdueInvoicesintegeroverdue_invoicesoverdueAmountint64 stringoverdue_amountmanualEntriesintegermanual_entriespreviousFromstringprevious_frompreviousTostringprevious_tocurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/GetBooksOverview \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"fromDate": "2026-12-05",
"toDate": "2026-12-05"
}'{
"currencyCode": "TZS",
"cash": {
"current": "0",
"previous": "0"
},
"receivable": {
"current": "0",
"previous": "0"
},
"payable": {
"current": "0",
"previous": "0"
},
"vatOwed": {
"current": "0",
"previous": "0"
},
"revenue": {
"current": "0",
"previous": "0"
},
"expenses": {
"current": "0",
"previous": "0"
},
"netProfit": {
"current": "0",
"previous": "0"
},
"currentRatio": "0",
"outOfBalance": "150000",
"settings": {
"lockDate": "2026-12-05",
"lockDateSetBy": "2026-12-05",
"lockDateSetAt": "2026-12-05",
"vatRegistered": false,
"tin": "",
"vrn": ""
},
"latePosts": 0,
"overdueInvoices": 0,
"overdueAmount": "150000",
"staleAccounts": [
{
"cashAccountId": "",
"name": "Amina Mushi",
"lastReconciled": ""
}
],
"manualEntries": 0,
"previousFrom": "",
"previousTo": ""
}GetGeneralLedger#
GetGeneralLedger is one ledger account's lines over a period with the running balance.
Request body
accountIdstringaccount_idfromDatestringfrom_datetoDatestringto_datetimeZonestringtime_zoneResponse
accountLedgerAccountopeningint64 stringdebitsint64 stringcreditsint64 stringclosingint64 stringlinesGeneralLedgerLine[]truncatedbooleanMore lines than shown; narrow the dates.
currencyCodestringcurrency_codecurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/GetGeneralLedger \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"fromDate": "2026-12-05",
"toDate": "2026-12-05"
}'{
"account": {
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"code": "",
"name": "Amina Mushi",
"type": "LEDGER_ACCOUNT_TYPE_ASSET",
"group": "ACCOUNT_GROUP_CURRENT",
"description": "",
"systemKey": "",
"archived": false,
"balance": "150000",
"cashAccountId": "",
"used": false,
"editable": false
},
"opening": "0",
"debits": "0",
"credits": "0",
"closing": "0",
"lines": [
{
"entryId": "",
"lineNo": 0,
"occurredAt": "",
"source": "",
"sourceId": "",
"memo": "",
"reference": "",
"amount": "150000",
"balanceAfter": "0",
"reversed": false
}
],
"truncated": false,
"currencyCode": "TZS"
}GetCashFlowStatement#
GetCashFlowStatement is the statement of cash flows over a period, by the indirect method.
Request body
fromDatestringfrom_datetoDatestringto_datetimeZonestringtime_zoneResponse
currencyCodestringcurrency_codenetProfitint64 stringnet_profitoperatingCashFlowSectioninvestingCashFlowSectionfinancingCashFlowSectionnetChangeint64 stringnet_changeopeningCashint64 stringopening_cashclosingCashint64 stringclosing_cashcurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/GetCashFlowStatement \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"fromDate": "2026-12-05",
"toDate": "2026-12-05"
}'{
"currencyCode": "TZS",
"netProfit": "0",
"operating": {
"title": "",
"total": "150000"
},
"investing": {
"title": "",
"total": "150000"
},
"financing": {
"title": "",
"total": "150000"
},
"netChange": "0",
"openingCash": "0",
"closingCash": "0"
}GetAgeing#
GetAgeing is what customers owe (receivables) or what is owed to suppliers (payables), by how long past due.
Request body
kindAgeingKindasOfDatestringas_of_dateLocal date; empty for today. Payables are always as of today.
timeZonestringtime_zoneResponse
curl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/GetAgeing \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"kind": "AGEING_KIND_RECEIVABLE",
"asOfDate": "2026-12-05"
}'{
"currencyCode": "TZS",
"rows": [
{
"partyId": "",
"partyName": "Amina Mushi"
}
],
"totals": {
"current": "0",
"days130": "0",
"days3160": "0",
"days6190": "0",
"over90": "0",
"total": "150000"
},
"asOfDate": "2026-12-05"
}GetCustomerStatement#
GetCustomerStatement is one customer's invoices and payments over a period with the balance after each.
Request body
customerIdstringcustomer_idfromDatestringfrom_datetoDatestringto_datetimeZonestringtime_zoneResponse
customerNamestringcustomer_namecustomerEmailstringcustomer_emailcurrencyCodestringcurrency_codeopeningint64 stringclosingint64 stringageingAgeingBucketscurl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/GetCustomerStatement \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"fromDate": "2026-12-05",
"toDate": "2026-12-05"
}'{
"customerName": "Amina Mushi",
"customerEmail": "amina@example.co.tz",
"currencyCode": "TZS",
"opening": "0",
"lines": [
{
"date": "2026-12-05",
"kind": "",
"number": "",
"description": "",
"amount": "150000",
"balanceAfter": "0"
}
],
"closing": "0",
"ageing": {
"current": "0",
"days130": "0",
"days3160": "0",
"days6190": "0",
"over90": "0",
"total": "150000"
}
}GetVatReturn#
GetVatReturn prepares the VAT return for a period: output VAT, input VAT, what is payable, and the purchases schedule.
Request body
fromDatestringfrom_datetoDatestringto_datetimeZonestringtime_zoneResponse
currencyCodestringcurrency_codesettingsBooksSettingssalesint64 stringFrom the books: sales and other income net of VAT.
standardRatedSalesint64 stringstandard_rated_salesSales the VAT was charged on, at the standard rate (18%), and the rest (zero-rated, exempt or below the rate).
otherSalesint64 stringother_salesoutputVatint64 stringoutput_vatinputVatint64 stringinput_vatVAT paid on purchases, from the books.
netVatint64 stringnet_vatoutput - input; negative is carried forward.
purchasesVatPurchase[]unscheduledInputVatint64 stringunscheduled_input_vatInput VAT in the books that is not on the purchases schedule.
standardRateBpintegerstandard_rate_bpBasis points: 1800 for 18%.
curl https://api.buziin.tech/holygrail.ledger.v1.LedgerService/GetVatReturn \
-H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"fromDate": "2026-12-05",
"toDate": "2026-12-05"
}'{
"currencyCode": "TZS",
"settings": {
"lockDate": "2026-12-05",
"lockDateSetBy": "2026-12-05",
"lockDateSetAt": "2026-12-05",
"vatRegistered": false,
"tin": "",
"vrn": ""
},
"sales": "0",
"standardRatedSales": "0",
"otherSales": "0",
"outputVat": "0",
"inputVat": "0",
"netVat": "0",
"purchases": [
{
"kind": "",
"id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
"date": "2026-12-05",
"supplier": "",
"tin": "",
"vrn": "",
"number": "",
"receiptNumber": "",
"net": "0",
"vat": "0",
"total": "150000"
}
],
"unscheduledInputVat": "0",
"standardRateBp": 0
}Types
The messages and enums these methods use. Field names are lowerCamelCase in JSON; the snake_case names work too. Enum values are sent as their names.
ListCashAccountsRequest
holygrail.ledger.v1.ListCashAccountsRequest
includeArchivedbooleaninclude_archivedListCashAccountsResponse
holygrail.ledger.v1.ListCashAccountsResponse
accountsCashAccount[]currencyCodestringcurrency_codeCreateCashAccountRequest
holygrail.ledger.v1.CreateCashAccountRequest
namestringkindCashAccountKindAny kind but CASH_DRAWER and CARD_CLEARING, which the system creates.
notesstringopeningBalanceint64 stringopening_balanceMoney already in the account, posted against opening balance equity. Zero or more.
openingAtstringopening_atRFC 3339 time the opening balance is as of. Defaults to now.
institutionstringaccountNumberstringaccount_numbercolorstringlowBalanceint64 stringlow_balancecurrencyCodestringcurrency_codeAnother currency it holds; the opening balance is then in it, at opening_rate (or the latest rate).
openingRatestringopening_rateatRegisterbooleanat_registerAlso add it to the register as a way to pay, named after the account, so payments taken with it land here. Needs owner or admin and a platform that allows the business's own methods.
UpdateCashAccountRequest
holygrail.ledger.v1.UpdateCashAccountRequest
idstringnamestringnotesstringarchivedbooleanAn archived account is hidden and takes no new transfers. Archiving needs a zero balance and no checkout method paying into it.
institutionstringaccountNumberstringaccount_numbercolorstringlowBalanceint64 stringlow_balanceatRegisterbooleanoptionalat_registerSet to show the account at the register as a way to pay (adding a method named after it if none pays into it yet) or to hide the methods that pay into it. Unset leaves them as they are.
CreateTransferRequest
holygrail.ledger.v1.CreateTransferRequest
idstringClient-chosen UUID, so a retried request records one transfer.
fromAccountIdstringfrom_account_idtoAccountIdstringto_account_idamountint64 stringoccurredAtstringoccurred_atRFC 3339. Defaults to now.
memostringfeeint64 stringWhat the bank or mobile money provider charged for the move, taken from the account the money left on top of amount and booked as a charge.
toAmountint64 stringto_amountamount and fee are in the from account's currency. When the two accounts hold different currencies, to_amount is what arrives, in the to account's.
CreateTransferResponse
holygrail.ledger.v1.CreateTransferResponse
entryJournalEntryUnset when it waits for approval.
requestTransferRequestListAccountActivityRequest
holygrail.ledger.v1.ListAccountActivityRequest
cashAccountIdstringcash_account_idpageSizeintegerpage_sizepageTokenstringpage_tokenListAccountActivityResponse
holygrail.ledger.v1.ListAccountActivityResponse
activityAccountActivity[]nextPageTokenstringnext_page_tokenbalanceint64 stringListJournalEntriesRequest
holygrail.ledger.v1.ListJournalEntriesRequest
pageSizeintegerpage_sizepageTokenstringpage_tokenListJournalEntriesResponse
holygrail.ledger.v1.ListJournalEntriesResponse
entriesJournalEntry[]nextPageTokenstringnext_page_tokenReverseEntryRequest
holygrail.ledger.v1.ReverseEntryRequest
entryIdstringentry_idmemostringGetTrialBalanceRequest
holygrail.ledger.v1.GetTrialBalanceRequest
fromDatestringfrom_dateLocal dates, YYYY-MM-DD, both inclusive.
toDatestringto_datetimeZonestringtime_zoneIANA time zone the dates are in.
locationIdstringlocation_idOnly entries of this location; empty for the whole business.
GetTrialBalanceResponse
holygrail.ledger.v1.GetTrialBalanceResponse
currencyCodestringcurrency_codeGetProfitAndLossRequest
holygrail.ledger.v1.GetProfitAndLossRequest
fromDatestringfrom_dateLocal dates, YYYY-MM-DD, both inclusive; at most 366 days.
toDatestringto_datetimeZonestringtime_zoneIANA time zone the dates are in.
locationIdstringlocation_idOne location only; empty for the whole business. Costs not tied to a location (payroll, business-wide expenses) are left out of a single location's figures unless allocate_shared is set.
comparePnlComparisonUnspecified means the previous period.
booksOnlybooleanbooks_onlyLeave out labor estimated from timecards, so every figure is in the books.
allocateSharedbooleanallocate_sharedShare costs not tied to a location among locations by net sales.
GetProfitAndLossResponse
holygrail.ledger.v1.GetProfitAndLossResponse
currencyCodestringcurrency_codeperiodPnlPeriodcomparisonPnlPeriodUnset when no comparison was asked for.
linesPnlLine[]locationsPnlLocation[]departmentsPnlDepartment[]trendPnlTrendPoint[]By day for up to 31 days, by week up to 120 days, else by month.
trendUnitstringtrend_unit"day", "week" or "month".
laborPnlLabornotesstring[]Plain-words notes on what the figures include and leave out.
generatedAtstringgenerated_atListProfitAndLossEntriesRequest
holygrail.ledger.v1.ListProfitAndLossEntriesRequest
fromDatestringfrom_datetoDatestringto_datetimeZonestringtime_zonekeystringA PnlLine.key from GetProfitAndLoss.
locationIdstringlocation_idEmpty for every location; "none" for entries tied to no location.
pageSizeintegerpage_sizepageTokenstringpage_tokenListProfitAndLossEntriesResponse
holygrail.ledger.v1.ListProfitAndLossEntriesResponse
entriesPnlEntry[]nextPageTokenstringnext_page_tokentotalint64 stringThe line's total over the whole range, for checking the page against.
GetAccountsOverviewRequest
holygrail.ledger.v1.GetAccountsOverviewRequest
fromDatestringfrom_dateLocal dates, YYYY-MM-DD, both inclusive; at most 366 days.
toDatestringto_datetimeZonestringtime_zoneGetAccountsOverviewResponse
holygrail.ledger.v1.GetAccountsOverviewResponse
currencyCodestringcurrency_codetotalBalanceint64 stringtotal_balanceAll open Cash Accounts now.
openingint64 stringOver the range.
moneyInint64 stringmoney_inmoneyOutint64 stringmoney_outclosingint64 stringinflowsFlow[]outflowsFlow[]daysDayFlow[]accountsAccountFlow[]lowBalanceAccountIdsstring[]low_balance_account_idsAccounts below their low balance warning now.
previousMoneyInint64 stringprevious_money_inThe same totals for the same number of days just before.
previousMoneyOutint64 stringprevious_money_outGetAccountStatementRequest
holygrail.ledger.v1.GetAccountStatementRequest
cashAccountIdstringcash_account_idfromDatestringfrom_datetoDatestringto_datetimeZonestringtime_zoneGetAccountStatementResponse
holygrail.ledger.v1.GetAccountStatementResponse
accountCashAccountcurrencyCodestringcurrency_codeopeningint64 stringmoneyInint64 stringmoney_inmoneyOutint64 stringmoney_outclosingint64 stringlinesStatementLine[]Oldest first. At most 5000; truncated is set when there were more.
truncatedbooleaninflowsFlow[]outflowsFlow[]daysDayFlow[]RecordAccountTransactionRequest
holygrail.ledger.v1.RecordAccountTransactionRequest
idstringClient-chosen UUID, so a retried request records once.
cashAccountIdstringcash_account_iddirectionTransactionDirectionamountint64 stringcategoryAccountIdstringcategory_account_idThe ledger account on the other side, from ListCategoryAccounts.
occurredAtstringoccurred_atRFC 3339. Defaults to now.
memostringreferencestringSlip, transaction or cheque number.
ratestringFor an account in another currency: amount is in it, at this rate (units of the business's currency per unit). Empty uses the latest.
RecordAccountTransactionResponse
holygrail.ledger.v1.RecordAccountTransactionResponse
entryJournalEntryUnset when it waits for approval.
requestTransferRequestListCategoryAccountsRequest
holygrail.ledger.v1.ListCategoryAccountsRequest
No fields.
ListCategoryAccountsResponse
holygrail.ledger.v1.ListCategoryAccountsResponse
accountsCategoryAccount[]ListPaymentMethodAccountsRequest
holygrail.ledger.v1.ListPaymentMethodAccountsRequest
No fields.
ListPaymentMethodAccountsResponse
holygrail.ledger.v1.ListPaymentMethodAccountsResponse
methodsPaymentMethodAccount[]customMethodsAllowedbooleancustom_methods_allowedWhether the business may add methods of its own, which at_register needs.
SetPaymentMethodAccountRequest
holygrail.ledger.v1.SetPaymentMethodAccountRequest
methodIdstringmethod_idcashAccountIdstringcash_account_idSetPaymentMethodAccountResponse
holygrail.ledger.v1.SetPaymentMethodAccountResponse
methodPaymentMethodAccountGetReconciliationRequest
holygrail.ledger.v1.GetReconciliationRequest
cashAccountIdstringcash_account_idstatementDatestringstatement_dateYYYY-MM-DD: the statement's end date. Lines up to its end count.
timeZonestringtime_zoneGetReconciliationResponse
holygrail.ledger.v1.GetReconciliationResponse
accountCashAccountlastReconciliationThe latest reconciliation; unset for the first one, which starts from 0.
linesStatementLine[]Lines up to the statement date not cleared yet, oldest first.
bookBalanceint64 stringbook_balanceThe account's balance in the books at the end of the statement date.
CompleteReconciliationRequest
holygrail.ledger.v1.CompleteReconciliationRequest
idstringClient-chosen UUID.
cashAccountIdstringcash_account_idstatementDatestringstatement_datetimeZonestringtime_zonestatementBalanceint64 stringstatement_balanceThe closing balance printed on the statement.
clearedLineRef[]notestringpostDifferencebooleanpost_differencePost what is left between the statement and the cleared balance to "Reconciliation differences". Without it the cleared lines must match the statement exactly.
CompleteReconciliationResponse
holygrail.ledger.v1.CompleteReconciliationResponse
reconciliationReconciliationListReconciliationsRequest
holygrail.ledger.v1.ListReconciliationsRequest
cashAccountIdstringcash_account_idListReconciliationsResponse
holygrail.ledger.v1.ListReconciliationsResponse
reconciliationsReconciliation[]ListExchangeRatesRequest
holygrail.ledger.v1.ListExchangeRatesRequest
No fields.
ListExchangeRatesResponse
holygrail.ledger.v1.ListExchangeRatesResponse
baseCurrencystringbase_currencyratesExchangeRate[]Newest first.
SetExchangeRateRequest
holygrail.ledger.v1.SetExchangeRateRequest
currencyCodestringcurrency_codeasOfstringas_ofDefaults to today.
ratestringRevalueAccountRequest
holygrail.ledger.v1.RevalueAccountRequest
cashAccountIdstringcash_account_idoccurredAtstringoccurred_atRFC 3339. Defaults to now.
RevalueAccountResponse
holygrail.ledger.v1.RevalueAccountResponse
entryJournalEntryUnset when the book value already matched.
accountCashAccountGetAccountSettingsRequest
holygrail.ledger.v1.GetAccountSettingsRequest
No fields.
UpdateAccountSettingsResponse
holygrail.ledger.v1.UpdateAccountSettingsResponse
settingsAccountSettingsListTransferRequestsRequest
holygrail.ledger.v1.ListTransferRequestsRequest
statusTransferRequestStatusUnspecified lists all, newest first.
ListTransferRequestsResponse
holygrail.ledger.v1.ListTransferRequestsResponse
requestsTransferRequest[]pendingintegerDecideTransferRequestRequest
holygrail.ledger.v1.DecideTransferRequestRequest
idstringapprovebooleannotestringDecideTransferRequestResponse
holygrail.ledger.v1.DecideTransferRequestResponse
requestTransferRequestCancelTransferRequestRequest
holygrail.ledger.v1.CancelTransferRequestRequest
idstringCancelTransferRequestResponse
holygrail.ledger.v1.CancelTransferRequestResponse
requestTransferRequestListRecurringTransactionsRequest
holygrail.ledger.v1.ListRecurringTransactionsRequest
No fields.
ListRecurringTransactionsResponse
holygrail.ledger.v1.ListRecurringTransactionsResponse
recurringRecurringTransaction[]SaveRecurringTransactionRequest
holygrail.ledger.v1.SaveRecurringTransactionRequest
recurringRecurringTransactionClient-chosen UUID; saving it again updates it.
SaveRecurringTransactionResponse
holygrail.ledger.v1.SaveRecurringTransactionResponse
recurringRecurringTransactionDeleteRecurringTransactionRequest
holygrail.ledger.v1.DeleteRecurringTransactionRequest
idstringDeleteRecurringTransactionResponse
holygrail.ledger.v1.DeleteRecurringTransactionResponse
No fields.
ImportStatementRequest
holygrail.ledger.v1.ImportStatementRequest
idstringClient-chosen UUID.
cashAccountIdstringcash_account_idfileNamestringfile_nametimeZonestringtime_zoneThe business's time zone, for dates without a time.
rowsImportRow[]ImportStatementResponse
holygrail.ledger.v1.ImportStatementResponse
addedintegermatchedintegerskippedintegerLines already imported.
rowsStatementRow[]ListStatementRowsRequest
holygrail.ledger.v1.ListStatementRowsRequest
cashAccountIdstringcash_account_idstatusStatementRowStatusUnspecified lists all.
ListStatementRowsResponse
holygrail.ledger.v1.ListStatementRowsResponse
rowsStatementRow[]unmatchedintegermatchedintegerResolveStatementRowRequest
holygrail.ledger.v1.ResolveStatementRowRequest
idstringactionStatementRowActionentryIdstringentry_idlineNointegerline_nocategoryAccountIdstringcategory_account_idmemostringListAccountFeedsRequest
holygrail.ledger.v1.ListAccountFeedsRequest
cashAccountIdstringcash_account_idCreateAccountFeedRequest
holygrail.ledger.v1.CreateAccountFeedRequest
cashAccountIdstringcash_account_idproviderstringnamestringUpdateAccountFeedRequest
holygrail.ledger.v1.UpdateAccountFeedRequest
idstringactivebooleanrotateSecretbooleanrotate_secretIssue a new secret; the old one stops working.
DeleteAccountFeedRequest
holygrail.ledger.v1.DeleteAccountFeedRequest
idstringDeleteAccountFeedResponse
holygrail.ledger.v1.DeleteAccountFeedResponse
No fields.
ListBudgetsRequest
holygrail.ledger.v1.ListBudgetsRequest
monthstringYYYY-MM. Defaults to this month.
timeZonestringtime_zoneListBudgetsResponse
holygrail.ledger.v1.ListBudgetsResponse
monthstringbudgetsBudget[]Every income and expense account, budgeted or not.
elapsednumberOf the month that has gone so far, 0 to 1.
SetBudgetRequest
holygrail.ledger.v1.SetBudgetRequest
ledgerAccountIdstringledger_account_idamountint64 string0 removes it.
GetCashForecastRequest
holygrail.ledger.v1.GetCashForecastRequest
daysinteger7 to 180; defaults to 30.
timeZonestringtime_zoneGetCashForecastResponse
holygrail.ledger.v1.GetCashForecastResponse
currencyCodestringcurrency_codeopeningint64 stringdaysForecastDay[]itemsForecastItem[]The scheduled things in it, by date. The usual takings and spending are summed per weekday, not listed.
lowestint64 stringThe lowest closing and its day.
lowestDatestringlowest_dateusualInint64 stringusual_inAverage money in and out a day over the last eight weeks.
usualOutint64 stringusual_outListLedgerAccountsRequest
holygrail.ledger.v1.ListLedgerAccountsRequest
asOfDatestringas_of_dateLocal date, YYYY-MM-DD; empty for today.
timeZonestringtime_zoneincludeArchivedbooleaninclude_archivedListLedgerAccountsResponse
holygrail.ledger.v1.ListLedgerAccountsResponse
accountsLedgerAccount[]currencyCodestringcurrency_codeCreateLedgerAccountRequest
holygrail.ledger.v1.CreateLedgerAccountRequest
codestring4 to 6 digits, in the type's range: 1 assets, 2 liabilities, 3 equity, 4 income, 5 to 9 costs.
namestringgroupAccountGroupdescriptionstringUpdateLedgerAccountRequest
holygrail.ledger.v1.UpdateLedgerAccountRequest
idstringcodestringnamestringgroupAccountGroupdescriptionstringarchivedbooleanCreateJournalEntryRequest
holygrail.ledger.v1.CreateJournalEntryRequest
idstringClient-chosen UUID, so a retried request posts once.
datestringLocal date, YYYY-MM-DD.
timeZonestringtime_zonememostringreferencestringlinesManualJournalLine[]locationIdstringlocation_idGetBooksSettingsRequest
holygrail.ledger.v1.GetBooksSettingsRequest
No fields.
SetLockDateRequest
holygrail.ledger.v1.SetLockDateRequest
lockDatestringlock_dateSetTaxRegistrationRequest
holygrail.ledger.v1.SetTaxRegistrationRequest
vatRegisteredbooleanvat_registeredtinstringvrnstringGetBooksOverviewRequest
holygrail.ledger.v1.GetBooksOverviewRequest
fromDatestringfrom_datetoDatestringto_datetimeZonestringtime_zoneGetBooksOverviewResponse
holygrail.ledger.v1.GetBooksOverviewResponse
currencyCodestringcurrency_codecashOverviewFigureBalances at the end of each period.
receivableOverviewFigurepayableOverviewFigureVAT charged less VAT paid, owed to the tax authority.
revenueOverviewFigureFlows over each period.
expensesOverviewFigurecurrentRatioint64 stringcurrent_ratioCurrent assets over current liabilities, times 100.
outOfBalanceint64 stringout_of_balanceHealth.
settingsBooksSettingslatePostsintegerlate_postsoverdueInvoicesintegeroverdue_invoicesoverdueAmountint64 stringoverdue_amountmanualEntriesintegermanual_entriespreviousFromstringprevious_frompreviousTostringprevious_toGetGeneralLedgerRequest
holygrail.ledger.v1.GetGeneralLedgerRequest
accountIdstringaccount_idfromDatestringfrom_datetoDatestringto_datetimeZonestringtime_zoneGetGeneralLedgerResponse
holygrail.ledger.v1.GetGeneralLedgerResponse
accountLedgerAccountopeningint64 stringdebitsint64 stringcreditsint64 stringclosingint64 stringlinesGeneralLedgerLine[]truncatedbooleanMore lines than shown; narrow the dates.
currencyCodestringcurrency_codeGetCashFlowStatementRequest
holygrail.ledger.v1.GetCashFlowStatementRequest
fromDatestringfrom_datetoDatestringto_datetimeZonestringtime_zoneGetCashFlowStatementResponse
holygrail.ledger.v1.GetCashFlowStatementResponse
currencyCodestringcurrency_codenetProfitint64 stringnet_profitoperatingCashFlowSectioninvestingCashFlowSectionfinancingCashFlowSectionnetChangeint64 stringnet_changeopeningCashint64 stringopening_cashclosingCashint64 stringclosing_cashGetAgeingRequest
holygrail.ledger.v1.GetAgeingRequest
kindAgeingKindasOfDatestringas_of_dateLocal date; empty for today. Payables are always as of today.
timeZonestringtime_zoneGetAgeingResponse
holygrail.ledger.v1.GetAgeingResponse
currencyCodestringcurrency_coderowsAgeingRow[]totalsAgeingBucketsasOfDatestringas_of_dateGetCustomerStatementRequest
holygrail.ledger.v1.GetCustomerStatementRequest
customerIdstringcustomer_idfromDatestringfrom_datetoDatestringto_datetimeZonestringtime_zoneGetCustomerStatementResponse
holygrail.ledger.v1.GetCustomerStatementResponse
customerNamestringcustomer_namecustomerEmailstringcustomer_emailcurrencyCodestringcurrency_codeopeningint64 stringclosingint64 stringageingAgeingBucketsGetVatReturnRequest
holygrail.ledger.v1.GetVatReturnRequest
fromDatestringfrom_datetoDatestringto_datetimeZonestringtime_zoneGetVatReturnResponse
holygrail.ledger.v1.GetVatReturnResponse
currencyCodestringcurrency_codesettingsBooksSettingssalesint64 stringFrom the books: sales and other income net of VAT.
standardRatedSalesint64 stringstandard_rated_salesSales the VAT was charged on, at the standard rate (18%), and the rest (zero-rated, exempt or below the rate).
otherSalesint64 stringother_salesoutputVatint64 stringoutput_vatinputVatint64 stringinput_vatVAT paid on purchases, from the books.
netVatint64 stringnet_vatoutput - input; negative is carried forward.
purchasesVatPurchase[]unscheduledInputVatint64 stringunscheduled_input_vatInput VAT in the books that is not on the purchases schedule.
standardRateBpintegerstandard_rate_bpBasis points: 1800 for 18%.
CashAccount
holygrail.ledger.v1.CashAccount
Amounts are integer minor units in the organization's currency.
idstringnamestringkindCashAccountKindlocationIdstringlocation_idSet for a location's cash on hand.
notesstringbalanceint64 stringSum of the account's journal lines: what should be there now.
ledgerAccountIdstringledger_account_idThe ledger account behind it, and its code in the chart of accounts.
codestringarchivedbooleansystembooleanTrue for accounts the system created and posts to, which cannot be archived.
institutionstringThe bank or provider that holds it, e.g. "CRDB Bank" or "Vodacom M-Pesa".
accountNumberstringaccount_numberAccount, till or wallet number.
colorstring#RRGGBB, or empty for the kind's colour.
lowBalanceint64 stringlow_balanceWarn when the balance falls below this; 0 for no warning.
methodsLinkedMethod[]The checkout methods that pay into it. Cash on hand lists the cash methods, which always pay into the drawer.
reconciledThroughstringreconciled_throughThe latest reconciliation, if any: its statement date (YYYY-MM-DD) and balance.
reconciledBalanceint64 stringreconciled_balancein30dint64 stringin_30dMoney in and out over the last 30 days, transfers included and opening balances left out.
out30dint64 stringout_30dcurrencyCodestringcurrency_codeAnother currency it holds (ISO 4217), or empty for the business's own. balance and the figures above are always book value in the business's currency; foreign_balance is what the account holds in its own.
foreignBalanceint64 stringforeign_balancevalueNowint64 stringvalue_nowforeign_balance at the latest exchange rate, in the business's currency; 0 when there is no rate yet.
ratestringThe latest rate (units of the business's currency per unit), as text.
unmatchedRowsintegerunmatched_rowsStatement lines not matched to the books yet.
JournalEntry
holygrail.ledger.v1.JournalEntry
idstringoccurredAtstringoccurred_atsourcestringWhat produced it: order, drawer_close, drawer_movement, transfer, opening_balance or reversal.
sourceIdstringsource_idThe order, drawer session, transfer, ... it came from.
locationIdstringlocation_idmemostringlinesJournalLine[]reversesIdstringreverses_idSet on a reversing entry: the entry it undoes.
reversedByIdstringreversed_by_idSet when a later entry undid this one.
reversiblebooleanWhether ReverseEntry accepts it.
referencestringThe accountant's own reference on a manual entry.
createdByNamestringcreated_by_nameWho posted it by hand, when someone did.
TransferRequest
holygrail.ledger.v1.TransferRequest
idstringkindstring"transfer" or "withdrawal".
cashAccountIdstringcash_account_idcashAccountNamestringcash_account_nametoAccountIdstringto_account_idtoAccountNamestringto_account_namecategoryAccountIdstringcategory_account_idcategoryNamestringcategory_nameamountint64 stringIn the from account's currency.
toAmountint64 stringto_amountfeeint64 stringbookAmountint64 stringbook_amountIn the business's currency.
currencyCodestringcurrency_codememostringreferencestringstatusTransferRequestStatusrequestedBystringrequested_byrequestedByNamestringrequested_by_namerequestedAtstringrequested_atdecidedByNamestringdecided_by_namedecidedAtstringdecided_atdecisionNotestringdecision_noteentryIdstringentry_idrecurringIdstringrecurring_idFrom a recurring transaction.
canDecidebooleancan_decideWhether the person asking may approve or reject it.
AccountActivity
holygrail.ledger.v1.AccountActivity
entryIdstringentry_idoccurredAtstringoccurred_atsourcestringsourceIdstringsource_idmemostringamountint64 stringInto the account positive, out negative.
balanceAfterint64 stringbalance_afterreversiblebooleanWhether ReverseEntry accepts the entry.
TrialBalanceRow
holygrail.ledger.v1.TrialBalanceRow
accountIdstringaccount_idcodestringnamestringopeningint64 stringBalance before from_date, debit positive.
debitsint64 stringDebits and credits in the period, both positive.
creditsint64 stringclosingint64 stringopening + debits - credits.
archivedbooleanPnlLine
holygrail.ledger.v1.PnlLine
PnlLine is one row of the statement. Amounts are positive when they add to their section: revenue for income sections, cost for cost sections. A contra line such as discounts or refunds is negative.
keystringStable within a response: an account id, or "sales_gross", "discounts" and "estimated_labor" for lines not one account.
accountIdstringaccount_idThe ledger account behind it; empty for estimated labor.
codestringnamestringsectionPnlSectionamountint64 stringcompareAmountint64 stringcompare_amountestimatedbooleanNot in the books: estimated from timecards.
systemKeystringsystem_keyThe ledger's system key, such as "cost_of_goods"; empty for accounts people added.
percentOfRevenueBpintegerpercent_of_revenue_bpBasis points of net revenue, e.g. 3150 = 31.5%.
PnlLocation
holygrail.ledger.v1.PnlLocation
PnlLocation is the statement for one location, or for costs tied to no location (empty location_id) when they are not allocated.
locationIdstringlocation_idnamestringtotalsPnlTotalsamountsmap<string, int64 string>Line amounts by PnlLine.key; lines with nothing here are left out.
PnlDepartment
holygrail.ledger.v1.PnlDepartment
departmentIdstringdepartment_idEmpty for sales and costs not in a department.
namestringnetSalesint64 stringnet_salescostOfGoodsint64 stringcost_of_goodsgrossProfitint64 stringgross_profitgrossMarginBpintegergross_margin_bpquantityint64 stringPnlTrendPoint
holygrail.ledger.v1.PnlTrendPoint
keystringYYYY-MM-DD for a day or the Monday of a week, YYYY-MM for a month.
revenueint64 stringcostOfSalesint64 stringcost_of_saleslaborint64 stringoperatingExpensesint64 stringoperating_expensesnetProfitint64 stringnet_profitPnlPassThrough
holygrail.ledger.v1.PnlPassThrough
Money that went through the business but is not its income or cost.
salesTaxCollectedint64 stringsales_tax_collectedtipsCollectedint64 stringtips_collectedtaxOnPurchasesint64 stringtax_on_purchasesPnlLabor
holygrail.ledger.v1.PnlLabor
workedMinutesint64 stringworked_minutesovertimeMinutesint64 stringovertime_minutesdaysCoveredByPayrollintegerdays_covered_by_payrollDays of the period that posted pay runs cover; the rest are estimated.
daysintegerunratedPeopleintegerunrated_peoplePeople whose timecards have no hourly rate, so cost nothing here.
PnlCashFlow
holygrail.ledger.v1.PnlCashFlow
cashInint64 stringcash_inMoney into and out of Cash Accounts in the period, transfers between them left out.
cashOutint64 stringcash_outnetChangeint64 stringnet_changeclosingBalanceint64 stringclosing_balancePnlEntry
holygrail.ledger.v1.PnlEntry
entryIdstringentry_idThe journal entry; empty for an estimated labor row.
occurredAtstringoccurred_atsourcestringWhat posted it (order, expense, invoice, ...) and its id, for a link.
sourceIdstringsource_idmemostringamountint64 stringSigned like the line: positive adds to its section.
locationIdstringlocation_idlocationNamestringlocation_nameteamMemberIdstringteam_member_idEstimated labor: the person and their time.
workedMinutesint64 stringworked_minutesovertimeMinutesint64 stringovertime_minutesFlow
holygrail.ledger.v1.Flow
Flow is money in or out of Cash Accounts grouped by where it came from or went: "order" (sales), "invoice_payment", "expense", "refund", ...
sourcestringamountint64 stringcountintegerDayFlow
holygrail.ledger.v1.DayFlow
datestringYYYY-MM-DD.
moneyInint64 stringmoney_inmoneyOutint64 stringmoney_outclosingint64 stringAll Cash Accounts at the end of the day.
AccountFlow
holygrail.ledger.v1.AccountFlow
cashAccountIdstringcash_account_idopeningint64 stringmoneyInint64 stringmoney_inmoneyOutint64 stringmoney_outtransfersInint64 stringtransfers_inMoves between the business's own accounts and opening balances, in and out.
transfersOutint64 stringtransfers_outclosingint64 stringStatementLine
holygrail.ledger.v1.StatementLine
entryIdstringentry_idlineNointegerline_nooccurredAtstringoccurred_atsourcestringsourceIdstringsource_idmemostringamountint64 stringInto the account positive, out negative.
balanceAfterint64 stringbalance_afterreversiblebooleanclearedbooleanTicked off in a reconciliation.
counterpartstringFor a transfer: the other account's name.
matchedbooleanMatched to an imported or fed statement line.
bookAmountint64 stringbook_amountFor an account in another currency, amount and balance_after are in it and this is the book value.
CategoryAccount
holygrail.ledger.v1.CategoryAccount
idstringcodestringnamestringforDepositbooleanfor_depositOffered for deposits, withdrawals or both.
forWithdrawalbooleanfor_withdrawalsystemKeystringsystem_keyThe ledger's system key, e.g. "owner_contributions"; empty for accounts people added (expense categories).
PaymentMethodAccount
holygrail.ledger.v1.PaymentMethodAccount
methodLinkedMethodcashAccountIdstringcash_account_idEmpty for cash (always the location's cash on hand) and for a method with no payments and no link yet.
Reconciliation
holygrail.ledger.v1.Reconciliation
idstringcashAccountIdstringcash_account_idstatementDatestringstatement_datestatementBalanceint64 stringstatement_balanceclearedBalanceint64 stringcleared_balancebookBalanceint64 stringbook_balanceadjustmentint64 stringlinesClearedintegerlines_clearednotestringcreatedAtstringcreated_atcreatedByNamestringcreated_by_nameLineRef
holygrail.ledger.v1.LineRef
entryIdstringentry_idlineNointegerline_noExchangeRate
holygrail.ledger.v1.ExchangeRate
currencyCodestringcurrency_codeasOfstringas_ofYYYY-MM-DD it applies from.
ratestringUnits of the business's currency per unit, as decimal text: "2650.5".
AccountSettings
holygrail.ledger.v1.AccountSettings
approvalThresholdint64 stringapproval_thresholdBook value at or over which transfers and withdrawals need approval while approvals_enabled is on.
approvalsEnabledbooleanapprovals_enabledWhether transfers and withdrawals over the threshold wait for approval; off, they post at once and the threshold is kept for later.
RecurringTransaction
holygrail.ledger.v1.RecurringTransaction
idstringkindstring"transfer", "deposit" or "withdrawal".
cashAccountIdstringcash_account_idtoAccountIdstringto_account_idcategoryAccountIdstringcategory_account_idamountint64 stringtoAmountint64 stringto_amountfeeint64 stringmemostringfrequencyRecurringFrequencyeveryintegerEvery this many days, weeks or months.
nextDatestringnext_dateYYYY-MM-DD, local to the business.
endDatestringend_datepausedbooleanlastDatestringlast_daterunsintegerlastErrorstringlast_errorWhy the last run did not post, if it did not.
cashAccountNamestringcash_account_nameFilled in for lists.
toAccountNamestringto_account_namecategoryNamestringcategory_nameImportRow
holygrail.ledger.v1.ImportRow
occurredAtstringoccurred_atRFC 3339 or YYYY-MM-DD.
descriptionstringreferencestringamountint64 stringbalanceint64 stringhasBalancebooleanhas_balanceexternalIdstringexternal_idThe bank's own transaction id. Empty derives one from the date, amount, reference and description.
StatementRow
holygrail.ledger.v1.StatementRow
idstringcashAccountIdstringcash_account_idoccurredAtstringoccurred_atdescriptionstringreferencestringamountint64 stringIn the account's currency; into the account positive.
balanceint64 stringThe balance the bank printed after it, if any.
hasBalancebooleanhas_balanceexternalIdstringexternal_idstatusStatementRowStatusentryIdstringentry_idThe line in the books it matched.
lineNointegerline_nomatchedBystringmatched_by"auto", "manual" or "created".
originstring"file" or the feed's provider.
matchMemostringmatch_memoThe matched line's description and date, for showing side by side.
matchOccurredAtstringmatch_occurred_atcandidatesStatementLine[]For an unmatched line: lines in the books that could be it, best first.
AccountFeed
holygrail.ledger.v1.AccountFeed
idstringcashAccountIdstringcash_account_idproviderstring"generic", "mpesa", "airtel" or "selcom".
namestringactivebooleanwebhookUrlstringwebhook_urlWhere the provider sends transactions.
secretstringShown once, when the feed is created; send it as the X-Feed-Key header or the key query parameter.
lastEventAtstringlast_event_ateventsintegercreatedAtstringcreated_atBudget
holygrail.ledger.v1.Budget
ledgerAccountIdstringledger_account_idcodestringnamestringamountint64 stringMonthly; 0 for none.
actualint64 stringWhat happened in the month, and the month before.
previousint64 stringForecastDay
holygrail.ledger.v1.ForecastDay
datestringmoneyInint64 stringmoney_inmoneyOutint64 stringmoney_outclosingint64 stringForecastItem
holygrail.ledger.v1.ForecastItem
datestringkindstring"invoice", "recurring", "payroll", "usual_in" or "usual_out".
descriptionstringamountint64 stringInto the business positive.
refIdstringref_idLedgerAccount
holygrail.ledger.v1.LedgerAccount
idstringcodestringnamestringgroupAccountGroupdescriptionstringsystemKeystringsystem_keySet for accounts the system posts to by itself.
archivedbooleanbalanceint64 stringDebit positive, at the end of as_of_date.
cashAccountIdstringcash_account_idThe Cash Account behind it, when there is one.
usedbooleanWhether any entry has used it.
editablebooleanWhether its code and name can change and it can be archived.
ManualJournalLine
holygrail.ledger.v1.ManualJournalLine
accountIdstringaccount_iddebitint64 stringOne of the two, positive.
creditint64 stringmemostringBooksSettings
holygrail.ledger.v1.BooksSettings
lockDatestringlock_dateYYYY-MM-DD, or empty when the books are open.
lockDateSetBystringlock_date_set_bylockDateSetAtstringlock_date_set_atvatRegisteredbooleanvat_registeredtinstringvrnstringOverviewFigure
holygrail.ledger.v1.OverviewFigure
A headline figure now and in the period before, of the same length.
currentint64 stringpreviousint64 stringStaleAccount
holygrail.ledger.v1.StaleAccount
cashAccountIdstringcash_account_idnamestringlastReconciledstringlast_reconciledYYYY-MM-DD, or empty when never reconciled.
GeneralLedgerLine
holygrail.ledger.v1.GeneralLedgerLine
entryIdstringentry_idlineNointegerline_nooccurredAtstringoccurred_atsourcestringsourceIdstringsource_idmemostringreferencestringamountint64 stringDebit positive.
balanceAfterint64 stringbalance_afterreversedbooleanAgeingRow
holygrail.ledger.v1.AgeingRow
partyIdstringparty_idThe customer or supplier.
partyNamestringparty_namebucketsAgeingBucketsdocumentsAgeingDocument[]AgeingBuckets
holygrail.ledger.v1.AgeingBuckets
Owed amounts by days past due: not yet due, 1-30, 31-60, 61-90, over 90.
currentint64 stringdays130int64 stringdays_1_30days3160int64 stringdays_31_60days6190int64 stringdays_61_90over90int64 stringover_90totalint64 stringCustomerStatementLine
holygrail.ledger.v1.CustomerStatementLine
datestringkindstringinvoice, payment or void.
numberstringdescriptionstringamountint64 stringWhat the customer owes more (invoice) positive, less (payment) negative.
balanceAfterint64 stringbalance_afterVatPurchase
holygrail.ledger.v1.VatPurchase
kindstringsupplier_invoice or expense.
idstringdatestringsupplierstringtinstringvrnstringnumberstringreceiptNumberstringreceipt_numbernetint64 stringvatint64 stringtotalint64 stringLinkedMethod
holygrail.ledger.v1.LinkedMethod
LinkedMethod is a checkout method as an account shows it.
idstringnamestringkindstringcash, card, mobile_money, bank_transfer, voucher or other.
enabledbooleanOffered at the register.
JournalLine
holygrail.ledger.v1.JournalLine
accountIdstringaccount_idaccountCodestringaccount_codeaccountNamestringaccount_nameamountint64 stringDebit positive, credit negative.
memostringPnlTotals
holygrail.ledger.v1.PnlTotals
revenueint64 stringNet revenue.
costOfSalesint64 stringcost_of_salesgrossProfitint64 stringgross_profitlaborint64 stringoperatingExpensesint64 stringoperating_expensesoperatingProfitint64 stringoperating_profitGross profit less labor and operating expenses.
otherIncomeint64 stringother_incomenetProfitint64 stringnet_profitestimatedLaborint64 stringestimated_laborPart of labor that is estimated from timecards.
grossMarginBpintegergross_margin_bpMargins and ratios in basis points of revenue; 0 when there is no revenue.
operatingMarginBpintegeroperating_margin_bpnetMarginBpintegernet_margin_bplaborBpintegerlabor_bpprimeCostBpintegerprime_cost_bpCost of sales plus labor, the restaurant "prime cost".
grossSalesint64 stringgross_salesdiscountsint64 stringrefundsint64 stringCashFlowLine
holygrail.ledger.v1.CashFlowLine
labelstringamountint64 stringInto cash positive.
accountIdstringaccount_idAgeingDocument
holygrail.ledger.v1.AgeingDocument
idstringnumberstringdatestringdueDatestringdue_datetotalint64 stringowedint64 stringdaysPastDueintegerdays_past_dueCashAccountKind enum
holygrail.ledger.v1.CashAccountKind
CASH_ACCOUNT_KIND_UNSPECIFIEDCASH_ACCOUNT_KIND_BANKCASH_ACCOUNT_KIND_CASH_DRAWERA location's cash on hand: its drawers and safe. Register cash sales, pay-ins, pay-outs and drawer variances post here.
CASH_ACCOUNT_KIND_PETTY_CASHCASH_ACCOUNT_KIND_MOBILE_MONEYCASH_ACCOUNT_KIND_CARD_CLEARINGCard payments taken but not yet paid out by the processor.
CASH_ACCOUNT_KIND_CUSTOMPnlComparison enum
holygrail.ledger.v1.PnlComparison
PNL_COMPARISON_UNSPECIFIEDPNL_COMPARISON_PREVIOUS_PERIODThe same number of days just before the period.
PNL_COMPARISON_PREVIOUS_YEARThe same dates a year earlier.
PNL_COMPARISON_NONETransactionDirection enum
holygrail.ledger.v1.TransactionDirection
TRANSACTION_DIRECTION_UNSPECIFIEDTRANSACTION_DIRECTION_DEPOSITMoney into the account.
TRANSACTION_DIRECTION_WITHDRAWALMoney out of it.
TransferRequestStatus enum
holygrail.ledger.v1.TransferRequestStatus
TRANSFER_REQUEST_STATUS_UNSPECIFIEDTRANSFER_REQUEST_STATUS_PENDINGTRANSFER_REQUEST_STATUS_APPROVEDTRANSFER_REQUEST_STATUS_REJECTEDTRANSFER_REQUEST_STATUS_CANCELLEDStatementRowStatus enum
holygrail.ledger.v1.StatementRowStatus
STATEMENT_ROW_STATUS_UNSPECIFIEDSTATEMENT_ROW_STATUS_UNMATCHEDSTATEMENT_ROW_STATUS_MATCHEDSTATEMENT_ROW_STATUS_CREATEDRecorded in the books from the statement.
STATEMENT_ROW_STATUS_IGNOREDStatementRowAction enum
holygrail.ledger.v1.StatementRowAction
STATEMENT_ROW_ACTION_UNSPECIFIEDSTATEMENT_ROW_ACTION_MATCHMatch to entry_id and line_no.
STATEMENT_ROW_ACTION_UNMATCHSTATEMENT_ROW_ACTION_IGNORESTATEMENT_ROW_ACTION_CREATERecord as a deposit or withdrawal against category_account_id.
LedgerAccountType enum
holygrail.ledger.v1.LedgerAccountType
LEDGER_ACCOUNT_TYPE_UNSPECIFIEDLEDGER_ACCOUNT_TYPE_ASSETLEDGER_ACCOUNT_TYPE_LIABILITYLEDGER_ACCOUNT_TYPE_EQUITYLEDGER_ACCOUNT_TYPE_INCOMELEDGER_ACCOUNT_TYPE_EXPENSEAccountGroup enum
holygrail.ledger.v1.AccountGroup
ACCOUNT_GROUP_UNSPECIFIEDACCOUNT_GROUP_CURRENTCash, stock, what customers owe; what is owed within the year.
ACCOUNT_GROUP_NON_CURRENTEquipment, vehicles, long-term loans.
AgeingKind enum
holygrail.ledger.v1.AgeingKind
AGEING_KIND_UNSPECIFIEDAGEING_KIND_RECEIVABLEAGEING_KIND_PAYABLEPnlSection enum
holygrail.ledger.v1.PnlSection
PNL_SECTION_UNSPECIFIEDPNL_SECTION_REVENUESales less discounts and refunds, room revenue.
PNL_SECTION_COST_OF_SALESCost of goods sold, waste and stock shrinkage.
PNL_SECTION_LABORWages and employer payroll costs from posted pay runs, and labor estimated from timecards for days no pay run covers.
PNL_SECTION_OPERATING_EXPENSESExpense categories, payment fees, cash over and short, paid outs.
PNL_SECTION_OTHER_INCOMEKept deposits and other income outside trading.
RecurringFrequency enum
holygrail.ledger.v1.RecurringFrequency
RECURRING_FREQUENCY_UNSPECIFIEDRECURRING_FREQUENCY_DAILYRECURRING_FREQUENCY_WEEKLYRECURRING_FREQUENCY_MONTHLYBase URL https://api.buziin.tech. Every method is POST with a JSON body; see Making requests.