Taokeh MCP server
This endpoint is listed in the official MCP Registry as mcp. If you published it, claim ownership there.
Server Details
Taokeh is accounting software for Malaysian SMEs — double-entry books, LHDN e-Invoice (MyInvois), SST, and full statutory payroll — and this connector opens a company's live books to the AI its owner already uses.
59 tools. The reads answer real questions from the ledger: P&L and balance sheet with server-computed comparisons, cash position, A/R and A/P aging, per-channel marketplace sales, an 8-week cash-flow forecast, tax position, document search with e-Invoice standing, and a one-call daily brief. The writes are drafts only — expenses, invoices, bills, quotes, purchase orders, receipts, credit and debit notes, adjusting journals, bank-statement imports and bank-row suggestions — every figure re-checked by the server, every draft waiting for a human tap in Taokeh. The AI can also work the Shoebox: staff snap paper on free phone logins, and the connector lists the pile, reads each photo, and files the draft with the original attached — the server maps its own stored copy, so the document trail stays byte-perfect.
One connection is bound to one company at consent; no tool takes a company argument. Migrating from another system? The same connector stages the chart of accounts, opening balances, contacts, products, historical documents and workspace settings onto the owner's own review screens. Bring your own AI subscription — no per-call fees.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- OAuth
- Works in Glama
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- ChatGPT
- –
- Claude
- –
TDQS
Scored across 95 tools
The tools cover a very large accounting surface, but each has a distinct role and the descriptions repeatedly delimit scope (e.g. business_snapshot vs daily_brief, create_payment_draft vs create_payment_match_draft, create_*_draft vs update_*_draft vs revise_draft). A few report tools overlap in subject matter (sales_summary, channel_summary, income_statement, financial_timeseries), but their payloads and purposes are clearly differentiated.
Everything uses lowercase snake_case, with a predictable split: action tools are verb_noun (create_invoice_draft, update_bill_draft, search_documents) and report/read tools are noun phrases (trial_balance, ar_aging, cash_position). That is mostly consistent and readable, though not a single uniform verb_noun pattern throughout.
95 tools is far beyond what an agent can reliably navigate in one server; even for a full accounting platform this is an extreme surface. The tool count alone creates selection burden and cognitive overhead that outweighs individual tool quality.
The surface is remarkably complete for reading, drafting, correcting, searching, reporting and migration staging across sales, purchases, banking, payroll, assets and tax. Gaps remain around creating certain master records (products, employees, loans), stock adjustments, and void/delete operations, which are deliberately left to the human in Taokeh rather than exposed as tools.
Available Tools
95 toolsap_agingA/P agingARead-onlyInspect
Whom you owe and how overdue, by supplier, aged from each bill's due date (its own date when it states no term). A row is the payable each document created on the accounts-payable control account, less what was paid against it by asOf, not the bill's gross total. A bank payment posted to a supplier but not matched to a bill is inside that supplier's buckets and total as a negative amount, aged from the day it left, and listed in unmatchedPayments with a kind: payment (negative), refund (a supplier refund not yet matched; positive) or booked_outside (the bank line was matched to bills for more than it booked to payables; positive; fixed on the bank line). A payment matched to a bill dated after asOf (an advance) is listed as kind payment with paysLater ([{reference, date, amount}]) and applies on that date. unmatchedPaymentsTotal is their sum less paysLaterTotal; documentTotals holds the bills' buckets alone, each on its own date. The dashboard's overdue figure counts a debit note raised against a ringgit bill in that bill's bucket (Current when the bill is not yet due), up to what the bill still owes, and any other credit in Current, so it can differ from documentTotals' past-due buckets. A row's total is the net owed and can be negative. The report equals the control account to the cent except for manual journals on it, the period-end unrealized FX revaluation on its own date, and bank lines with saved but unposted allocations. A cash bill, or a bill settled from somewhere other than the supplier account (an owner-paid bill booked to a shareholder loan), created no payable and is absent; a debit note nets its supplier down. A figure here can be lower than the bill's total in search_documents.
Inputs: asOf.
ar_agingA/R agingARead-onlyInspect
Who owes you money and how overdue, across all customers, bucketed by age; open_invoices lists one named customer's unpaid invoices. A row is the receivable each document created on the accounts-receivable control account, less what was received against it by asOf, not the document's gross total. A customer payment not yet fully applied (a bank receipt posted to the customer, money on Sales → Official receipts → Receive payment beyond what invoices took, or a payment's unapplied part) is inside that customer's buckets and total as a negative amount, aged from arrival, and listed in unmatchedPayments (bankTransactionId, date, amount, bucket, kind). kind is payment (money in, not yet applied; negative; applied in Banking → Match or on Receive payment, which also takes Cash), refund (paid out, not yet matched; positive) or booked_outside (the bank line was matched to invoices for more than it booked to receivables, so they read settled while the control account still holds it; positive; fixed on the bank line). A payment matched to an invoice dated after asOf (a deposit) is listed as kind payment with paysLater ([{reference, date, amount}]) and applies on that date. unmatchedPaymentsTotal is their sum less paysLaterTotal. documentTotals: the documents' buckets alone, on their own dates; totals the net balance. Dashboard overdue: a credit note counts where its ringgit invoice counts, other credit as Current. Rows can be negative; a customer can appear with no invoice. The report equals the control account to the cent except for manual journals on it, the period-end unrealized FX revaluation (its own date only), and bank lines with saved but unposted allocations. Cash and gateway-paid sales post no receivable and are absent; a marketplace order reads the net payout owed; credit notes net down; an invoice reversed by a channel return reads nil. So a figure can be below the invoice total in search_documents. Movement after asOf is excluded.
Inputs: asOf.
asset_registerFixed asset registerARead-onlyInspect
The Fixed Assets register as /assets shows it: every asset (assetId, number, name, category, account, cost, residual value, method with life or rate, accumulated depreciation including any taken before the books started, net book value, status, disposal date, linked loan, and how it came in: purchase (registered from a purchase in the books), owned_before_start, hire_purchase (a loan record, or its acquisition entry credits a loan account), or posted_by_asset_form). Also: the purchases on a fixed-asset (15xx) account waiting to be registered, each with its lineId; the cash and bank accounts a disposal draft may name for its proceeds; the accounting start date and the lock date; and the months up to the end of this month that depreciation has not been run for, with each month's total. Money is ringgit to the sen. Read-only.
Inputs: no named parameters.
balance_sheetBalance sheetARead-onlyInspect
Balance sheet as of a date: assets, liabilities and equity, with the balanced check. The financial year closes by arithmetic, not by a journal: financialYear is the year asOf falls in, and equity lines whose code starts with an em-dash (synthetic: true) are computed lines, not accounts; nothing posts to them and they have no ledger. — 'Profit for the year' is revenue minus expenses from financialYear.start to asOf (equal to income_statement's net income over those dates). With equityLayout 'retained_earnings' (Sdn Bhd, or type not set), —E 'Profit from earlier years' is the profit of every entry before the year start. With 'capital_account' (sole proprietor or partnership), —C 'Capital at start of year' is capital and drawings before the year plus earlier years' profit, and each equity account line shows this year's movement only (from = the year start). Every other line is the account's balance at asOf; the lines add up to totalEquity. An optional comparison sets one date against another (two positions, not a period): compare 'previous_month_end', 'previous_year_end' or 'same_date_last_year', or an explicit compareAsOf. It returns both positions and, per line and total, deltaCents and deltaPct (server-side, integer cents): the movement between the two dates. deltaPct is null when the earlier balance is zero and is measured against the absolute earlier balance. Across two financial years, current and previous are each date's own sheet, while the equity variance splits both at the earlier date's year start (a note says so). points gives both dates, the days between them and whether either is still open; notes states the basis, including a warning if either sheet does not balance.
Inputs: asOf, compare, compareAsOf.
bank_reconciliation_reportBank reconciliation reportARead-onlyInspect
The audit bank reconciliation for one bank account, as Banking → Reconciliation report and Clear transactions show it. Returns (1) report: balance per bank statement ("Not stated" when the statement has none; balance supplies it for this answer only), less unpresented payments, plus deposits not yet credited, adjusted for statement lines not yet in the books, giving the balance per books worked from the statement, beside the ledger balance and the unexplained difference (never forced to zero), setAsideLinesOnAnotherStatement {count, total} (set-aside lines not counted because another statement of the account also shows them), plus the Clear Transaction listing for the period; (2) clearStep: book entries not yet cleared up to the statement date (entryId, date, reference, description, signed amount, any same-amount statement line), and the statement lines a tick may pair with (statementLineId, date, amount, remaining); (3) hints: the page's three explained patterns (explanation): a pair of entries that cancel out, a cash sale with no deposit on the statement, and a missing (kind: missing) or late (kind: late) opening balance; when actionable is false, no fix is safe. Clear transactions lists 300 rows at a time, oldest first; report lists over 200 rows are truncated, their totals never. Ringgit bank accounts only; a credit card or foreign-currency account is refused. Read-only. Ticks are filed by create_bank_clearing_draft and settlements of a posted payment by create_payment_match_draft; the owner approves both in Taokeh.
Inputs: asOf, offset, balance, statementId, +1 more.
bank_reconciliation_statusBank reconciliation statusARead-onlyInspect
Where each bank account stands on reconciliation, with the same figures as the in-app Bank Reconciliation page: GL balance against the latest statement's closing balance (the difference, or "unknown" when no balance is stated); rowCounts by stored status (SUGGESTED = proposed, awaiting the owner; UNCATEGORIZED = never categorised, including hand-typed rows; CONFIRMED = categorised, not in the ledger; POSTED; IGNORED = set aside); the unreviewed backlog with pairedInBooks; and reconcilingItems, each item's signed effect on the difference, summing to it exactly (NOT_EXPLAINED is the remainder, STATEMENTS_DONT_JOIN a missing or duplicated statement). A line paired on Clear transactions is in the books and sits in no other item; PAIRED_ON_CLEAR appears only for a pair of different amounts. Cash moved with no bank line is DRIFT_<source> (DRIFT_EXPENSE, DRIFT_GATEWAY_PAYOUT, DRIFT_OPENING, DRIFT_MANUAL, DRIFT_CASH_SALE, DRIFT_CASH_BILL, DRIFT_LOAN, DRIFT_DOCUMENT, DRIFT_OTHER). notOnStatementNotInBooks lists unposted lines on no statement, which do not affect the difference. Each recent statement has its balances, tie-out and counts (paired, pairsLeaving). A credit card's figures are a liability: negative means money owed. Read-only.
Inputs: no named parameters.
bank_review_queueBank review queueARead-onlyInspect
The imported bank register: rows from bank or card statements, in any status. With no status, the unreviewed queue of one statement (default: the latest); 'confirmed', 'posted', 'ignored' or 'all' read settled history. from/to without a statementId read a date window across every statement (scope: 'window'); a window with over 1000 unreviewed rows is refused with the count. Hand-recorded receipts and supplier payments are never here (search_documents, docType 'payment', lists them). Unreviewed rows carry Taokeh's live suggested category and contact, a confidence (0–1) and a reason, as Banking → Review computes them; an owner's bank rule beats learned history. Lowest confidence first, capped at 200, with bucket counts and statusCounts. possibleDuplicateOf is a hand-recorded receipt or payment that looks like the same money. possibleTwin {entryId, ref, name, date, kind}: kind 'bookEntry' is a book entry for the same money (create_bank_clearing_draft clears it), kind 'cardBill' a card bill already paid in the books, kind 'cardLinePosted' a card line already posted, kind 'earlierStatement' the same line on an earlier statement of the account. Both are resemblances only. Settled rows carry what was decided (category, glAccount, contact, journalEntryId, splits, allocations), not a suggestion. A line paired on Clear transactions is already in the books; only 'all' lists it, with pairedWith. Every row on a foreign-currency account carries notPostable, whatever its status (Taokeh posts ringgit accounts only); currency is the statement account's currency (MYR for a ringgit account). On money in, EXPENSE is an expense refund. A proposal from draft_bank_classification (a category, plus the ledger account for EXPENSE, OTHER and INTERNAL_TRANSFER) shows as yourProposal; yourProposal.shownOnReviewAs says how the review row shows it when the loan fence places it differently. Confirming and posting are human taps in Taokeh. Read-only.
Inputs: to, from, status, statementId.
business_snapshotBusiness snapshotARead-onlyInspect
A one-glance health check: today's and this month's sales and expenses so far. It covers sales and expenses only; daily_brief is the fuller morning read (cash position, who owes you, pending approvals, tax position, low stock) and includes everything here.
Inputs: no named parameters.
cash_forecastCash-flow forecastAInspect
An 8-week forward cash-flow forecast: arithmetic from your books, not a model. The opening position is your liquid balances now (cash, banks, gateway clearing, the Shopee Wallet held by Shopee); owner advances are a liability and excluded. Inflows are open customer invoices at their due dates; already-overdue receivables are not assumed collected and come back separately as overdueArCents. When a sales channel is connected and reports money earned but not paid out (TikTok Shop unsettled orders), that pool comes back separately as channelUnsettled (amount, count, currency, and an expected date 14 days out); it is the channel's estimate and is not counted in any week, closing balance or the dip. Without a connected, reachable channel the field is absent. Outflows are open supplier bills (at the due date, or the bill date with no term; ringgit bills net of their debit notes, foreign-currency bills not netted), payroll (from the last finalized run: net pay plus employer EPF/SOCSO/EIS on payday), PCB/EPF/SOCSO/EIS remittances (15th of the next month), loan installments (from the last recorded installment) and SST payable at its return due date if registered. Returns weekly inflows, outflows and closing balance, the dip (the lowest projected closing: when and how deep), and an assumptions list of every estimate. Amounts are integer cents (RM = cents ÷ 100). Reading a connected TikTok channel may refresh its stored sign-in token; nothing in the books changes.
Inputs: no named parameters.
cash_positionCash positionARead-onlyInspect
Cash on hand now: every bank account and cash pocket with its current ledger balance, and a total. total is liquid money only: physical cash, bank accounts, the payment-gateway clearing float and the Shopee Wallet (money Shopee holds for released orders not yet withdrawn; that account carries heldBy: 'Shopee'); accounts lists exactly those. Money the owner advanced (the Shareholder Loan) is returned separately as ownerFunding: a liability the business owes back, never inside total. A sole proprietor or partnership owes its owner nothing (owner money is Capital Contribution), so there ownerFunding appears only for a balance left on the Shareholder Loan from before the business type was set, flagged fromBeforeBusinessType: true with a note. Credit cards are returned separately as cards (one per card, cardsOwing the total): a card balance is owed to the issuer, not cash, and never inside total. Each card has a direction: 'owed_to_issuer', or 'in_credit' when overpaid. Balances are booked in MYR; a foreign bank account shows its currency label beside its MYR ledger balance.
Inputs: no named parameters.
channel_summarySales-channel summaryARead-onlyInspect
Sales by channel (Shopee, TikTok, Shopify, your storefront, …) for from to to (YYYY-MM-DD). Per channel: order count, gross goods revenue, seller discounts, shipping income, freight-out, marketplace fees, netProceeds (the settlement booked on each sale's entry: the net payout owed for Shopee and TikTok, what settled into cash or gateway clearing for the storefront), returns and netGoodsRevenue (gross goods revenue less returns). returns is revenue reversed in the range by credit notes (on the credit note's date) plus goods revenue taken back by a marketplace Returns-page reversal (journal reference <CHANNEL>-CN-<order>, no credit-note document), on the reversal's own date; once both dates are in range a fully reversed order nets to 0. Only goods revenue enters returns: discounts, shipping, freight, fees and netProceeds come from the invoice side and are gross of returns. A channel with only returns in the range still shows (saleCount 0, negative netGoodsRevenue). A Shopee-wallet fee credit note adds 0 to returns; Shopee wallet deductions booked since 31 Oct 2026, and Shopee fees on old-books invoices settled through the wallet since 1 Nov 2026, sit on wallet entries and appear in income_statement, not here. A settlement-correction credit note moves only its goods part into returns; its fee and shipping parts are booked on the credit note, so a fee-only correction does not show here, and past figures can still move as corrections are approved. marketplaceFees excludes storefront gateway fees (booked on payout entries). TikTok is the exception: its fees and freight, booked later by "Book settlement fees" (TIKTOK-FEE-<order id>), are included and dated by the settlement entry, so a June sale settled in July shows its fees in July and a month can show a tiktok row with saleCount 0. Manual and non-channel sales are excluded.
Inputs: to (required), from (required).
counter_dayCounter dayARead-onlyInspect
The Counter (Kaunter) till's day for one date (default today, Malaysia time): receipt and voided counts, cash and DuitNow QR totals, the 5-sen cash-rounding total, status (open or closed), the receipt-number range with voided numbers, and sales billed on credit at the till. While status is 'open' nothing has posted: the takings are not yet in sales_summary, cash_position or income_statement, and stock and COGS have not moved. Once 'closed', saleId names the one consolidated cash sale the day posted as, and the figures reconcile to the books. creditSales (the till's "Invoice it" sales) post at once as ordinary credit invoices, so they are already in sales_summary, income_statement, open_invoices and ar_aging, and they are not part of cashTotal, qrTotal or the close: the drawer holds cash and QR only. cashTotal sums the rounded cash receipts; cashRefunds is cash paid out of the drawer for credit-note refunds, cashReceipts is cash invoice payments put into it and cashPayments is supplier bills paid from it, cashExpenses is expenses paid from it, and otherCashIn and otherCashOut are every other entry in the books that put money into or took money out of that Cash account that day (a journal, cash banked, a cash sale outside the till), so the drawer should hold cashReceipts.drawerExpected (= cashTotal − cashRefunds.total + cashReceipts.total − cashPayments.total − cashExpenses.total + otherCashIn.total − otherCashOut.total), the close screen's figure. otherCashIn and otherCashOut read 0 when the counter's cash account is a bank account in Banking. qrTotal is never rounded. Receipts of RM10,000 or more cannot join a consolidated e-invoice and post as their own sale: consolidatedCount/consolidatedTotal cover the rest, individualCount/individualTotal these, and awaitingBuyerCount counts those still without buyer particulars. Counter is an add-on; without it the status is 'not_available'.
Inputs: date.
create_asset_disposal_draftFile a pending asset disposal draft (a person approves in Taokeh)AInspect
Files a pending draft of Dispose on an asset's page. Nothing is posted until an admin or bookkeeper approves in Taokeh; approval disposes it exactly as the page does: depreciation is brought up to the disposal month, depreciation already posted for any later month is taken back (one entry per month, dated that month-end), then one entry clears the cost and the accumulated depreciation, takes the proceeds into the account named, and books the gain or loss. assetId comes from asset_register. Proceeds go into one of the company's cash or bank accounts (asset_register proceedsAccounts); proceeds that went anywhere else, such as a trade-in against a supplier, are recorded with Dispose on the asset's page. The result carries the accumulated depreciation, the net book value, the gain or loss, any months taken back and every journal line, as the rolled-back run produced them. Refused at filing and approval in the page's words: an asset already disposed, proceeds with no account, a date before the asset was bought or put into use, a date in a locked period (a month to take back included), a date on or before an already-owned asset's start date. Also refused here: proceeds below zero. A second disposal draft for the same asset is refused while one waits; if the asset is depreciated or changed before approval, approval refuses and nothing is posted.
Inputs: assetId (required), disposalDate (required), note, proceeds, +2 more.
create_asset_draftFile a pending draft registering a purchase on the asset register (posts nothing)AInspect
Files a pending draft that puts a purchase already in the books on the Fixed Assets register, as "Add to the register" does from the waiting list. It posts nothing, at filing or at approval: the purchase (an expense, a bill or a bank line on a fixed-asset account) is already in the books, and its cost, asset account and purchase date come from that line. lineId is one of asset_register waiting; the rest is the register row: name, category, in-service date (default: the purchase date), residual value, and the method with its life or rate. Nothing is saved until an admin or bookkeeper approves in Taokeh. Refused at filing and approval in the form's words: a line no longer waiting or already registered, a residual not below the cost, an in-service date before the purchase, a straight-line asset with no life, a reducing-balance asset with no rate or one above 100%. A second draft for the same purchase line is refused while one waits, naming it. An asset bought on hire purchase or a loan, or one owned before the books started, is added on the New asset form in Taokeh; a cash, bank or card purchase is an expense first (create_expense_draft), then registered here.
Inputs: name (required), lineId (required), method (required), cost, +16 more.
create_bank_account_draftFile a pending draft adding a bank account or credit card to Banking (a person approves in Taokeh)AInspect
Files a pending draft of Add bank account (kind BANK) or Add credit card (CARD) on Banking: the account, its own account in the chart (the next free code at approval; a card's is a liability) and its account number and currency. A card's number is its last four digits only; a longer one is refused. The draft carries no opening balance: money a bank account held when the books started is entered in Taokeh on Settings → Starting money, a card's balance owed on Opening balances. Nothing is saved until an admin or bookkeeper approves in Taokeh; approval adds it exactly as the Banking form does and posts nothing. Refused at filing and at approval: a name a bank account or card of the company already has (spacing and capitals ignored), or an account number already on one (spaces and dashes ignored), naming that account. One draft per name waits at a time. Bank lines come in with import_bank_statement.
Inputs: name (required), kind, note, currency, +2 more.
create_bank_clearing_draftPending draft: tick bank entries as cleared (human approves in Taokeh)AInspect
Files a pending draft of ticks for Banking → Clear transactions: which book entries appear on the bank statement, each paired with a statement line or given the date it cleared. Nothing is ticked until an admin or bookkeeper approves in Taokeh; approval ticks them as the page's Save ticks does (a tick posts nothing to the books and can be un-ticked). Every id comes from bank_reconciliation_report: bankAccountId, statementId (or asOf, a date, when there is no statement), and per item entryId (from clearStep.uncleared) with either statementLineId (from clearStep.candidateLines; the entry clears on the later of the line's date and its own) or clearedDate (YYYY-MM-DD; defaults to the reconciliation date, as on the page). At most 300 items per draft. A cancelling pair from hints.cancellingPairs is two items with no line and the pair's clearDate. Refused by name at filing (the real tick is run and rolled back) and at approval: an entry that is not uncleared on this account up to the date (posted from a statement line, the opening balance, already ticked, dated later); a line that is posted, fully paired, dated after the reconciliation date, without room left for the entry, or moving money the other way; a cleared date before the entry was booked or after the reconciliation date; a date inside a locked period; a card; a foreign-currency account (Taokeh posts and reconciles only ringgit accounts for now; the refusal names the account); an entry already in another pending draft. If anything the draft was filed against changes before approval, approval refuses and nothing is ticked.
Inputs: items (required), bankAccountId (required), asOf, note, +6 more.
create_bill_draftFile bill draftAInspect
Files a pending supplier-bill draft from a bill that has been read. Only the user's approval in Taokeh posts it: stock received, moving-average cost blended, input SST booked as a non-recoverable cost. Inventory only: every line is a stocked product. Services, non-stock and mixed bills are entered on Taokeh's manual bill form, and an expense already paid is create_expense_draft. The fields follow intake_contract(doc_type:'bill'); vendorId and each line's productRef are ids from resolve_vendor and resolve_product. The server re-computes every line quantity from the tally, and the grand total; its figures are the ones that post. term is the supplier's payment term as printed: it drives the payables aging, the overdue badge and the 8-week cash forecast, and for the five preset terms Taokeh fills the due date itself. The original bill image or PDF can ride the draft and lands on the posted bill on approval: inline (attachmentBase64 + attachmentMediaType + attachmentBytes) for small files or a client that cannot reach taokeh.my, attachmentToken from request_attachment_upload for larger ones, or shoeboxItemId for a shoebox photo; one lane per call. Line keys outside this schema are refused by name (with the likely intended key), and nothing is filed.
Inputs: lines (required), purchaseDate (required), paymentMethod (required), term, +16 more.
create_contact_draftFile contact draft from a name cardAInspect
Files a pending contact draft from a business card. The caller reads the card and passes the fields (personName, company, role, phones, emails, address; for a vendor, country) together with the card image, which is required: the owner checks the fields against the picture before approving, and a draft without it is refused. Nothing reaches the address book until the owner approves in Taokeh; approval files the person under the company (matched to an existing customer or vendor, or created new) with the card image kept on the record. partyKind says which side of the book: 'customer' (the default) or 'vendor'. partyName files the person under an existing company spelled differently from the card. A field left empty reaches the reviewer empty; notes with needsReview carries anything unreadable, a blurry photo, or a card with two people. The image goes inline (attachmentBase64 + attachmentMediaType, with attachmentBytes) or as an attachmentToken from request_attachment_upload, not both. Returns the fields as read back, plus review and approval links.
Inputs: personName (required), role, notes, emails, +13 more.
create_contra_draftFile a pending contra set-off draft settling one side in full (approved on its review page in Taokeh)AInspect
Files a pending draft of Contra set-off: what a customer owes the company is set off against what the company owes the same business as a supplier. Customers and suppliers are separate records, so whether they are one business is the approver's call: the review page shows the two side by side, with any same name, BRN or TIN. The two sides set off the same ringgit amount; one side is settled in full: every invoice at exactly what it still owes (open_invoices outstanding), or every bill at exactly what is still owed on it (search_documents docType bill, outstanding). A part set-off, or an invoice or bill with a live credit or debit note against it, is recorded by hand on Banking → Contra set-off. Every named document must be open; a refusal lists what each named document still owes. Nothing is posted until an admin or bookkeeper approves it on its review page (no one-tap approval); approval records it exactly as the contra page does: A/R and A/P both go down by the amount, no money moves and no tax is charged. The result carries both sides, the amount and the journal lines. Refused at filing and approval in the page's words: the sides not equal, a document of another customer or supplier, a foreign-currency document, an amount over what a document owes, a date in a locked period. One contra draft per customer and supplier pair waits at a time; if a document is paid, credited or set off before approval, approval refuses and nothing is posted.
Inputs: date (required), vendorId (required), customerId (required), billAllocations (required), +4 more.
create_credit_note_draftFile credit-note draftAInspect
Files a pending credit-note draft: a sales return, short delivery, price correction or allowance that reduces what a customer owes. It does not post. On approval in Taokeh it reduces the customer's balance and reverses the revenue and SST; if the approver says the goods came back, it restocks only lines the original invoice shipped, up to the quantity shipped. Field shapes: intake_contract(doc_type:'credit_note'). kind:'against_invoice' credits one invoice (originalDocId from search_documents, or originalDocNumber). kind:'allowance' is a standalone credit: never linked to or capped by an invoice, no inherited SST codes, never restocks. Amounts are positive; Taokeh stores the note negative. A discounted invoice line is credited at its own unit price before discount and Taokeh shares the discount out by quantity (listed under sharedDiscounts). A line credits at most the units that invoice sold, net of earlier credit notes, in the invoice's own unit of measure. When every goods line is credited in full (no earlier credit note), Taokeh adds the invoice's rounding or adjustment lines itself; each line then carries the invoice's own SST code (or none), one per invoice line, or the return is refused. A one-tap approval posts money-only, and is refused if the total changed since filing (for example an SST change). An invoice already reversed from a Shopee, TikTok or Shopify Returns page is refused, as its reversing entry credits it in full. Scope: a sale that never happened is voided by the owner in Taokeh (there is no AI lane for voiding); an invoice typed wrong is corrected by update_invoice_draft; a posted credit note typed wrong by update_credit_note_draft; a filed draft by revise_draft (kind 'credit_note'). Line keys outside the schema are refused by name, with the likely intended key, and nothing is filed.
Inputs: kind (required), lines (required), cnDate (required), notes, +9 more.
create_customer_refund_draftFile a pending draft recording a customer refund on a money-out bank line (a person approves in Taokeh)AInspect
Files a pending draft of Refund on a credit note with credit left, or on an overpaid invoice: the money the company already paid back to the customer, recorded on the money-out bank line it went out on. It never pays anything: the line is already on an imported bank statement. The refund is the line's amount, up to the credit left. Nothing is posted until an admin or bookkeeper approves in Taokeh; approval records it exactly as the Refund page does (Dr A/R, Cr the bank) and the credit left goes down by it; the line is matched. A line already posted to the customer posts nothing new: approval only matches it to the document. The result carries the amount, the credit left before and after, the bank line and the journal lines. Refused at filing and approval in the page's words: no credit left, credit the invoice already used, a line over the credit left, a money-in line, a line already matched, a line on a foreign-currency account, a date in a locked period. A line that looks like money already in the books is refused: the person confirms a separate payment on the Refund page. A line not from a bank statement of this company is answered as not found. One refund draft per bank line waits at a time. A refund paid from the cash drawer has no bank line: it is recorded with Refund from Cash on the credit note's Refund page.
Inputs: saleId (required), bankTransactionId (required), note, needsReview.
create_debit_note_draftFile debit-note draftAInspect
Files a pending sell-side debit-note draft: an additional charge on an invoice this business already issued (an undercharge, a price revised upward after delivery, a missed surcharge). It does not post; on approval in Taokeh it increases what the customer owes and the output SST. Field shapes: intake_contract(doc_type:'sales_debit_note'). The original invoice is required (originalDocId from search_documents, or originalDocNumber); there is no standalone shape, and a charge with no invoice behind it is a new invoice (create_invoice_draft). unitAmount is the amount added per unit (the shortfall, not the new price); quantity defaults to 1. Every line names a product that appears on that invoice. Money only: a debit note moves no stock and touches no COGS; extra goods delivered are a new invoice. There is no cap on the charge; the approver sees the original invoice's total beside it, and the result returns it as against.invoiceTotal. A one-tap approval is refused if the total changed since filing (for example an SST change). An invoice reversed from a Shopee, TikTok or Shopify Returns page is refused at filing and at approval. Scope: Taokeh's /debit-notes page is the buy side (purchase returns), with no AI lane for creating one; a posted buy-side note is corrected by update_supplier_debit_note_draft. A posted sell-side debit note has no correction lane: the owner voids it in Taokeh and a new one is filed. A filed draft is amended by revise_draft (kind 'sales_debit_note'). Line keys outside the schema are refused by name, with the likely intended key, and nothing is filed.
Inputs: lines (required), dnDate (required), notes, reason, +7 more.
create_delivery_order_draftFile delivery order draftAInspect
Files a delivery-order draft in Taokeh: the paper that goes with goods leaving the business. A delivery order posts nothing and moves no stock; stock moves when it is invoiced. The draft stays pending until a person approves it in Taokeh, which creates a real delivery order. customerId is the id returned by resolve_customer; leave it out for a delivery order with no customer. productRef is the id or exact SKU returned by resolve_product. Lines take the quote's shape (intake_contract(doc_type:'delivery_order')). The server recomputes every line quantity from the tally and the delivery order's total; its figures are the ones the approved delivery order carries. On a company that keeps stock counts, approval checks the goods are on hand and refuses when they are not; the draft then stays pending. needsReview with a short notes line flags doubts for the reviewer; notes is a note to the reviewer, not the delivery order's own notes. A matching pending draft (same reference, date and total) is returned instead of a second one. Line keys are strict: a key not in the schema is refused by name and nothing is filed. Returns the draft id, computedTotal, and review and approval links.
Inputs: lines (required), doDate (required), notes, reference, +3 more.
create_delivery_order_invoice_draftFile a pending draft invoicing open delivery orders (a person approves in Taokeh)AInspect
Files a pending draft of Invoice on Delivery orders: one invoice for one or more open delivery orders of one customer in one currency, as the Consolidate → Invoice page does with those orders ticked. paymentMethod CREDIT (on account, the default) takes an optional term and dueDate (left out: derived from the term, as the page does); CASH takes neither. The tax rate box is left blank and the default stock location is used, as on the page; the location stock comes off is named in the result. Nothing is posted until an admin or bookkeeper approves in Taokeh; approval invoices them exactly as the page does, marks each delivery order invoiced and, on perpetual stock, moves the stock. The result carries the invoice (customer, lines, subtotal, tax, total, stock moved) and the journal lines, as the rolled-back invoice produced them; its number is given at approval. Refused at filing and approval in the page's words: a delivery order not open, two customers or two currencies, an order made from a quote that charged one tax rate when the rate cannot be told (it is typed on the page), a date in a locked period, a stock shortfall. Also refused at filing: a delivery order already in another invoice draft waiting for approval. One draft per set of orders waits at a time; if an order is edited, invoiced or voided before approval, approval refuses and nothing is posted.
Inputs: saleDate (required), deliveryOrderIds (required), note, term, +3 more.
create_depreciation_draftFile a pending depreciation run draft (a person approves in Taokeh)AInspect
Files a pending draft of Run depreciation on Fixed Assets, through a date. Nothing is posted until an admin or bookkeeper approves in Taokeh; approval runs it exactly as the page does: one entry per month (Dr depreciation expense, Cr accumulated depreciation) for every active asset's months not yet posted up to through. The result lists the months, each asset's charge and the total, as the rolled-back run produced them; asset_register depreciationNotRun shows the same months beforehand. A run with nothing to post is refused at filing, as is a month in a locked period. One run draft waits at a time; if an asset is added, changed, disposed or depreciated before approval, approval refuses and nothing is posted.
Inputs: through (required), note, needsReview.
create_expense_draftFile expense draftAInspect
Files a paid-expense draft in Taokeh from a receipt. It does not post: the draft stays pending until a person approves it in Taokeh, and only that approval reaches the ledger. debitAccountCode and creditAccountCode are codes listed by expense_accounts; the field rules are in intake_contract. amountUncertain marks a printed total with an uncertain digit; needsReview with a short notes line flags any other doubt for the reviewer. The original receipt can ride the draft and lands on the posted entry on approval, sent one way per call: inline as attachmentBase64 + attachmentMediaType for a small file (with attachmentBytes, so a truncated paste is refused), an attachmentToken from request_attachment_upload for a larger file, or shoeboxItemId for a Shoebox photo. Inline also works for a client that cannot reach taokeh.my for the separate upload. Returns the draft id, review and approval links, and a possibleDuplicate block when a matching entry may already be posted.
Inputs: date (required), amount (required), debitAccountCode (required), creditAccountCode (required), +14 more.
create_invoice_draftFile invoice draftAInspect
Files a sales-invoice draft in Taokeh from a sales note. It does not post: the draft stays pending until a person approves it in Taokeh, and only that approval posts it (and moves stock). customerId is the id returned by resolve_customer; productRef is the id or exact SKU returned by resolve_product; the field rules are in intake_contract(doc_type:'invoice'). The server recomputes every line quantity from the tally and the grand total with SST, and its figures are the ones that post; working and printedTotal are cross-checks. needsReview with a short notes line flags doubts for the reviewer. Line keys are strict: a key not in the schema is refused by name (with the key it probably meant) and nothing is filed. On a perpetual-stock company, an approval that would take an item below zero is refused and nothing posts. The original sales note can ride the draft (the owner sees it at review, s.82 record-keeping) and lands on the posted invoice: inline base64 for a small file, an attachmentToken from request_attachment_upload for a larger one, or shoeboxItemId; inline also works for a client that cannot reach taokeh.my. Returns the draft id, computedTotal, review and approval links, and flags such as discrepancy and quantityOverridden.
Inputs: lines (required), saleDate (required), paymentMethod (required), term, +16 more.
create_journal_draftFile adjusting journal draftAInspect
Files a pending adjusting journal entry: accruals, prepayments, depreciation, corrections, reclassifications, year-end adjustments and reversing entries. It does not post; approval in Taokeh posts it as a normal manual journal the owner can still delete. Field shapes and this company's chart of accounts: intake_contract(doc_type:'journal'). The entry balances to the sen or is refused with the difference named; each line has exactly one side; at least two lines. accountRef matches an account code or exact name: an unknown ref is refused, an ambiguous name returns the candidates, and no account is ever created (accounts are added in Taokeh). The connector never edits or deletes a posted entry; a wrong one is corrected by a reversing entry (same accounts and amounts, sides swapped) plus the correct entry, and search_journal finds the original. Lines on a control account (receivables, payables, inventory, SST control, opening-balance equity) are allowed, flagged, and approvable only on the full review page. A journal that would leave a posted owner withdrawal over-repaid is refused at approval; when the books already stand that way the draft is filed with ownerLoanRefusal and approvable only on the full review page. Lines on Contra Clearing (1016 in the default chart) or Refund Clearing are refused. Scope: a bill, sale, paid expense or customer payment carries party, SST and stock effects a journal skips, and is filed by create_bill_draft, create_invoice_draft, create_expense_draft or create_receipt_draft. A working paper can ride the draft: attachmentToken (from request_attachment_upload) or attachmentBase64 with attachmentMediaType and attachmentBytes, not both. A filed draft is amended by revise_draft (kind 'journal').
Inputs: lines (required), entryDate (required), memo, notes, +9 more.
create_leave_draftFile a pending leave draft: leave recorded on an employee’s behalf (a person approves in Taokeh)AInspect
Files a pending draft of Record leave on the Leave page: leave entered on an employee's behalf, approved as it is recorded. Nothing changes until an admin, the Payroll role or a Bookkeeper + payroll login approves in Taokeh; approval records it exactly as Record leave does, with the approver as the person who approved it, and it counts against the balance at once. leaveType is one of ANNUAL, SICK, HOSPITALIZATION, MATERNITY, PATERNITY, UNPAID; endDate left out means a one-day leave; halfDay applies to a single date. The result carries the counted days (Sundays and the public holidays the employee observes are not counted, and are named), the balance left for that type after it, and, for unpaid leave in a month whose payroll run is still a draft, the months whose run rows need the unpaid days entered by hand. Refused at filing and approval in the page's words: an employee who is not active, dates across two years, no working days in the range, leave overlapping leave already recorded or applied for, more days than the balance, unpaid leave in a month whose payroll run is finalized or posted. One draft per employee and date range waits at a time. Admin, or bookkeeper with the payroll role, only; any other connection is refused.
Inputs: leaveType (required), startDate (required), employeeId (required), note, +4 more.
create_leave_void_draftFile a pending draft voiding leave an admin recorded (a person approves in Taokeh)AInspect
Files a pending draft of Void on the Leave page, for leave an admin recorded. It is how recorded leave is corrected: void it, then record it again with create_leave_draft. leaveId comes from leave_register (voidableByDraft). Nothing changes until an admin, the Payroll role or a Bookkeeper + payroll login approves in Taokeh; approval voids it exactly as the page does and the days go back into the balance. Refused at filing and approval in the page's words: leave the employee applied for themselves (cancelled before it starts, or ended early with Return early, on the Leave page), leave already cancelled, unpaid leave in a month whose payroll run is finalized or posted. One void draft per leave waits at a time. Admin, or bookkeeper with the payroll role, only; any other connection is refused.
Inputs: leaveId (required), note, needsReview.
create_payment_draftFile a pending supplier-payment draft (human approves in Taokeh)AInspect
Files a pending supplier-payment draft ("we paid Ah Seng RM5,000 from Maybank on Tuesday against bills 12 and 14"), which raises its payment voucher. Only the owner's approval writes the bank payment and settles the bills, moving payables and the bank as a match in Banking would, and numbers the payment voucher (the next PV number, dated as the payment, naming who prepared and who approved it); until then it prints unnumbered, marked not yet approved (voucherPreviewUrl, opened in Taokeh). It settles an existing supplier's open bills (supplier from resolve_vendor; bills from ap_aging or search_documents), by a lump total (allocated oldest first) or per-bill allocations. A supplier's bill number is not unique, so a reference matching two open bills is refused naming both; purchaseId is exact. MYR only: a foreign-currency bill is refused (Banking → Match handles the exchange difference). Amounts are ringgit, as ap_aging shows them. A payment dated before a bill it pays is an advance that pays the bill on the bill's date (paidBeforeBill in the result); dated on or before the accounting start date, it never settles an opening bill. A credit card cannot be the paying account; card spending arrives on the card's own statement. A payment matching an imported bank line still awaiting review (the given bankAccountId, same amount, within 3 days) is filed but flagged for review, with a warning naming the line, as the same money would count twice; its allocation is proposed on that line by draft_bank_classification. Outstanding is net of live debit notes, and a lump total fills net figures; an explicit amount may reach the bill's open amount before debit notes, leaving the excess as the supplier's refundable credit. Allocation is re-derived at filing and at approval, so a bill settled meanwhile makes the draft refuse. A filed draft is changed with revise_draft (kind 'payment'). Payment proof rides the draft as on create_receipt_draft.
Inputs: paymentDate (required), notes, total, vendor, +11 more.
create_payment_match_draftPending draft: match a posted payment to open invoices or bills (human approves in Taokeh)AInspect
Files a pending draft showing how one bank line already posted as a customer payment (money in) or supplier payment (money out) settles open invoices or bills. Nothing is allocated until an admin or bookkeeper approves in Taokeh; approval applies it as Banking → Match → Save does, payment voucher included. bankTransactionId is a posted line from bank_review_queue (status "posted"). allocations are [{saleId, amount}] for money in or [{purchaseId, amount}] for money out, in ringgit, adding up to the whole line to the sen (no ±0.10 allowance), at most 50. Only documents Banking → Match offers the line qualify: open invoices of the customer it is posted against (or, when that customer has none open, the walk-in customer's: the one marked on its customer page, else 'CASH SALES'), or the supplier's open bills. A supplier payment can also use that supplier's debit note credit, as a negative amount against the debit note. A line with no customer is offered nothing; a refusal lists the documents the line can take. A line posted to the wrong party is unposted, re-tagged and reposted by the owner in Banking. Refused by name at filing and approval: a line not posted, not a payment, already matched in full or in part, or on a foreign-currency account; an entry that booked an exchange difference; a document not open, or an amount over what it owes; a foreign-currency document dated after the payment; an opening document paid on or before the start date; line and document both on or before the lock date; a document twice; a pending match for the line; a payment holding an official receipt applied to another customer; a debit note's credit used before its date; taking money off a bill whose debit note credit was already refunded or used. A ringgit document dated after the payment is a deposit or advance applied on its date (paidBeforeInvoice / paidBeforeBill in the result).
Inputs: allocations (required), bankTransactionId (required), note, lines, +4 more.
create_payroll_run_draftFile a pending payroll run draft for a month (a person approves in Taokeh; the run stays a draft)AInspect
Files a pending draft of a month's payroll run on Payroll → Payroll Runs. When the month has no run, approval creates it as a draft and computes it, as New run followed by Save & recompute does; when the month's run is still a draft, approval sets the given boxes on it and recomputes, as Save & recompute does. Each row names an employee on the run and the boxes to set: allowance, overtime, publicHolidaysWorked, bonus, unpaidLeaveDays, otherDeductions. A box given is set to that value and a box left out stays as it is, so the same row filed twice changes nothing more. Basic salary, days employed, residency and TP1 reliefs are not set here: basic salary is the employee's record (update_employee_draft) and the others are on the run page. The result carries, per employee, the payslip money (basic, allowances, overtime, public-holiday pay, bonus, gross, employee EPF, SOCSO, EIS, SKBBK, PCB, zakat, other deductions, claims, net pay) and the employer contributions, plus the run totals and every note the run gave, as the rolled-back run produced them. Nothing changes until an admin, the Payroll role or a Bookkeeper + payroll login approves in Taokeh. After approval the run is a draft: the connector does not finalize, post, reopen or delete a run, pays nobody, sends no payslip and files nothing with LHDN, KWSP or PERKESO. Refused at filing: a month whose run is finalized or posted, an employee with no payslip on the run, a figure below zero, a run that pays more staff than the company's seats. One draft per month waits at a time; if the run, staff details, leave or claims change before approval, approval refuses and nothing is saved. Admin, or bookkeeper with the payroll role, only; any other connection is refused.
Inputs: month (required), note, rows, basic, +5 more.
create_purchase_order_draftFile purchase-order draftAInspect
Files a pending purchase-order draft: an order to place with a supplier, usually read off their quotation. It posts nothing: approval saves a draft purchase order with no journal entry, no stock movement and no amount owing. The books move when the goods arrive and the user converts the order into a bill in Taokeh, a step this tool does not take; issuing the order to the supplier is also the user's own step, and Taokeh emails nobody. Inventory only: every line is a stocked product; a service or one-off charge goes on the manual purchase-order form. A line may carry an SST code (taxCode, from intake_contract); the order is taxed by its lines' codes, rounded per code on the subtotal, as the bill it becomes is, and the computed total includes that SST. The fields follow intake_contract(doc_type:'purchase_order'); vendorId and each line's productRef come from resolve_vendor and resolve_product. The server re-computes every quantity and the total. A filed draft is changed with revise_draft (kind 'purchase_order'). Goods that have already arrived are a bill (create_bill_draft). Line keys outside this schema are refused by name (with the likely intended key), and nothing is filed.
Inputs: lines (required), poDate (required), term, notes, +7 more.
create_quote_conversion_draftFile a pending draft converting a quote into an invoice or a delivery order (a person approves in Taokeh)AInspect
Files a pending draft of Convert on a quote. target invoice makes an invoice, as Convert to invoice does, and posts its journal lines on approval; delivery_order makes a delivery order, as Convert to delivery order does, which posts nothing until it is invoiced. The whole quote converts: its customer, currency, lines, prices, discounts and tax codes carry over, dated docDate. Nothing is saved until an admin or bookkeeper approves in Taokeh; approval converts it exactly as the quote page does and marks the quote converted. The result carries the document it becomes (customer, lines, subtotal, tax, total, stock moved) and the journal lines, as the rolled-back conversion produced them; its number is given at approval. Refused at filing and approval in the page's words: a quote not open (converted, voided, expired), a quote with no lines, a date in a locked period. One conversion draft per quote waits at a time; if the quote is edited or converted before approval, approval refuses and nothing is saved.
Inputs: target (required), docDate (required), quoteId (required), note, +1 more.
create_quote_draftFile quote draftAInspect
Files a quotation draft in Taokeh. A quote is an estimate: it posts nothing and moves no stock. The draft stays pending until a person approves it in Taokeh, which creates a real quotation that can later become an invoice or a delivery order. A quote may have no customer (a walk-in estimate). customerId is the id returned by resolve_customer; productRef is the id or exact SKU returned by resolve_product. The server recomputes every line quantity from the tally and the grand total with SST, and its figures are the ones that post. needsReview with a short notes line flags doubts for the reviewer. Line keys are strict: a key not in the schema is refused by name (with the key it probably meant) and nothing is filed. A source document can ride the draft (the owner sees it at review, s.82 record-keeping) and lands on the posted quote: inline base64 for a small file, or an attachmentToken from request_attachment_upload for a larger one; inline also works for a client that cannot reach taokeh.my. Returns the draft id, computedTotal, and review and approval links.
Inputs: lines (required), quoteDate (required), term, notes, +13 more.
create_receipt_draftFile receipt draftAInspect
Files a pending customer-payment draft ("customer paid X"). On approval in Taokeh it writes a bank receipt, settles the invoices and issues the official receipt (the next OR number, dated as the payment), as Sales → Receive payment does; nothing posts before that. It settles an existing customer's open invoices: customerId comes from resolve_customer and the open invoices from open_invoices. It takes either a lump total (allocated oldest first) or per-invoice allocations, which the server re-derives against live outstanding amounts. MYR only; a foreign-currency invoice is refused (it is settled in Banking → Payments). Approval books a bank account, so a cash payment is recorded in Taokeh under Sales → Official receipts → Receive payment with Received into = Cash. A receipt dated on or before the accounting start date never settles an opening invoice (that money is already counted in it): allocations naming one are refused and a lump total skips it. The payment proof (bank-in slip, remittance advice) can ride the draft and lands on the settlement entry on approval: inline (attachmentBase64 + attachmentMediaType + attachmentBytes) for small files or a client that cannot reach taokeh.my, or attachmentToken from request_attachment_upload; one lane per call.
Inputs: receiptDate (required), notes, total, customer, +11 more.
create_recurring_invoice_draftFile a pending recurring-invoice draft (human approves in Taokeh)AInspect
Files a pending draft for a new recurring invoice: a schedule that issues the same invoice to the same customer every month, quarter or year (a retainer, subscription, maintenance contract or rent). The owner reviews and approves; nothing is created before that. It takes the customer (customerId from resolve_customer, or customer as an exact existing name; no customer is created), lines (catalogue products with the quantity and unit price billed every cycle), cadence, and startDate, whose day of the month is the billing anchor (a 31st lands on the 28th/29th/30th in shorter months). Optional: endDate, maxOccurrences, title, notes, paymentMethod (CREDIT = owed and paid later, CASH = settled at issue; they book differently). A CASH schedule's money goes to its "Paid into" account, set on the schedule's own page; a proposed schedule starts on the default (Cash for a walk-in customer, otherwise the account cash sales book to). Not settable here: issueMode: "auto" (each cycle files an invoice draft for a person to approve), MFRS 15 revenue spreading (recognition), and the next issue date, which is derived from the start date and cadence and shown on the review page. A line carrying Taokeh's printed per-foot or per-piece note (like "(400' @ RM 1.60/ft)") is refused: a schedule holds no size or tally, so it would bill without its rounding line every cycle. Those invoices are filed by create_invoice_draft in their filed form. On an update, such a line already on the schedule may be sent back unchanged.
Inputs: lines (required), cadence (required), startDate (required), notes, +7 more.
create_supplier_debit_note_draftFile supplier debit note draftAInspect
Files a debit-note draft against one supplier bill: goods sent back to the supplier, or a credit the supplier gave on that bill. It lowers what is owed to the supplier once a person approves it in Taokeh; nothing posts before then. purchaseId is the bill's id (search_documents, docType 'bill'); the bill must be in ringgit. Each line names a product on that bill (productId from resolve_product), the quantity, and optionally unitAmount (default: the bill line's cost) and billLineNo (needed when the product is on more than one line of the bill). goodsReturned on each line says whether the goods physically went back; it only pre-selects the reviewer's answer. The draft is approved on its review page only, where the person decides line by line whether stock goes out; there is no one-tap approval link. One draft waits per bill: a second filing on the same bill is refused, naming the waiting draft, which revise_draft changes or, if you filed it, withdraw_draft takes back (a draft older than 30 days is replaced). The bill line's discount is shared out by quantity when a line is returned at the bill's cost; tax follows the bill. At filing the note is run through the same checks as the app's debit-note form: never dated before the bill, not in a locked period, no more than the bill still has un-returned per product, and above what the bill still owes the supplier's credit note number (supplierCreditNoteNo) is needed. A refusal files nothing and names the fix. Returns the draft id, the note's computedTotal and the review link.
Inputs: lines (required), dnDate (required), purchaseId (required), notes, +3 more.
create_supplier_refund_draftFile a pending draft recording a supplier refund on a money-in bank line (a person approves in Taokeh)AInspect
Files a pending draft of Refund on a supplier debit note with credit left, or on an overpaid bill: the money the supplier already paid back, recorded on the money-in bank line it came in on. The refund is the line's amount, up to the credit left. Nothing is posted until an admin or bookkeeper approves in Taokeh; approval records it exactly as the Refund page does (Dr the bank, Cr A/P) and the credit left goes down by it; the line is matched. A line already posted to the supplier posts nothing new: approval only matches it to the document. The result carries the amount, the credit left before and after, the bank line and the journal lines. Refused at filing and approval in the page's words: no credit left, credit the bill already used, a line over the credit left, a money-out line, a line already matched, a line dated before the debit note, a line on a foreign-currency account, a date in a locked period. A line that looks like money already in the books is refused: the person confirms a separate payment on the Refund page. A line not from a bank statement of this company is answered as not found. One refund draft per bank line waits at a time.
Inputs: purchaseId (required), bankTransactionId (required), note, needsReview.
customer_statementCustomer statementARead-onlyInspect
One customer's statement of account: the same rows, running balance and closing figure as the Statement PDF on the customer's page. Takes customerId (from resolve_customer) or customer (a name, resolved like open_invoices; an ambiguous name returns candidates), and optional from/to (YYYY-MM-DD). Each line in lines is what the PDF prints, in order: document (an invoice, credit note or debit note; charge is what it put on the customer's account, which can be lower than the invoice total, such as a marketplace order's net payout, and is negative on a credit note), payment (money applied to the document above it, on or before to) and on_account (a payment received but not applied, in payment, or a refund paid out and not applied, in charge). balance is the running balance and closingBalance the total outstanding the PDF prints. With no from, the statement covers the whole history and its closing equals the customer's A/R aging total as of to (except where a bank line was matched to invoices for more than it booked to A/R, an internal fix never printed for the customer). With from, it lists only documents and on-account payments from then, with no balance brought forward, so its closing is the period's own figure. With no to, it runs to the later of today and the customer's latest document or payment; period states the dates used. Capped at 300 lines; when more is true the closing and totals are still exact, and a later from shows the rest. With vendorId (from resolve_vendor) or vendor instead, it is that supplier's statement, as the Statement PDF on the vendor's page prints it: document lines are bills and buy-side debit notes, payment lines the money paid, and closingBalance what the company owes the supplier.
Inputs: to, from, vendor, customer, +2 more.
daily_briefDaily briefAInspect
The morning brief in one read: today's and this month's sales and expenses, cash position, who owes the business, what is waiting for approval, tax position and low stock. Same figures as business_snapshot, cash_position, ar_aging, tax_position and low_stock, plus the pending-approval queue. cash.total is liquid money only (cash, banks, gateway float, the Shopee Wallet). An owner advance comes back separately as cash.ownerFunding (for a sole proprietor or partnership, only an old Shareholder Loan balance, flagged fromBeforeBusinessType), and card debt as cash.cards / cash.cardsOwing; both are liabilities, not part of the cash total. Receivables: the overdue buckets count documents only, a credit note raised against a ringgit invoice in that invoice's bucket (Current when it is not yet due) and any other credit in Current (the dashboard's figure); receivables.unmatchedPayments is customer money received but not yet applied to an invoice, and receivables.depositsForLaterInvoices is money already matched to an invoice dated later (it pays that invoice on its date); both are negative and already netted in receivables.total. approvals.total counts decisions, not rows: an operational to-do counts as 1, and each item's count gives its size. A staged set (staged_documents, staged_products, …) counts 1; its rows is how many are waiting, flagged how many need a human look, and fenced how many are dated on or before the accounting start date (already carried by the opening balances), which become enterable only if they are left out or the start date moves. Opening the brief also expires AI drafts left pending over 30 days, as the dashboard does.
Inputs: no named parameters.
draft_bank_classificationSuggest bank-row categories (human reviews in Taokeh)ADestructiveInspect
Saves proposals for up to 50 bank rows waiting in Banking → Review (imported statement lines and hand-typed rows): a category, and optionally a contact, a ledger account, invoice or bill allocations and a reason. Row ids come from bank_review_queue. Proposals only: the owner sees each as an 'AI suggestion' (the account pre-selected, allocations pre-filled in the Match pane) and confirms and posts every line; nothing here posts or moves money. A 'Proposals from your AI' panel lets the owner accept a batch in one tap, which sets category and contact only. Only suggested or uncategorized rows take a proposal; decided rows and statement lines already paired with a book entry are refused. Each row's outcome is reported. A row can come back with a warning and possibleTwin {entryId, ref, name, date, kind}: kind 'bookEntry' is a book entry on no statement (cleared by create_bank_clearing_draft), kind 'cardBill' is a line paying the card bill (the owner excludes it; a card has no clearing), and kind 'cardLinePosted' means the card line is already posted, so posting both counts the bill twice; kind 'earlierStatement' the same line on an earlier statement {statementId, fileName, lineId}: the owner ignores this one. The warning names the entry as the owner knows it (its name), not by a BT- code. A proposal on a foreign-currency account's line is saved with a warning: those lines are not posted or matched yet. A proposed OWNER_WITHDRAWAL later caught by the loan fence (see category) shows on Banking → Review as the fence places it (bank_review_queue's yourProposal.shownOnReviewAs) and is never batch-accepted. A row whose existing suggestion reads "You set this rule on " follows the owner's own bank rule; a different proposal is still accepted. A proposal booking the line to the Shareholder's Loan can be refused at Post when it would leave a posted owner withdrawal over-repaid; the row then comes back applied with that sentence as a warning.
Inputs: suggestions (required).
employer_cost_estimateEmployer cost estimateARead-onlyInspect
Costs a hypothetical hire from a monthly wage: what the employee would cost the employer each month (wage plus employer EPF, SOCSO, EIS and the HRD Corp levy at this company's rate) and what they would take home after employee EPF, SOCSO, EIS, SKBBK and PCB/MTD. SKBBK (PERKESO Lindung 24 Jam) is included for every hire. Options: residency (RESIDENT default, or NON_RESIDENT, taxed at a flat 30%); citizenship (MALAYSIAN or FOREIGNER: a foreigner who is not a permanent resident pays EPF at 2% employer + 2% employee on at least the RM1,700 minimum wage, with no EIS unless a temporary resident; it also drives the HRD Corp levy but not tax residency); permanentResident (foreigner only: Malaysian EPF rates and EIS); temporaryResident (foreigner, not a PR, holding a MyKAS: EPF stays at 2%, EIS at Malaysian rates); ageBand (UNDER_60 or 60_AND_OVER: reduced EPF and SOCSO Category 2); epfEmployeeRate for an elected reduced rate (for a foreign worker on the 2% rate, only a higher rate elected on KWSP Form 17A changes their share). The PCB uses Taokeh's implementation of LHDN's computerised MTD method. Defaults are resident, single, no children and no TP1 reliefs; every assumption is listed in the reply. It is an estimate on stated assumptions, not a quote or tax advice. Admin, or bookkeeper with the payroll role, only. Read-only: it creates, hires and files nothing.
Inputs: monthlyWage (required), ageBand, residency, citizenship, +3 more.
expense_accountsExpense accountsARead-onlyInspect
The accounts a paid-expense draft can use, by code: expenseCategories (what the money was for) and paidFromAccounts (where it came from). expenseCategories is the everyday set: expense and asset accounts, without cash/bank, the A/R and Inventory controls, contra accounts, and the accounts only Taokeh's engines book to (depreciation, foreign-exchange losses, loss on disposal, cash rounding, and salaries and employer statutory once payroll runs in Taokeh). On filing, a category code is refused only if it is not an expense or asset account, or is a cash/bank, control or contra account, so an engine account such as depreciation is accepted by code. A paid-from code can be any asset, liability or equity account except the A/R and A/P controls, the zero-balance clearing accounts (Contra Clearing, Refund Clearing) and a foreign-currency bank or card (Taokeh posts ringgit accounts only for now); those are left out of paidFromAccounts and refused. Money the owner paid personally is paid from ownerPocketCode: Capital Contribution for a sole proprietor or partnership (which has no Shareholder's Loan, so that account is left out and refused), the Shareholder's Loan otherwise. When ownerPocketCode is null, ownerPaidRefusal says what the owner fixes first, and an owner-paid draft is refused until then.
Inputs: no named parameters.
expenses_summaryExpenses summaryARead-onlyInspect
How much you have spent: your paid expenses today and this month so far.
Inputs: no named parameters.
financial_timeseriesFinancial time series (monthly)ARead-onlyInspect
A month-by-month series of this company's figures over a window, in one call: per month revenue, cogs, grossProfit, opex, netIncome, cashClose, arClose, apClose and netCashMovement, in MYR. from and to are YYYY-MM, inclusive, at most 36 months. metrics limits what is computed (any of pnl, cash, ar, ap, cashflow; default all); a metric left out is omitted from every month, not zeroed. A month still running comes back partial: true with through (today): its figures are month-to-date. Months that ended before the company's accounting start date are left out of the series, not zeroed (that history is in the old system; a note names the cutover date, and back-dated entries before it can still show on /reports), and the month containing that date is partial: true with startsAt. Months not yet started are absent too. An absent month is missing history, not a month without trading. Every figure comes from the same engine as the web reports for the exact dates stated: the P&L from /reports; cashClose from the cash-position liquid set (cash, banks, gateway clearing; owner advances and card debt are not in it); arClose and apClose from the aging totals at month end; netCashMovement from the cash-flow report. netCashMovement and the change in cashClose use different account sets, so they can differ. A window too wide for the call's time budget is refused, naming how many months it managed. It returns figures only: no ratios, growth rates, trend labels or commentary.
Inputs: to (required), from (required), metrics.
find_in_taokehFind in TaokehARead-onlyInspect
A feature finder for Taokeh's own screens, features and settings; it does not search the books. Takes a natural-language query about a capability ("where do I turn on payment reminders", "how do I connect Shopee", "where's the SST setting") and returns the top matches from Taokeh's live feature catalogue, each with the page's deep-link URL(s), a one-line description, an optional configHint (a feature's options live on its own page, not a global Settings menu) and an addOn flag (a paid add-on this company may not have). It cannot recognise a record: a document number, a customer's DO/PO number, a name or an amount still ranks the closest-worded page. Records are read by search_documents (sales and purchase documents, and a customer's Ref No), search_expenses, search_journal, resolve_customer / resolve_vendor / resolve_product and open_invoices. When nothing matches, it says so. It changes no setting; settings are changed by a person in the app.
Inputs: query.
general_ledgerGeneral ledgerARead-onlyInspect
The general ledger for a date range, for every account or one account (accountCode), with the same figures as Reports → General Ledger and its CSV. Per account: opening (the balance before from, from the first entry; there is no year-end close), the posted rows in date order (date, reference, memo, debit, credit, the running balance, journalEntryId), totalDebit/totalCredit for the range, movement and closing. Balances are signed by statement section (positive = a debit balance for assets and expenses, a credit balance for liabilities, equity and revenue), so closing equals that account's balance in trial_balance as of to. An account with no line in the range and a zero opening is left out and counted in accountsOmitted. At most 300 rows come back across all accounts, in account-code then date order. When more is true the rows are cut short, while every account's opening, totals and closing stay exact and hiddenRows on an account counts its lines not shown; a narrower range or a single accountCode returns the rest.
Inputs: to (required), from (required), accountCode.
get_attachmentGet original document linkARead-onlyInspect
Returns a short-lived link to the original document filed against something in the books: the receipt behind a posted expense, a photo waiting in the shoebox, or the receipt, sales note, supplier bill, bank-in slip or name card riding a pending draft. Takes owner plus the id of what owns it: for a posted expense, the expenseId from search_expenses (plus its attachmentId when it carries more than one file); for a draft, the draftId; for a shoebox photo, its id from shoebox_items. search_expenses rows and every create_*_draft / revise_draft result say whether an original is on file. Returns a signed URL (about 15 minutes, usable by anyone holding it), the filename, the media type and the size in bytes. The file's bytes are not inlined, and Taokeh does not read or OCR the file. An approved draft reports no original, because on approval the file moves onto the posted document. Read-only; it emails nobody, and no link reaches another company.
Inputs: id (required), owner (required), attachmentId.
get_document_pdfGet document PDF linkARead-onlyInspect
Returns a shareable link to the PDF of one invoice, quote or credit note (they share one layout), payment voucher, or customer or supplier statement, the document number and when the link expires. The document is identified by docId (from search_documents) or its printed docNumber; a number that matches several documents returns the candidates. A payment voucher is the PDF on Purchasing → Payment vouchers, by docId or number (PV0001); a void one still returns its link, with status 'void' and a warning naming the voucher that replaced it, if any. A statement takes the customer's or vendor's id as docId and optional from/to: it is the Statement PDF on that party's page for those dates. The link is a signed URL that works for about 15 minutes for anyone who holds it. A voided quote or credit note still has a PDF, stamped with a large diagonal VOID on every page; a voided credit or debit note also says so in words: its header reads Status VOID with no term or due date, the total is labelled 'Total credited' or 'Total charged' in a muted bar, and a line reads 'Nothing is credited now — this credit note was voided on '. Its amount is not money owed or credited. search_documents reports such a note as "Credit note (VOID)". A voided invoice is removed from the books entirely, so it has no PDF. The printed words follow the company's Document language setting (English unless the owner chose Bahasa Malaysia on Settings → Preferences; the same setting covers invoice, quote, delivery order, credit and debit note and purchase order PDFs), not the app language, and cannot be changed per link; names and descriptions print as typed. It emails nobody.
Inputs: docType (required), to, from, docId, +1 more.
import_bank_statementImport bank statement into the review queue (nothing posts)ADestructiveInspect
Imports a bank or credit-card statement that has been read (PDF, CSV or image) into Banking → Review. Nothing posts: the user categorizes and posts each row there. A statement is one account's transactions over a period; intake_contract(doc_type:'statement') lists the company's accounts, their currencies and the balance rule. Inputs: the account id, the printed opening and closing balances, statementDate and beginningBalanceDate when printed, and every row with a signed amount (+ money in, − money out). Opening plus the rows must tie to the closing balance, or the import is refused with the exact difference. A foreign-currency account's statement imports, but its lines cannot be posted or matched yet. A credit-card statement needs signConvention (refused on a bank account); each card line is expensed on its own date, and the line that pays the card bill is excluded automatically. An overlapping period is refused unless confirmOverlap is true. A statement another account of the company already holds (the same balances, dates and amounts, imported through this tool or as a file) is refused, naming that account and linking its statement. The original file is archived on the statement (s.82 record-keeping) when attachmentToken (from request_attachment_upload) or an inline file comes with the import; without one nothing is archived. Repeating an identical import with a token adopts the file onto the existing statement, and adding the two dates records them, without staging any row twice. Single receipts, invoices and bills have their own draft tools.
Inputs: rows (required), bankAccountId (required), closingBalance (required), openingBalance (required), +11 more.
income_statementIncome statementARead-onlyInspect
Profit and loss for a period (from to to): revenue, cost of goods sold, gross profit, expenses and net income. An optional comparison comes in the same call: compare 'previous_period' (the equal-length window just before) or 'same_period_last_year' (the same dates a year earlier), or an explicit window with both compareFrom and compareEnd. It then returns both periods' full statements and, for every line and total, deltaCents and deltaPct, computed server-side in integer cents. deltaPct is null when the earlier figure is zero (no comparable base), and is measured against the absolute earlier figure, so a movement out of a loss keeps its sign. windows gives both windows, their day counts, whether they are the same length (equalLength) and whether either is still open (running to today or beyond); notes states this in words, including when a partial period is set against a full one. On periodic stock, when goods with a cost were sold in the window, cost of goods sold is RM 0 and there has been no stock count this financial year, a notes line says so: gross profit is then overstated until a stock take, or recording cost on every sale (Settings → Accounting).
Inputs: to (required), from (required), compare, compareEnd, +1 more.
intake_contractIntake contractARead-onlyInspect
The shape a Taokeh submission needs, for this company: required fields, how totals, measurements and SST are read, and a worked example from its own data. doc_type is 'expense' (default), 'invoice', 'bill', 'purchase_order', 'delivery_order', 'statement', 'receipt', 'payment', 'credit_note', 'sales_debit_note' or 'journal'. For a company switching from another accounting system: 'historical_document' (one already-issued invoice or supplier bill, staged in bulk by stage_document); 'trial_balance', 'aged_receivables' and 'aged_payables' (staged by stage_opening_balances); and 'accounts', 'products', 'contacts', 'settings' and 'employees' (the chart of accounts, item list, customer/supplier book, company setup and staff list, staged by stage_master_data). The trial balance is matched against the chart of accounts. The 'settings' contract lists every stageable key with its meaning and current value, and every owner-only setting with its reason and page. The 'employees' contract is admin-only. Read-only; nothing posts without the owner's review in Taokeh.
Inputs: doc_type.
leave_registerLeave registerARead-onlyInspect
Leave for a year as the Leave page shows it, with no pay figures: per employee (employeeId, name, staff number, status) the balance of each leave type (entitled, approved, pending, remaining; unpaid leave has no cap), the applications still pending, and the year's approved, recorded and decided leave with its leaveId, type, dates, days, half day, status, whether an admin recorded it, and voidableByDraft (an admin-recorded leave that is still approved: the leave create_leave_void_draft takes; voiding unpaid leave in a month whose payroll run is finalized is still refused there). Pending applications are decided by a person on the Leave page in Taokeh, not through the connector. year defaults to the current year in Malaysia; employeeId narrows the reply to one person. Lists are capped and the reply says when one is cut. Admin, or bookkeeper with the payroll role, only; any other connection is refused. Read-only.
Inputs: year, employeeId.
loan_registerLoan registerARead-onlyInspect
The Financing register as /loans shows it: every loan (loanId, number, lender, description, liability account, original amount, outstanding = original less principal repaid, interest to date, status (ACTIVE, SETTLED, WRITTEN_OFF), how it was opened, the linked asset) with its instalments (date, instalment, interest, principal, whether it came from a bank statement line, note). The register is statement-driven: no amortisation schedule; each instalment's interest is the figure on the lender's statement. A new loan record is added on Financing and an instalment is recorded on the loan's page; a loan payment on an imported bank statement line is proposed with draft_bank_classification's LOAN_PAYMENT category. Read-only.
Inputs: no named parameters.
low_stockLow stockARead-onlyInspect
Products at or below their reorder point right now: the reorder list. Each row: sku, name, on-hand quantity, reorder point and unit; capped, with the true count. Services ("Service — no stock") and the placeholders Taokeh makes to carry document lines (SHOPEE-ITEM, TIKTOK-ITEM, SHOPIFY-ITEM, POS summary items, items added during migration, scanned lines) never appear: they are not stock. Same rule as the dashboard low-stock chip (reorder point set and on-hand ≤ reorder point). On a company using Counter (the till), quantities are as at the last day-close: counter sales move stock once, when the day is closed, so an open trading day shows more on hand than the shelf holds.
Inputs: no named parameters.
my_workMy workBInspect
The connector's own queue in this company, in one read: the AI drafts and proposals filed through it and what happened to them. (1) Pending: everything still waiting on the owner's approval, across every lane (expense, invoice, bill, quote, receipt, supplier payment, contact, credit note, debit note, purchase order, adjusting journal, bank-category proposals), each with reference, party, amount, days waiting, the next step in words and the review link; a bank proposal the review row shows differently carries shownOnReviewAs {category, reason}. (2) Approved since since (default 7 days) and what each became, with the posted document's reference (a supplier payment also its paymentVoucher). (3) Rejected, with the reason verbatim when one is stored (reasonRecorded: true); the owner's "Why?" box is optional, so a refusal can have reason: null and reasonRecorded: false, meaning the reason is unknown. Staged migration rows carry the engine's own refusal text. (4) Staged: migration work (historical documents, opening balances, master data) at a commit door. Params: since (YYYY-MM-DD or ISO), kind (one lane), limit (default 50, max 200); every bucket reports total, returned and a truncation note. Read-only: it approves nothing, and no tool approves on the owner's behalf or moves money.
Inputs: kind, limit, since.
open_invoicesOpen invoicesBRead-onlyInspect
The unpaid (or part-paid) invoices for one customer, oldest first, found by customer name. Each invoice's outstanding is what it still owes, net of payments and of the live credit notes raised against it (a refunded note no longer counts). grossOutstanding is the invoice before those notes: a payment may be allocated up to it (a customer who paid the whole invoice), and anything above outstanding then stays on the credit note as the customer's refundable credit. An invoice its credit notes fully cover is not listed. outstandingBalance is the customer's net balance (these invoices less any payment received but not yet matched to one), so it can be lower than the invoices add up to (see balanceNote).
Inputs: customer (required).
payer_historyPayer historyARead-onlyInspect
How this company has treated one bank counterparty (a payer or payee, named as printed on the statement line): the bank rows a human already confirmed or posted for that name, grouped by category, contact and GL account with a count, date range and total each, plus the suggestion Taokeh would make for it now. The suggestion carries a basis: 'LEARNED' means it was tallied from rows that are still posted (a confirmed-but-unposted row, or an undone post, teaches nothing), with timesSeen giving how many; 'OVERRIDE' means the owner wrote a standing rule for this payer (What Taokeh has learned → Bank rules), which beats the tally; ruleSetOn is its date and timesSeen is 0. An override is the owner's rule, not history in the books. Read-only; the owner confirms every categorization in Taokeh.
Inputs: counterparty (required).
payroll_summaryPayroll summaryARead-onlyInspect
A month's payroll from gross to net, as it was run: gross (basic, allowances, overtime, public-holiday pay, bonus), staff deductions (EPF, SOCSO, EIS, SKBBK, PCB/MTD, zakat), employer contributions (EPF, SOCSO, EIS, HRD Corp levy), net pay, and the employer's total cost (wages plus every employer contribution). Also lists who is on approved leave in the next 14 days. With no month it reads the latest finalized or posted run; month (YYYY-MM) picks one. A draft run carries run.needsRecompute: true means its figures may be out of date (it was reopened, or employee details, pay before Taokeh, a TP1 sign-off or the payroll rules changed since) until the owner presses Save & recompute in Payroll → Payroll Runs; Finalize recomputes again and refuses if any money would move, so a draft's figures are not final. perEmployee: true adds the per-person breakdown (individual salaries) with each employeeId. staff: true adds the employee roster with ids, even before any run. Every figure sums the stored payslips of that run, never a recalculation; with no run, it says so. Admin, or bookkeeper with the payroll role, only; any other connection is refused. Read-only: it creates no run, pays nobody and files nothing with LHDN, KWSP or PERKESO.
Inputs: month, staff, perEmployee.
profit_driversProfit driversARead-onlyInspect
Why net profit moved: a deterministic breakdown, not a model's arithmetic. Compares the current month-to-date with the same day-span of the previous month (day 1 to the smaller of today's day and the prior month's last day), so a partial month is not set against a full one. Returns net profit for both windows and the delta; a drivers bridge (revenue delta, COGS delta, then the operating-expense accounts that moved most: the top 5 by absolute change plus an other roll-up); oneOffs (disposal and FX gains or losses, kept out of the movers; empty when there are none); the prior month's full-month net profit (priorMonthFull); and assumptions. Each driver's direction is its effect on profit ('improving', 'worsening', 'flat'). Amounts are integer cents (RM = cents ÷ 100). month picks another month; a completed past month compares its whole length. On periodic stock with no stock take this financial year and COGS of RM 0 in the window, a notes line says the gross-profit picture is incomplete: COGS is not a real driver there.
Inputs: month.
request_attachment_uploadRequest attachment uploadAInspect
Returns a one-time uploadUrl and an attachmentToken for a file too large to inline as attachmentBase64 (a photo, a multi-page PDF). The file's raw bytes are PUT to uploadUrl within the time limit; the token then goes in place of attachmentBase64 on create_expense_draft, create_invoice_draft, create_bill_draft, create_quote_draft, create_receipt_draft, create_contact_draft or create_journal_draft (the file rides the draft and lands on the posted document on approval), or on import_bank_statement (archived as the statement's original). The file is uploaded before the create or import call that carries the token. A draft already filed without its file adopts it when the same create call is repeated with the identical reference, date and amount plus attachmentToken while the draft is pending (the result says duplicateAttachment:'added'; no second draft); import_bank_statement does the same for an identical account, balances and rows. The link is single-use, expires quickly and works only for this company. A 403 on the PUT from a sandboxed client means the client's network allowlist refuses taokeh.my; attachmentBase64 works inline meanwhile.
Inputs: filename, mediaType.
resolve_customerFind customerARead-onlyInspect
Matches a customer name against this company's real customers, for an invoice or other sales draft. Statuses: resolved (with id, outstandingBalance, the customer's current A/R balance, and contact), ambiguous (with candidates) or none. contact holds what the customer's record holds: email, phone, address, tin, brn, idType, requiresEinvoice, einvCity, einvPostcode, einvState, remindersMuted (an empty field is null), and people filed under it (personId, name, jobTitle, email, phone, address); brn is shown only when idType is, or derives from the TIN as, 'BRN', otherwise it is null with idNumberHidden: true when one is stored. outstandingBalance is net: open invoices less any payment posted to the customer but not yet matched to an invoice, so it can be lower than the invoices add up to, and zero or negative when they have paid ahead. With no exact or prefix match, close existing customers come back with nearMiss: true; such a name is often salesperson shorthand for one of them ("JJ Dungun" for "PERNIAGAAN JJ"). The tool never picks among candidates.
Inputs: name (required).
resolve_productFind productARead-onlyInspect
Matches a product by name, SKU or exact barcode, for a document line. Returns id, sku, name, unit, the default sell price the form would use, and isService (true = "Service — no stock": selling it never counts stock or posts a cost). Plain names or SKUs match best; a barcode must match the saved one exactly. Statuses: resolved, ambiguous (with candidates) or none; the tool never picks among candidates.
Inputs: query (required).
resolve_vendorFind vendorARead-onlyInspect
Matches a supplier name against this company's real vendors, for a bill or other purchase draft. Statuses: resolved (with id and contact), ambiguous (with candidates) or none. contact holds what the vendor's record holds: email, phone, address, tin, brn, idType, selfBill, alwaysExpense, state (an empty field is null), and people filed under it (personId, name, jobTitle, email, phone, address); brn is shown only when idType is, or derives from the TIN as, 'BRN', otherwise it is null with idNumberHidden: true when one is stored. A vendor record holds no bank details. With no exact or prefix match, close existing vendors come back with nearMiss: true; such a name is often shorthand for one of them. The tool never picks among candidates.
Inputs: name (required).
revise_draftRevise a pending draftADestructiveInspect
Corrects a pending draft already filed, in place. It takes the draft's kind and id and a patch of just the changed fields; the server re-validates them as at filing and updates the draft. Fields not sent stay as filed. A payment_match draft's patch takes allocations (the full replacement set) and needsReview. A bank_clearing draft's patch takes items (the full replacement set of ticks, checked as at filing), note and needsReview; which account and statement it ticks toward is not revisable. An asset draft's patch (asset_register, asset_disposal, depreciation_run) takes its create tool's fields except which purchase line or asset it is for, and the door runs again on the revised figures. A payroll_run, leave_record or leave_void draft's patch works the same way, except which month, employee or leave it is for; resending that same value alone files the draft again against the payroll and leave as they are now. Those three are for an admin or a bookkeeper with the payroll role only. A quote_convert, do_invoice, customer_refund, supplier_refund, contra or bank_account draft's patch works the same way, except which quote, delivery orders, bank line, or customer and supplier it is for. A second create is not a correction: an identical waiting draft is returned as it is; a payment_match, bank_clearing, asset, payroll, leave, conversion, refund, contra or bank_account draft refuses a second create for the same target while one waits, and names it; any other second create files a second, separate draft. Only a pending draft can be revised; an approved, rejected or expired draft is refused, naming its status. Revising approves nothing: the draft stays pending, nothing posts, and an earlier one-tap approval link shows the revised figures. A 'revised by your AI' line naming the changed fields, plus the note, is appended to the reviewer's note on the approval card.
Inputs: kind (required), patch (required), draftId (required), note.
sales_summarySales summaryARead-onlyInspect
How much you have sold. With no dates: today and this month so far. With from/to: the invoiced sales for that period, broken down by month, customer and product (a lone from runs to today; a lone to is refused). All figures are MYR (a foreign-currency invoice converts at the rate frozen on it) and count invoices only: credit notes are not netted in, so a period with returns is not net of them. Two tax bases, each named in the payload: on byMonth and byCustomer, total includes tax and exTax is before SST; byProduct is a per-line figure, always before tax, so it adds up to exTax, not to total.
Inputs: to, from.
search_document_linesSearch document linesARead-onlyInspect
Line items of documents in bulk: what was sold or bought, line by line, across many documents in one call (search_documents lists which documents; this lists what was on them). Filters: docType (required), number (partial; on invoices it also matches the customer's Ref No), party, from/to (document date) and productText (product name or line description). docType alone pulls the whole book. Rows: newest document first, in line order, capped at 200 with total, shown and more; each carries docId, docNumber, docDate, party, lineNo, product {sku, name}, description, quantity, unit, unitStamped, unitPrice, unitCost, discount, lineTotal, taxCode, docStatus, currency, fxRate and isMeasureDrift, as stored. taxCode 'OS' means no SST was charged. unitPrice, discount and lineTotal are in the document's currency (fxRate = MYR per unit); lineTotal is after discount, before SST. unitCost is the cost stamped at posting: ringgit on the sell side (line margin in RM = lineTotal × fxRate − quantity × unitCost); equal to unitPrice on a bill, buy-side debit note or purchase order; null on a quote; on a delivery order, the average cost when it was saved. isMeasureDrift marks the measure engine's rounding row (quantity 1, small negative price): it counts in totals, carries no cost and is not a unit of goods; sales lines carry it from September 2026, so older rows read false. Sizes and grades are text in the name and description. unitStamped false means unit is the product's current unit, not the line's own. Voided and cancelled documents are left out. A converted quote's and an invoiced delivery order's lines also appear as invoice lines. A purchase order row carries docStatus DRAFT, SENT, PARTIAL (partly received, the rest still owed) or CONVERTED, plus quantityReceived and quantityOutstanding; received goods also appear as bill lines. lineNo is what the update_*_draft tools' keep entries refer to. Read-only.
Inputs: to, ref, sku, from, +19 more.
search_documentsSearch documentsARead-onlyInspect
Finds invoices, credit notes, sell-side debit notes, quotes, delivery orders, bills, buy-side debit notes and purchase orders by any mix of document number (partial), party name (partial), date range, amount range, due-date window and docType. Returns compact rows (docId, type, number, date, party, total, status), newest first, 20 a page, with more (offset pages on). Invoice rows also carry refNo (the customer's own reference, their DO or PO number; not the invoice number) and dueDate; bill rows carry dueDate, outstanding and their money state in status. A null dueDate is a cash sale or cash bill, outside every due-date window and aging bucket. number matches both the document number and an invoice's refNo. An invoice reversed on a marketplace Returns page has status 'Reversed (Returns page)': neither paid nor owed. Invoices, credit notes, bills and quotes report hasAttachment and attachments (originals get_attachment reads). Invoices, credit notes and sell-side debit notes carry einvoice, the MyInvois status as recorded in Taokeh: validated (uuid, validatedAt), consolidated, platform (the marketplace issues it), exported or none; Taokeh cannot see the MyInvois portal, so none means no validation recorded in Taokeh. Payments (docType 'payment') are returned only when named: one row per bank line, with allocations ({docId, docType, docNumber, party, amount, amountForeign, notes}) for each document it settled, and number/party match the allocated documents. A payment row's docId is a bank transaction id, not a document id. Its source is 'statement', 'receipt_draft', 'payment_draft' or 'manual' (any hand-recorded door; Taokeh does not record which). A negative allocation is a refund. A money-out row carries voucher (the payment voucher's number, live or void) or null; 'payment_voucher' lists the vouchers. Contra set-offs move no bank money, are not payments and are not listed; search_journal reads them.
Inputs: to, ref, from, text, +14 more.
search_expensesSearch paid expensesARead-onlyInspect
Searches paid expenses already posted to the books (the /expenses register) by any combination of reference (partial), memo/description text (partial), date range, amount range and category account code; at least one filter is required. Returns compact rows (expenseId, date, amount, category account code and name, memo, reference), newest first, capped, with a more flag. Each row says whether the original receipt is on file: hasAttachment plus an attachments list (filename, media type, size, attachmentId); an empty list means no receipt is attached. The expenseId and attachmentId are the ids get_attachment reads. A receipt already booked here is booked; filing it again through create_expense_draft would book it twice. search_documents does not cover paid expenses.
Inputs: to, ref, from, memo, +12 more.
search_journalSearch journal entriesARead-onlyInspect
Searches the general ledger's journal entries: every posting, whatever created it (a manual journal, a scanned receipt, an invoice, a bank row, a paid expense, payroll, depreciation). Returns each entry with its balanced lines (account code and name, debit, credit, line description), so it shows how something was booked. Filters, in any combination: date range, text (case-insensitive, matched against the entry memo and its line descriptions), accountCode (entries touching that account), source (what created it) and an amount range on the entry's total debits. At least one filter is required; the whole ledger is never returned in one call. Newest first, capped, with a more flag. search_expenses shows what the /expenses register holds; this shows every ledger entry, including journal-era postings the register never covered. Read-only.
Inputs: to, ref, from, memo, +11 more.
shoebox_itemsShoebox items waitingARead-onlyInspect
Lists the photos waiting in this company's shoebox: paper that people in the business snapped on their phones and sent in, which nobody has read yet. Only waiting items are listed; anything already booked or set aside is absent. Each item has its id, the kind of paper, the file name, type and size, when it arrived (Malaysia time) and who sent it in. There is no amount, because nothing has been read. get_attachment with owner 'shoebox' and the item's id returns the photo; Taokeh does not read it. A draft filed by create_expense_draft, create_bill_draft or create_invoice_draft with shoeboxItemId set gets the stored photo attached by the server, and it moves onto the posted document on approval. An item carrying a pending draft says so (pendingDraft); revise_draft corrects that draft. An item Taokeh itself is already reading says so (beingRead): someone tapped "Book it", that read is paid for, and its draft waits for the owner at the reviewPath given. Reading this list costs no AI credits.
Inputs: limit.
stage_documentStage a historical documentADestructiveInspect
Stages one already-issued historical document (a sales invoice or a supplier bill) from the system this company is migrating from. It is the bulk migration lane for documents issued in the old system or written in a paper book; new invoices and bills are filed by create_invoice_draft and create_bill_draft. The row shape and this company's accounting start date are in intake_contract(doc_type:'historical_document'). Nothing is posted and no per-document approval card is raised: staged documents group into monthly batches the owner reviews and approves at /switch/documents. The lane is open only while the owner has it turned on (/switch) and the books are not locked. Staging the same sourceDocId again updates that pending row; a document the owner has entered or left out is not changed or brought back by this tool, so re-sending a whole export is safe. Documents dated on or before the accounting start date are carried by the opening balances: they stage flagged as not enterable, with no catalogue item created for them. Cost of sales is worked out from stock bought, so a period's supplier bills feed the cost of its sales invoices. The server recomputes quantities and the total (with SST) from the lines and shows sourceTotal beside it. Lines that are not catalogued products (delivery, labour, a service fee, rounding) are ordinary lines with their own wording in productRef: a productRef that matches nothing becomes a non-stock item (no stock, no price, marked as created by the migration), named in the reply. A line without productRef refuses the whole call before anything is staged. A ref matching several products, an ambiguous customer or a disagreeing total stages flagged, held out of bulk approve. The document keeps its original number and date and posts marked historical (no e-invoice, no chasing). Row keys are strict: a key not in the schema is refused by name, with the likely intended key, and nothing is staged.
Inputs: lines (required), docDate (required), docKind (required), sourceDocId (required), +9 more.
stage_master_dataStage master dataADestructiveInspect
Stages this company's master data from the system it is switching from, one kind per call: 'accounts' (chart of accounts), 'products' (catalogue with cutover stock), 'contacts' (customers and suppliers), 'settings' (company setup) or 'employees' (staff list). intake_contract(doc_type: ) returns the fields, rules and current values. Rows land on the owner's Import screens, where they confirm and import. One call carries the whole list for one kind; a later call replaces the staged set. Re-staging after an import double-counts nothing: products upsert by SKU (only the fields sent change; on-hand is untouched), contacts de-duplicate by name, accounts upsert by code. Books impact: a new SKU with openingQty and avgCost posts an opening-stock entry on approval; a changed avgCost on an existing moving-average SKU books the revaluation (refused on FIFO stock). The review screen shows each amount. Accounts carry no figures (balances come by stage_opening_balances); nothing is deleted or deactivated, renames are always allowed, and a type change is refused on an account with postings or a dependent role, bank, card, fixed asset or loan. Settings accept only the keys on intake_contract(doc_type:'settings')'s allowlist; payment credentials, storefront publishing, ads consent, terms acceptances, the books lock and e-Invoice settings are refused by name. Employees: admin only; import creates new people (existing staff change on their own page or through update_employee_draft); statutory flags default on. Website fields (web addresses, visibility, images) and bill-of-materials links are not staged here; a new product starts hidden from the web shop. Row keys are strict: a key not in the schema is refused by name, and nothing is staged.
Inputs: kind (required), rows (required), sourceName, defaultRole.
stage_opening_balancesStage opening balancesADestructiveInspect
Stages this company's opening balances from the accounting system it is switching from: the closing trial balance, the aged receivables (invoices customers still owed) or the aged payables (bills still owed to suppliers). intake_contract(doc_type: 'trial_balance' | 'aged_receivables' | 'aged_payables') returns the fields, the rules and, for a trial balance, this company's chart of accounts. Nothing is posted: rows land on the owner's "Switch to Taokeh" review screens, where they match accounts or check parties and post. One call carries the whole set for one kind; a later call for the same kind replaces the staged set entirely. Taokeh re-derives the totals from the rows and shows them beside sourceTotal. Aged documents dated before the accounting start date are expected: they are the opening documents. Refused while the books are locked, while the owner is part-way through entering the staged set, and for an aged list whose opening documents are already posted. A trial balance may be staged over saved opening balances: approval replaces the whole saved opening entry, and the reply gives the number of saved lines. A row on a bank whose opening balance is already in Banking is refused when the owner posts. A row with a figure on a foreign-currency bank or card is refused (only ringgit accounts post; its ringgit value goes in as a journal against Opening Balance Equity). A row named like Taokeh's zero-balance clearing accounts (Contra Clearing, Refund Clearing) is staged unmatched, for the owner to place. Credit balances on an aged list (overpayments, unapplied credit notes) are not entered as opening documents. An asset already owned needs both a register row ("Asset you already own" on Fixed Assets) and trial-balance lines for its cost (15xx) and accumulated depreciation (1590); with only one, the Fixed Asset Schedule shows a difference. Row keys are strict: a key not in the schema is refused by name, with the likely intended key, and nothing is staged.
Inputs: kind (required), rows (required), sourceName, sourceTotal, +1 more.
stock_levelStock levelsARead-onlyInspect
How many units of one product are on hand now, found by product name, SKU or exact barcode (an ambiguous query returns candidates). onHand is the company total. A service item ("Service — no stock") returns isService:true and onHand:null: it holds no stock. A placeholder Taokeh made to carry document lines (a marketplace item such as SHOPEE-ITEM, TIKTOK-ITEM or SHOPIFY-ITEM, a POS summary item, an item added during migration, a scanned line) returns isPlaceholder:true and onHand:null: any figure it holds is not stock. On a company with more than one stock location, product.locations lists each ({location, isDefault, onHand}; a location without the item reads 0); single-location books omit the list. Locations need not add up to onHand. Less than onHand: the difference is on record at no location (stock booked before locations were set up). More than onHand: a sale took more than its location held, so the extra came off the total but no shelf. onHand is the figure the books value. On a company using Counter (the till), the figure is as at the last day-close, because counter sales move stock when the day is closed, not at each scan.
Inputs: query (required).
stock_movementsStock movementsARead-onlyInspect
The stock movement ledger in bulk: every recorded change to on-hand quantity, across products, newest first. stock_level gives one product's quantity now; this gives what moved, when, why and the balance it left. A revaluation row has qtyDelta 0 and carries the new average cost in unitCost. Every filter is optional: product, from/to (on docDate) and sourceType. Each row: ts (posted), docDate (the document's date; a voided or edited bill's reversal keeps the bill's date, a voided credit or debit note's reversal takes the void date; with no document, the Malaysian posting day), product {sku, name}, qtyDelta (negative took stock out), balanceAfter (company-wide on-hand after the move), unitCost, reason, sourceType, sourceId (the document's id, as search_documents returns it), location on a multi-location company, and editReversal:true on a purchase_void or sale_void row written by an edit, not a void (when the edit kept the product, its repost is the purchase or sale row at the same ts). stockMode says how the company records stock. Under modified_periodic (companies created before 28 Sep 2026 unless switched) selling writes no movement row and stock is trued up at stock take, so missing sale rows are not missing sales or shrinkage; rows written while a company ran perpetual remain, and voiding a perpetually-booked document still writes its reversal row. A stock take at one location can write a pair of stock_take rows under one sourceId with opposite qtyDelta (one at the location, one at no location): the pair nets to zero and moves stock between shelves, not in or out. Capped at 200 rows with total, shown and more. Values are as recorded. It does not value inventory (balance_sheet), compute COGS or margin (income_statement, profit_drivers) or suggest reorders (low_stock).
Inputs: to, sku, date, from, +13 more.
tax_positionTax positionARead-onlyInspect
Your current tax posture in one read: (1) SST — the current bi-monthly period's SST payable if you're SST-registered (registration 'none' ⇒ not registered, nothing to remit); and (2) e-invoice consolidation — whether monthly consolidation is on, the open month, last month's filing due date, and whether last month's consolidated document is generated / LHDN-validated. Basis: SST-02 return figures + the consolidated-e-invoice register.
Inputs: no named parameters.
trial_balanceTrial balanceARead-onlyInspect
Your trial balance as of a date (default today, Malaysia time) — the same figures as Reports → Trial Balance. Each row is an account with a posting on or before asOf: code, name, type, debit / credit (the account's NET posting placed on the side it landed — a contra account shows on its natural side, so the debit column adds up to the credit column) and balance (the account's balance signed by its statement section — positive is normal: a debit balance for assets and expenses, a credit balance for liabilities, equity and revenue; it equals general_ledger's closing for that account from the first entry to asOf). Accounts with nothing posted are left out, as on the page, and counted in accountsWithNoPostings. totals gives the debit and credit column sums and balanced (true when they agree to the sen). An entry dated after asOf is never included. There is no year-end closing journal in these books, so revenue and expense accounts carry their balance since the first entry — the balance_sheet tool closes the year by arithmetic; this tool does not.
Inputs: asOf.
update_bill_draftFile a pending correction draft for a posted bill (admin approves in Taokeh)AInspect
Files a pending correction draft for a supplier bill already posted in Taokeh: a wrong line, quantity, cost, date, term, due date or payment method. Nothing changes until an admin reviews the diff in Taokeh and approves; approval rewrites the bill and keeps its number, attached document and purchase-order link. purchaseId is the bill's real id from search_documents; a bill number is refused. Changeable: purchaseDate, paymentMethod, term, dueDate and lines (the full replacement set; lineNo values come from search_document_lines, docType 'bill'). Everything not sent carries across: supplier, currency and rate, receiving location, batches and SST codes. On a bill received against a purchase order, a set without lineNo changes only prices, discounts and SST codes with every line sent back as it is; with lineNo, quantities can change and lines can be added or removed (a removed line's goods are owed on the order again). A new line of a product already received goes into that product's lot on the bill (refused when it was received into more than one lot). A changed, unmeasured line of a product held in more than one unit on the bill is refused. Refused by name: the supplier, the bill number, the currency or rate, and a bill taxed at a whole-document rate. Refused outright, at filing and at approval: not a bill; validated on MyInvois as self-billed; a live debit note; a payment allocated; dated in a locked period; on the fixed-asset register. On perpetual moving-average stock, a correction Taokeh cannot replay through an item's stock history is refused by name; approval also refuses one that would leave a shareholder's loan over-repaid. A purchase that never happened is voided in Taokeh (no tool voids); a later return or supplier credit is a debit note: create_supplier_debit_note_draft. If the bill changes after it was read, the one-tap approval is refused and revise_draft (kind 'bill_update') re-proposes. dateShift, sent alone, moves up to 200 bills' dates in one draft.
Inputs: notes, proposed, dateShift, purchaseId, +2 more.
update_contact_draftFile a pending contact-change draft (human approves in Taokeh)AInspect
Files a pending draft that changes a customer or vendor already in Taokeh, such as missing tax ids, stale phone numbers or wrong e-Invoice flags after a migration. Nothing changes until the owner reviews the diff (current → proposed, changed fields only) in Taokeh and approves; only that tap writes. contactId is the real id returned by resolve_customer or resolve_vendor; a name is refused, because a near-match would edit the wrong company. proposed holds only the fields to change: name, email, phone, address, tin, brn, idType ('BRN' or 'NRIC'); for a customer also requiresEinvoice, einvCity, einvPostcode, einvState (LHDN 2-digit code), remindersMuted; for a vendor also selfBill, alwaysExpense, state, country. null clears a text field. Any other field is refused by name; a vendor’s bank details are never drafted (a person types them on the vendor’s page). A contact cannot move between customer and vendor. Fields that already match are dropped (not a hidden brn), and a proposal that changes nothing is refused. persons adds, updates or removes the people under the contact in the same draft. One contact per call, so each change is its own reviewable diff. If the record is edited after it was read, the reviewer sees both values and the one-tap approval is refused; revise_draft (kind 'contact_update') re-reads and re-proposes. Returns each field's current and proposed value, plus review and approval links.
Inputs: contactId (required), partyKind (required), notes, persons, +2 more.
update_credit_note_draftFile a pending correction draft for a posted credit note (human approves in Taokeh)AInspect
Files a pending draft that corrects a sales credit note already posted (a wrong line, quantity, price, date or reason); nothing changes until an admin approves the current → proposed diff in Taokeh. Approval re-books the note with the same number, the same invoice and its attachments. creditNoteId is the note's real id from search_documents (docType credit_note); a number is refused. A credit that should not exist is voided by the owner in Taokeh (no tool voids); a later event (more goods back, a further allowance) is a new note, filed by create_credit_note_draft. Changeable: cnDate, reason, and lines as the full replacement set. Each line states goodsReturned, which only pre-fills the admin's per-line stock answer on the review page; one-tap approval never moves stock and is refused when the note already restocked or any line says goods came back. A line's taxCode left out inherits the note's code for that product, else on a coded note the invoice's when it billed the product under one code or none. On a note at a whole-document SST rate (no codes, rate not 0), every line needs a taxCode. A note with a discounted line or a negative rounding/adjustment line takes only date or reason corrections; its lines are changed in Taokeh (Credit notes → Edit). Refused by name: the customer, the number, the invoice credited. Blocked at filing (the real correction is run and rolled back) and at approval: voided; validated, exported or submitted for MyInvois; a refund allocated to it; its invoice gone; a locked period; restocked under the previous stock setting; under FIFO costing, goods it put back that have since left stock, other receipts of its product still in stock, or its stock layers no longer matching what it put back; crediting more than the invoice has left or returning more than it shipped. A no-change proposal is refused. If the note is edited after filing, one-tap approval is refused (revise_draft, kind 'credit_note_update', re-proposes).
Inputs: proposed (required), creditNoteId (required), notes, needsReview.
update_delivery_order_draftFile a pending delivery-order correction draft (human approves in Taokeh)AInspect
Files a pending draft that corrects an open delivery order not yet invoiced; nothing changes until an admin or bookkeeper approves the current → proposed diff in Taokeh. A delivery order posts nothing and moves no stock (stock moves when it is invoiced). Approval re-captures each line's cost from the product's current average cost, as Taokeh's Edit does (a reference that posts nothing). Changeable: doDate, notes (null clears) and lines. Refused by name: the customer, the DO number, the currency or rate, invoicing and voiding. Only an open DO qualifies, checked at filing and at approval. An invoiced DO is closed to edits; its invoice is corrected by update_invoice_draft. Voiding is the owner's step in Taokeh (Delivery orders → Void). A line's taxCode left out inherits the DO's code for that product; where the DO carries that product under more than one code, a code is required. On a tracked (perpetual) stock company, approval refuses a correction that raises a product's quantity past what is on hand (counting other uninvoiced DOs); keeping or cutting a quantity is never refused for stock. Approval updates the document in place (same id and number) through Taokeh's own Edit; fields left out carry across (party, contact, currency and frozen rate, tax). lines is the full replacement set: { keep: } (from search_document_lines) keeps a line untouched; a changed or new line is written in full in the create tool's shape and re-derived by the server. A selling line with a printed per-foot or per-piece note is read into its filed form only when the note's price reproduces it; a purchase line may be sent back as it stands. A no-change proposal is refused. If the document is edited after filing, one-tap approval is refused and the reviewer sees both versions (revise_draft re-proposes).
Inputs: proposed (required), deliveryOrderId (required), notes, needsReview, +1 more.
update_employee_draftFile a pending employee-change draft (human approves in Taokeh)AInspect
Files a pending draft of corrections to an employee already on Taokeh's payroll (IC or passport, EPF/SOCSO/income-tax numbers, salary, designation, statutory flags). Nothing changes until an admin (or a bookkeeper with the payroll login) approves the current → proposed diff in Taokeh; other connections are refused. employeeId is the real id from payroll_summary (staff: true lists the roster, even before the first payroll run); a name is refused. proposed holds only the fields to change; fields the record already matches are dropped, and a no-change proposal is refused. One employee per call. Changes apply to future payroll runs only: no filed payslip, run or year-to-date PCB is recomputed or restated (a filed month is a human decision in Payroll → Payroll Runs). Not settable here, each refused by name with the screen that owns it: TP3 prior-employer figures, TP2 benefits-in-kind, the flat 15% tax regime, and pay before Taokeh this year. bankName and bankAccountNo print on the payslip and the giro list the owner uploads at their own bank; Taokeh never pays anyone and nothing on this connector moves money.
Inputs: proposed (required), employeeId (required), notes, needsReview.
update_expense_draftFile a pending correction draft for a posted paid expense (human approves in Taokeh)AInspect
Files a pending draft that corrects a paid expense already posted (an entry on the Expenses page; its id comes from search_expenses). Nothing changes until the owner or bookkeeper approves the current → proposed diff in Taokeh; approval re-books the entry as Expenses → Edit does, keeping its receipt. Only the fields sent change; the rest carry across. Changeable: date, amount (gross ringgit paid), inputTax (input SST inside it), debitAccountCode (category) and creditAccountCode (paid from), both codes from expense_accounts, memo and reference. Ringgit only; the currency and receipt are not changeable. An expense that never happened is deleted by the owner in Taokeh (no tool deletes); a later refund or further payment is a new entry (create_expense_draft, or a reversing journal via create_journal_draft). Blocked at filing (the real correction is run and rolled back) and at approval: not a paid expense; the old or new date in a locked period; a category that is not a cost account; a paid-from account that cannot pay; an entry split across more lines than the expense form shows; a new date, category or amount, or a paid-from on the asset's own account, on an expense that is on the fixed-asset register (the refusal names the asset). A no-change proposal is refused. If the expense is edited after filing, one-tap approval is refused (revise_draft, kind 'expense_update', re-proposes). Approval refuses a correction that would leave a posted owner withdrawal over-repaid (the Shareholder's Loan in debit on some date) or, for a sole proprietor or partnership, a manually reclassified date no longer nil; when that is already so as the books stand, the result carries ownerLoanRefusal and no one-tap link.
Inputs: entryId (required), proposed (required), notes, needsReview.
update_invoice_draftFile a pending correction draft for a posted invoice (human approves in Taokeh)AInspect
Files a pending correction draft for an invoice already posted in Taokeh: a wrong line, date, payment method, term or reference. Nothing changes until an admin reviews the diff in Taokeh and approves; approval rewrites the invoice and keeps its number, attached document and reminder history. saleId is the invoice's real id from search_documents; an invoice number is refused. Changeable: saleDate, paymentMethod, refNo, term, dueDate and lines (the full replacement set). Refused by name: the customer, the invoice number, and the lines of an invoice deferring revenue under MFRS 15; once any deferred revenue is recognised the invoice is closed to edits. Refused outright, at filing and at approval: not an invoice; validated on MyInvois or submitted to LHDN; consolidated from delivery orders; a payment allocated; reversed from a channel Returns page; a sales-channel invoice (Shopee, TikTok, Shopify, online store, or migrated with a marketplace refNo); a POS sales summary; a closed Counter day's sale or a RM10,000+ till receipt's sale; dated in, or moved into, a locked period. A live credit or debit note blocks only a lines change. On perpetual stock, a correction taking an item below zero is refused at approval. A sale that never happened is voided by the owner in Taokeh (no tool voids); a later event such as a return is a credit note (create_credit_note_draft). A proposal that changes nothing is refused. If the invoice changes after it was read, the one-tap approval is refused and revise_draft (kind 'invoice_update') re-proposes. dateShift, sent alone, moves the dates of up to 200 invoices in one draft.
Inputs: notes, saleId, proposed, dateShift, +2 more.
update_logo_draftFile a pending logo-change draft (human approves in Taokeh)ADestructiveInspect
Files a pending draft proposing a new company logo: the mark Taokeh prints on every invoice, quote, receipt and statement it generates, and shows on the online storefront. An admin compares the current logo with the proposed one and approves with one tap; nothing changes before that. The image arrives one way per call: attachmentToken from request_attachment_upload (any size, after the bytes are PUT to its uploadUrl), or inline attachmentBase64 + attachmentMediaType + attachmentBytes (for clients whose network cannot reach taokeh.my). PNG or JPEG only, the formats a generated PDF can embed; anything else is refused. Oversized artwork is stored at 2000px and the review page says so; only an image too large to be a logo is refused. The proposal replaces the whole logo, and only one logo proposal waits at a time: filing another rejects the earlier one as superseded. If an admin changes the logo in Taokeh after filing, the one-tap approval is refused and the full review page is used. This is the company logo only; the Pioneer program's testimonial artwork has no connector door.
Inputs: notes, needsReview, attachmentBytes, attachmentToken, +4 more.
update_product_draftFile a pending product-change draft (human approves in Taokeh)AInspect
Files a pending draft that corrects a product already in Taokeh's catalogue: its name, unit, selling price, reorder point, barcode or category. The owner reviews a diff (current → proposed, changed fields only) and approves with one tap; nothing changes before that. The product is named by productId (from resolve_product) or its exact sku; a product name is refused, and an id and SKU that disagree are refused. proposed carries only the fields to change; a category is matched against the company's existing categories and is never created. Refused by name, with the screen that owns each: stock on hand (Products → Adjust stock), the average cost (set by purchases), the SKU, description (the catalogue import sets it), the service flag isService (the product page), and online-shop publishing. Fields already equal to the record are dropped, and a proposal that changes nothing is refused. One product per call; the result reads back each change with its current and proposed value.
Inputs: proposed (required), sku, notes, productId, +1 more.
update_purchase_order_draftFile a pending purchase-order correction draft (human approves in Taokeh)AInspect
Files a pending draft that corrects a purchase order; nothing changes until an admin or bookkeeper approves the current → proposed diff in Taokeh. A PO posts nothing and moves no stock. A sent order stays sent; Taokeh emails nobody, and an approved change stops the WhatsApp link the supplier had. Draft, sent and partly received orders qualify. On a partly received order, a line that received goods keeps its product, stays in lines and cannot go below the quantity received, and the supplier and currency are frozen. A converted or cancelled order is closed to edits (update_bill_draft corrects its bills); cancelling is the owner's step in Taokeh. New orders are filed by create_purchase_order_draft. Changeable: poDate, term (null clears), notes (null clears) and lines (inventory products only). Refused by name: the supplier, PO number, currency or rate, tax, marking sent, cancelling, converting. Tax comes from the lines' SST codes, rounded per code (orders entered before 7 Oct 2026 keep per-line rounding): a new line inherits the code the order stores for its product; a new product takes the order's code when every line shares one, else no SST. An order with no SST code on any line is taxed at a whole-document rate and requires taxRate when its lines change. Approval updates the document in place (same id and number) through Taokeh's own Edit; fields left out carry across (party, contact, currency and frozen rate, tax). lines is the full replacement set: { keep: } (from search_document_lines) keeps a line untouched; a changed or new line is written in full in the create tool's shape and re-derived by the server. A selling line with a printed per-foot or per-piece note is read into its filed form only when the note's price reproduces it; a purchase line may be sent back as it stands. A no-change proposal is refused. If the document is edited after filing, one-tap approval is refused and the reviewer sees both versions (revise_draft re-proposes).
Inputs: proposed (required), purchaseOrderId (required), notes, needsReview, +1 more.
update_quote_draftFile a pending quote-correction draft (human approves in Taokeh)AInspect
Files a pending draft that corrects an open quote; nothing changes until an admin or bookkeeper approves the current → proposed diff in Taokeh. A quote posts nothing, so no ledger, stock or e-invoice is touched. Changeable: quoteDate, validUntil (null clears), term, notes (null clears) and lines. Refused by name: the customer, the quote number, the currency or rate, converting and voiding. Only an open quote qualifies, checked at filing and at approval. A quote converted into an invoice or delivery order is closed to edits; that document is corrected by update_invoice_draft or update_delivery_order_draft. Voiding is the owner's step in Taokeh (Quotes → Void); no tool voids. New quotes are filed by create_quote_draft. A line's taxCode left out inherits the quote's code for that product; where the quote carries that product under more than one code, a code is required. A quote taxed at a whole-document rate requires taxRate when its lines change. Approval updates the document in place (same id and number) through Taokeh's own Edit; fields left out carry across (party, contact, currency and frozen rate, tax). lines is the full replacement set: { keep: } (from search_document_lines) keeps a line untouched; a changed or new line is written in full in the create tool's shape and re-derived by the server. A selling line with a printed per-foot or per-piece note is read into its filed form only when the note's price reproduces it; a purchase line may be sent back as it stands. A no-change proposal is refused. If the document is edited after filing, one-tap approval is refused and the reviewer sees both versions (revise_draft re-proposes).
Inputs: quoteId (required), proposed (required), notes, needsReview, +1 more.
update_recurring_invoice_draftFile a pending recurring-invoice change draft (human approves in Taokeh)AInspect
Files a pending draft changing a recurring invoice already set up in Taokeh: a price rise, a changed quantity, a new end date, a cadence correction, or pausing the billing. The owner reviews a diff (current → proposed, changed fields only) and approves; nothing changes before that. The schedule is named by recurringId, its real id; there is no name fallback, because one customer often has two schedules. proposed carries only what changes: title, customerId/customer, lines, cadence, paymentMethod, startDate, endDate, maxOccurrences, notes, and status ("paused" stops future invoices, "active" resumes). lines replaces the whole set. Approving re-derives the next issue date from the start date, so even a price-only change can move it; the review page states the date. Refused by name: issueMode: "auto", status: "ended" (one-way; "paused" is reversible), MFRS 15 revenue spreading, and the "Paid into" account (kept as is; a move to CREDIT clears it). Invoices already issued are untouched: a change reaches the next firing only, and a wrong past invoice is corrected by a credit note (create_credit_note_draft). Fields already equal to the record are dropped; a proposal that changes nothing is refused. One schedule per call. A line carrying Taokeh's printed per-foot or per-piece note (like "(400' @ RM 1.60/ft)") is refused: a schedule holds no size or tally, so it would bill without its rounding line every cycle. Those invoices are filed by create_invoice_draft in their filed form. On an update, such a line already on the schedule may be sent back unchanged.
Inputs: proposed (required), recurringId (required), notes, needsReview.
update_supplier_debit_note_draftFile a pending correction draft for a posted supplier debit note (human approves in Taokeh)AInspect
Files a pending draft that corrects a posted buy-side debit note (a purchase return against a supplier's bill); nothing changes until an admin approves the current → proposed diff in Taokeh. Approval re-books it with the same number, bill and attachments. The sell-side debit note filed by create_debit_note_draft has no correction tool; it is voided and reissued. A return that never happened is voided in Taokeh; goods sent back later need a new debit note (create_supplier_debit_note_draft, or in Taokeh). debitNoteId is the note's real id from search_documents (docType debit_note). Changeable: dnDate, reason, and lines as the full replacement set. Each line states goodsReturned, which only pre-fills the admin's per-line answer; one-tap approval never moves stock and is refused when the note already took stock or any line says goods went back. Stock leaves only for a product the bill received, up to what the bill still has standing. SST is inherited from the bill; no tax code is sent. A note with a discounted line takes only date or reason corrections. Refused by name: the supplier, the number, the bill. Blocked at filing (the real correction is run and rolled back) and at approval: voided; validated or exported as self-billed; a supplier refund allocated or its credit used on a payment; the bill gone; a locked period; a bill line on the asset register; crediting more than the bill owes, unless the note carries the supplier's own credit note number (entered by the owner on the note's Edit form), which allows up to the bill's value less its other debit notes. Returning more than is on hand is refused (perpetual: at approval; periodic: at filing and approval, naming each short item). The note's own earlier take counts as on hand; a note posted before 2 Nov 2026 that took fewer units than its lines say is refused even unchanged. If the note is edited after filing, one-tap approval is refused (revise_draft, kind 'supplier_debit_note_update', re-proposes).
Inputs: proposed (required), debitNoteId (required), notes, needsReview.
withdraw_draftWithdraw a pending draftADestructiveInspect
Takes back a pending draft this connection's person filed, when it should not have been filed at all (a duplicate, the wrong document, the user changed their mind). It takes the draft's kind (as its create or update tool filed it, the same kinds revise_draft takes, plus bank_clearing, logo_update and date_shift), its draftId and a short reason. The draft is closed as rejected with the reason "Withdrawn by the AI that filed it", so it leaves the approval queue and a second filing of the same document is no longer refused as a duplicate of it. Only a draft still waiting can be withdrawn, and only one filed through the connector by the same person; a draft filed by someone else, already approved or already rejected is refused, naming who filed it or when it was decided. A draft that only needs a correction is revised with revise_draft instead of withdrawn. Nothing is posted or deleted. Returns the kind, the draftId and when it was withdrawn.
Inputs: kind (required), draftId (required), reason.
working_capitalWorking capital (days + who pays slowly)ARead-onlyInspect
Working capital in days, month by month, plus who is slow to pay: where the cash went when the P&L shows a profit. from and to are YYYY-MM, inclusive, at most 36 months. months[]: per month revenue, cogs, arClose, apClose, inventoryClose, days (calendar days covered) and four ratios: debtorDays (arClose ÷ revenue × days), creditorDays (apClose ÷ cogs × days), inventoryDays (inventoryClose ÷ cogs × days) and cashConversionCycle (debtorDays + inventoryDays − creditorDays). customers and vendors: per party avgDaysToPay (amount-weighted, from the document date to the date the payment applied; a deposit or advance paid before its document applies on the document's date, so counts as 0 days), avgDaysPastDue (from the due date), invoices, paid and withTerms, slowest first, up to 50 a side with total, shown and more. A ratio with a zero denominator is null, and cashConversionCycle is null when any leg is. inventoryDays and cashConversionCycle are withheld (null, with a note) unless the company runs perpetual costing: under modified periodic, cost of goods sold is recognised only at a stock take, so a monthly figure would measure something else; inventoryClose is still returned. Payment speed excludes cash sales and cash bills, opening invoices and bills, refunds and contra set-offs. Months before the accounting start date and after today are absent. A running month is partial: true with through (today), its days counting only elapsed days; the cutover month is partial with startsAt and counts from there, so its revenue can be below financial_timeseries' figure for that month. Sources: the /reports income statement, the A/R and A/P aging totals at month end, the inventory account's balance (with any stock class accounts and work in progress); basis states every formula and input. Figures only: no verdict, benchmark or trend label. A window too wide for the time budget is refused, naming how far it got.
Inputs: to (required), from (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
IQ Books is an AI-native UK ledger that does the bookkeeping for you. Bank transactions arrive already coded, receipts and bills file themselves, invoices are allocated, the bank is reconciled, and VAT and MTD for Income Tax updates go to HMRC from it. Through this connector Claude can read the reports, raise invoices, record payments and code bank statements, with every change shown as a plan you approve first. UK businesses; the ledger is free for one business, and there is a free demo company to try.
Connect Sage Accounting to your AI. Read trial balances, invoices, contacts and bank data.
AI accounting: ask about your live AccountsOS books in plain English. Read-only tools for transactions, cash balances, invoices, bills, VAT, filing deadlines and reports across 32 countries. OAuth sign-in; free 14-day trial at accounts-os.com.
Accounts receivable automation for Xero and QuickBooks Online, inside your AI assistant. Ask Claude, ChatGPT or any MCP client for a receivables summary, find customers and invoices, read the email and SMS replies your customers sent, and see what Paidnice sent or skipped. Ask why a reminder, late fee or statement did or did not go out, and update a customer's contact people straight into your ledger. Secure OAuth sign-in. One connection covers every organisation you tick, with Read or Read and Write access.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables an AI client to query and do bookkeeping across all of a user's Xero organisations, Zoho Books organisations and FreeAgent companies through one connector, from invoices, bills, bank transactions and reports to creating and updating records. Read-only and write tools plus ready-made prompts cover cash balances, month-end checks and who owes whom, all across companies at once.MIT
- AlicenseBqualityBmaintenanceEnables AI assistants to query and manage self-hosted accounting data—invoices, balances, and books—through natural language, with read-only tools by default and optional scoped write operations.3027 PyPI2AGPL 3.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to query a connected accounting platform for organisations, invoices, contacts, chart of accounts, and profit-and-loss reports, supporting bookkeeping, AR/AP, and financial reporting workflows.74 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to read and reconcile Tally accounting data—including ledgers, vouchers, ageing, stock, GST, and financial statements—with exact decimal arithmetic. Write operations are limited to external draft vouchers that require out-of-band human approval, with sanitized untrusted text and an immutable audit trail.MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.