Docs
Sign in

LedgerFlow

LedgerFlow is a business accounting and inventory system, and the LedgerFlow connector lets TAO work with supplier bills, customer invoices, stock, sales orders, forecasts and purchase orders, with a person approving every change.

Screenshot to add: The Add Credential window on the Service Connection tab, with Service URL and API Key / Token.

What you can do

Illustrative examples of what you might ask TAO:

  • "Show me the open bills from our suppliers."
  • "Raise a draft invoice for Acme for 40 hours of consulting."
  • "Which stock items are running low?"
  • "Can we ship 15 of part X on sales order SO-00007? When could we promise 200?"
  • "Draft a purchase order to our preferred vendor for the low items."

LedgerFlow has two money ledgers, and TAO keeps them apart:

LedgerWhat it meansWord TAO uses
Payable (money you owe)A supplier billed youBill
Receivable (money owed to you)You billed a customerCustomer invoice

Stock and sales orders are a third area. A sales order commits stock. The money only appears later, as a customer invoice.

Before you connect

  • A LedgerFlow tenant. A tenant is your company's own space inside LedgerFlow.
  • A tenant token. This is a long secret code from LedgerFlow that starts lftok_. It lets a program act on your LedgerFlow data. It is one static token for the whole tenant. It does not expire on its own and there is no refresh step. Every person using the tools shares it.
  • The tenant's web address. The service URL ends in /api. If none is given, TAO falls back to a default development address, https://dev.ledgerflow.tytantech.app/api. Point it at your own tenant.
  • Permission to add a credential and set up tools. The code calls the LedgerFlow credential a Vault-backed Service Connection. The tool instances are created in Tool Studio, one per action. The product notes say no one is granted these tools automatically. An administrator decides which agents get them. Reach for your administrator if you cannot see LedgerFlow tools.
  • Approval is human on purpose. Approving, rejecting, sending or receiving a purchase order, publishing a forecast, and putting a customer on credit hold are all things a person does inside LedgerFlow. TAO cannot do them.

The product code does not list any permission scopes for LedgerFlow.

Connect it

  1. Get the token from LedgerFlow

    Ask your LedgerFlow administrator for the tenant token and the tenant's web address.

  2. Open Credentials

    Go to Tools > Credentials and open Add Credential. This page needs the tools-credentials permission.

  3. Choose Service Connection

    Pick the Service Connection tab. Enter a clear name for the connection.

  4. Fill in the two fields

    Type the address in Service URL. Paste the token into API Key / Token. The token is shown once, so save it now. The username and password boxes below are optional and are not used by LedgerFlow.

  5. Save, then link the tools

    Save the credential. An administrator then points each LedgerFlow tool at it and makes the tools available to the right agents. The tool setting that holds this link is named credential_ref.

Tools

Reads run straight away. Writes are queued and wait for a person to approve them. Three writes cannot be undone and are marked as irreversible. The tool names all start with ledgerflow_.

Payable: suppliers, bills and payments

Tool nameWhat it doesRead or Write
ledgerflow_list_vendorsLists vendors. Can search.Read
ledgerflow_get_vendorGets one vendor by ID.Read
ledgerflow_list_purchase_ordersLists purchase orders. Can search and filter by status.Read
ledgerflow_get_purchase_orderGets one purchase order by ID or by its internal number.Read
ledgerflow_list_goods_receiptsLists goods receipts and totals how much of a purchase order has arrived.Read
ledgerflow_list_billsLists supplier bills.Read
ledgerflow_get_billGets one bill by ID, or by the vendor's printed invoice number.Read
ledgerflow_list_accountsLists the accounts a bill payment can come from. Check this before paying.Read
ledgerflow_create_vendorCreates a vendor.Write (needs approval)
ledgerflow_create_billCreates a supplier bill.Write (needs approval)
ledgerflow_record_paymentPays a bill. Needs the bank account to be named if the tenant has more than one.Write (needs approval)

Receivable: customers, invoices and products

Tool nameWhat it doesRead or Write
ledgerflow_list_customersLists customers you invoice. Matches by name.Read
ledgerflow_get_customerGets one customer by name or ID.Read
ledgerflow_list_customer_invoicesLists customer invoices. Can filter by customer, status or invoice number.Read
ledgerflow_get_customer_invoiceGets one customer invoice with its lines, by printed number or ID.Read
ledgerflow_list_productsLooks up bill rates. Service products carry the per-hour or per-unit rate.Read
ledgerflow_create_customerCreates a customer.Write (needs approval)
ledgerflow_create_customer_invoiceRaises a draft customer invoice, one line per person or item.Write (needs approval)
ledgerflow_void_customer_invoiceVoids a customer invoice. LedgerFlow has no delete and no un-void.Write (needs approval, irreversible)

Inventory and sales orders

Tool nameWhat it doesRead or Write
ledgerflow_list_inventory_itemsLists stock items with on-hand, committed, on-order and available quantities.Read
ledgerflow_get_inventory_itemGets one stock item, by its own ID or its product's ID.Read
ledgerflow_list_low_stockLists items LedgerFlow itself considers short against their reorder points.Read
ledgerflow_list_sales_ordersLists sales orders. Can filter by status or order number.Read
ledgerflow_get_sales_orderGets one sales order with each line's ordered, fulfilled and remaining quantity.Read
ledgerflow_list_inventory_receiptsBrowses goods receipts page by page.Read
ledgerflow_get_inventory_receiptGets one goods receipt with its lines.Read
ledgerflow_list_inventory_adjustmentsLists the stock audit trail, with the reason and before and after levels.Read
ledgerflow_fulfill_sales_orderAllocates stock against an order's lines.Write (needs approval)
ledgerflow_confirm_sales_orderMoves an order out of Draft.Write (needs approval)
ledgerflow_create_sales_orderRaises a draft sales order for a customer.Write (needs approval)
ledgerflow_create_inventory_productCreates a stocked part, the product and its stock record together.Write (needs approval)
ledgerflow_create_inventory_adjustmentChanges a stock item's quantity on hand. Takes a mode: increase, decrease or set to a counted number.Write (needs approval)
ledgerflow_cancel_sales_orderCancels a sales order. There is no un-cancel.Write (needs approval, irreversible)
ledgerflow_void_inventory_receiptVoids a goods receipt. There is no un-void.Write (needs approval, irreversible)

Planning and purchasing

Tool nameWhat it doesRead or Write
ledgerflow_list_vendor_itemsLists the supplier catalogue: which vendors supply which items, lead times, prices and minimum order sizes.Read
ledgerflow_list_forecast_setsLists forecast sets, newest first.Read
ledgerflow_get_item_forecastsReads forecast quantities by item and period.Read
ledgerflow_compare_forecastsCompares two forecast sets, item by item and period by period.Read
ledgerflow_get_purchasing_settingsReads the purchase order approval policy.Read
ledgerflow_get_planning_settingsReads the forecast display defaults.Read
ledgerflow_create_purchase_orderCreates a draft purchase order for one vendor. Sends and orders nothing.Write (needs approval)
ledgerflow_submit_purchase_orderSubmits a draft or rejected purchase order for approval. A person approves it in LedgerFlow.Write (needs approval)
ledgerflow_create_forecast_setCreates an empty forecast set.Write (needs approval)
ledgerflow_put_forecast_linesLoads up to 5,000 forecast lines into a set per call.Write (needs approval)

Forecast quality, availability and credit

Tool nameWhat it doesRead or Write
ledgerflow_get_forecast_accuracyScores a forecast set against actual demand, giving WAPE and bias.Read
ledgerflow_get_forecast_setReads one forecast set with its publish-approval state.Read
ledgerflow_list_forecast_set_eventsShows a forecast set's workflow history.Read
ledgerflow_get_item_atpShows available-to-promise for one item, period by period.Read
ledgerflow_get_promise_dateFinds the earliest date a quantity of an item could be promised. Reserves nothing.Read
ledgerflow_list_atpShows available-to-promise for up to 200 items at once.Read
ledgerflow_list_customer_segmentsLists customer segments such as channel or market.Read
ledgerflow_list_customer_credit_eventsShows a customer's credit hold, release and auto-block history.Read
ledgerflow_get_sales_settingsReads the credit control mode: Off, Warn or Block.Read
ledgerflow_get_sales_order_settingsReads the sales order approval policy.Read
ledgerflow_submit_forecast_setSubmits a forecast set for publish approval. It stays not current until a person publishes it.Write (needs approval)
ledgerflow_submit_sales_orderSubmits a draft sales order for approval. A person approves it.Write (needs approval)

Total: 56 tools, 37 reads and 19 writes. Available-to-promise means the stock you could still promise to a customer after existing orders and expected supply. WAPE is a standard forecast error measure, and bias shows whether forecasts run high or low.

Limits and good to know

  • Names keep the ledgers apart. Older tools named ledgerflow_list_invoices and ledgerflow_get_invoice read supplier bills, so they were renamed ledgerflow_list_bills and ledgerflow_get_bill. The old names were retired, not reused, so they cannot be confused with customer invoices.
  • Invoices are voided, never deleted or edited. LedgerFlow does not allow deleting a customer invoice. A void changes only the status. The total and balance still show their old numbers, so any report must check the status, not the balance. To correct an invoice, void it and raise a new one. There is no tool to edit an invoice or a bill, because LedgerFlow's update replaces the whole document and can silently wipe lines.
  • Fulfilling checks the limit first. LedgerFlow silently caps an over-allocation and still says success. TAO reads the order first and refuses a quantity above the remaining amount. It reports the amount actually applied, not the amount asked for.
  • Cancel and void confirm a value. Cancelling a sales order needs the order ID and its order number. Voiding a goods receipt needs the receipt ID and its reference number. Both must match the record read from LedgerFlow. These two tools take an ID only, so a number cannot confirm itself.
  • Cancelling a partly shipped order skews committed stock. The product notes say committed stock is kept as a running figure with no recalculation. Cancelling a partly fulfilled order double-subtracts, and it stays wrong. The tool description says so.
  • Available stock ignores incoming orders. Quantity available is on hand minus committed. It does not count stock already on order.
  • Adjustments are signed changes. LedgerFlow's own field is a change amount, not a counted total, so TAO uses a mode instead. An unknown reason is silently saved as Other, so the reason is checked first. A cost per unit can shift average cost. The audit trail cannot be edited or deleted.
  • Pagination is capped. Searches that need matching in TAO fetch at most 4 pages of 50, or 200 rows.
  • A few lookups are indirect. The vendor's printed invoice number cannot be searched on the server, so TAO matches it itself within the capped pages. Your own purchase order references are not stored in LedgerFlow, only its internal PO number.
  • Purchase orders and forecasts stop at submit. An approver acts in LedgerFlow. A permission error on an approval-type step is expected.
  • Not offered. Updating or deleting bills, deleting inventory items, deleting or reversing adjustments, receiving a purchase order, approving anything, and credit hold or release.
  • Real data. The default address is a development tenant. Writes act on whichever tenant the token belongs to.