@tenkeybridge/mcp 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -336,9 +336,8 @@ var CATALOG = {
336
336
  },
337
337
  {
338
338
  "qbo": "LinkedTxn",
339
- "support": "none",
340
- "note": "QBO Bill has no paid-by LinkedTxn field. Desktop may return LinkedTxn when IncludeLinkedTxns is set, but there is no honest QBO home \u2014 not projected.",
341
- "error": "UNSUPPORTED_BY_DESKTOP"
339
+ "support": "partial",
340
+ "note": "Read-only, populated on read: the PurchaseOrder a bill was created from and the BillPayment(s) and VendorCredit(s) applied to it, as {TxnId, TxnType}. Desktop-only link types (ItemReceipt, ...) are omitted. Proven live on QuickBooks Enterprise 24 (2026-10-20): a Bill created from a purchase order carries the PO, and a paid bill carries its check payment. Accepted and ignored on write, as in QBO. Linking a new Bill to a PurchaseOrder is not supported: Desktop's BillAdd LinkToTxnID pulls the PO's lines in, and a line-level link next to explicit lines is refused (3153)."
342
341
  },
343
342
  {
344
343
  "qbo": "operation=void",
@@ -627,6 +626,65 @@ var CATALOG = {
627
626
  ],
628
627
  "unsupported": []
629
628
  },
629
+ "ClearedStatus": {
630
+ "entity": "ClearedStatus",
631
+ "verdict": "live",
632
+ "group": "platform",
633
+ "read": "partial",
634
+ "write": "partial",
635
+ "headline": "TenkeyBridge extension (QBO has none): POST /clearedstatus sets QuickBooks Desktop's cleared status (Cleared, NotCleared, Pending) on a check, deposit, bill payment check or journal entry, for the transaction's own bank side (TxnId alone) or for one line (LineId). GET /clearedstatus reads it back per split with one bounded QuickBooks read.",
636
+ "usage": "POST /v3/company/{companyId}/clearedstatus[?requestid=...] and GET /v3/company/{companyId}/clearedstatus?txnid=...&txntype=...",
637
+ "fields": [
638
+ {
639
+ "qbo": "TxnId",
640
+ "support": "full",
641
+ "note": "The Id of the transaction, as a read of the Purchase, Deposit, BillPayment or JournalEntry returned it."
642
+ },
643
+ {
644
+ "qbo": "LineId",
645
+ "support": "full",
646
+ "note": "Optional. A Line.Id of that transaction: sets that one line's account side. The line's account must be a balance sheet account other than A/R and A/P (a bank, credit card or other current asset account); an income, expense or cost of goods line is 422 UNSUPPORTED_BY_DESKTOP. Without it, a Check, Deposit or BillPayment sets its own bank side and a JournalEntry sets its first line."
647
+ },
648
+ {
649
+ "qbo": "ClearedStatus",
650
+ "support": "full",
651
+ "note": "Cleared, NotCleared or Pending (case sensitive). Reconciled is QuickBooks' own state and cannot be written."
652
+ },
653
+ {
654
+ "qbo": "TxnType",
655
+ "support": "partial",
656
+ "note": "Optional on the write: Purchase, Deposit, BillPayment or JournalEntry. Send it with a requestid so a lost outcome can be reconciled with a read. Required on the read (and Transfer is allowed there)."
657
+ },
658
+ {
659
+ "qbo": "Splits",
660
+ "support": "full",
661
+ "note": "In the read-back: one entry per bank or balance sheet posting of the transaction, with Role (Header, Line, From, To), LineId (the value to send back), ClearedStatus and Amount. SetByTxnId marks the split a request without a LineId would set."
662
+ }
663
+ ],
664
+ "unsupported": [
665
+ {
666
+ "case": "Transfer",
667
+ "error": "UNSUPPORTED_BY_DESKTOP",
668
+ "note": "QuickBooks Desktop refuses a Transfer id for a cleared status change (probe, QB Enterprise 24), so neither side of a transfer can be set. It can be read back. Record the movement as a deposit, check or journal entry instead, or clear it in QuickBooks.",
669
+ "workaround": "Use a Deposit (line from the clearing account) or a JournalEntry, and set the line you need by LineId."
670
+ },
671
+ {
672
+ "case": "Income, expense, cost of goods, A/R or A/P line",
673
+ "error": "UNSUPPORTED_BY_DESKTOP",
674
+ "note": "QuickBooks only keeps a cleared status for lines on other balance sheet accounts. A TxnId alone on a JournalEntry whose first line is on such an account is refused the same way."
675
+ },
676
+ {
677
+ "case": "Invoice, Bill, SalesReceipt and the other transaction types",
678
+ "error": "UNSUPPORTED_BY_DESKTOP",
679
+ "note": "Only Purchase (check), Deposit, BillPayment (check) and JournalEntry are supported. A credit card Purchase or a credit card BillPayment was not probed."
680
+ },
681
+ {
682
+ "case": "Cleared status on an ordinary read",
683
+ "error": "n/a",
684
+ "note": "Entity reads never carry a cleared status and never cost an extra QuickBooks read; QuickBooks' Ret objects do not hold one. Use GET /clearedstatus."
685
+ }
686
+ ]
687
+ },
630
688
  "CompanyCurrency": {
631
689
  "entity": "CompanyCurrency",
632
690
  "verdict": "live",
@@ -883,6 +941,26 @@ var CATALOG = {
883
941
  "support": "full",
884
942
  "note": "Maps to Desktop CustomerMsgRef by FullName; the message must already exist as a Desktop customer message. Updatable via sparse update (#55)."
885
943
  },
944
+ {
945
+ "qbo": "ProjectRef",
946
+ "support": "full",
947
+ "note": "A Desktop job is a QBO project, so ProjectRef sets the transaction's customer to the job (send the job's Id or full name). If CustomerRef is sent too, the job wins, and nothing is looked up: the job already implies its parent customer. Read: when the customer is a job (its full name contains a colon), ProjectRef is returned with the same value and name as CustomerRef, which stays exactly as Desktop returns it. A QBO project is one level deep and a Desktop job can sit under another job, so ProjectRef here means any job."
948
+ },
949
+ {
950
+ "qbo": "EmailStatus",
951
+ "support": "partial",
952
+ "note": "Maps to Desktop IsToBeEmailed. NeedToSend writes true; NotSet and EmailSent write false, because Desktop only knows whether the form is still queued. Read: true is NeedToSend, false is NotSet. Desktop does not record that a form was sent, so EmailSent is never returned. Setting NeedToSend sends nothing by itself: it only queues the form in QuickBooks."
953
+ },
954
+ {
955
+ "qbo": "PrintStatus",
956
+ "support": "partial",
957
+ "note": "Maps to Desktop IsToBePrinted. NeedToPrint writes true; NotSet and PrintComplete write false. Read: true is NeedToPrint, false is NotSet. Desktop does not record that a form was printed, so PrintComplete is never returned."
958
+ },
959
+ {
960
+ "qbo": "BillEmail",
961
+ "support": "partial",
962
+ "note": "Accepted and not stored. Desktop sales forms have no email address of their own: QuickBooks sends a form to the customer's email address. BillEmailCc and BillEmailBcc are accepted and dropped the same way. They are never returned on read, so update the customer's PrimaryEmailAddr to change where forms go."
963
+ },
886
964
  {
887
965
  "qbo": "Line",
888
966
  "support": "partial",
@@ -915,12 +993,26 @@ var CATALOG = {
915
993
  },
916
994
  {
917
995
  "qbo": "ApplyTaxAfterDiscount",
918
- "support": "none",
919
- "note": "Desktop credit memos have no ApplyTaxAfterDiscount toggle. Control tax via per-line TaxCodeRef / TxnTaxDetail.TxnTaxCodeRef instead.",
920
- "error": "UNSUPPORTED_BY_DESKTOP"
996
+ "support": "partial",
997
+ "note": "Maps onto the discount line's own sales tax code, proven live on QuickBooks Enterprise 24: Tax is tax after the discount (true), Non is tax on the full amount (false). On write, true or false is never sent as a field; every discount line with no TaxCodeRef of its own is coded Tax or Non, and an explicit TAX or NON that contradicts the value is 400 (code 2010, element Line.DiscountLineDetail.TaxCodeRef). A custom tax code on a discount line wins. DiscountLineDetail.TaxCodeRef is written as that line's sales tax code. With no discount lines the value is accepted and does nothing. Read: present only when the form has discount lines and they are all Tax (true) or all Non (false); omitted when mixed. On a sparse update with no Line, a value equal to the current one is accepted; a different one is 422 UNSUPPORTED_BY_DESKTOP, so send the full Line array to change it. Any value that is not a boolean is 400 (code 2010)."
998
+ },
999
+ {
1000
+ "qbo": "operation=void",
1001
+ "support": "partial",
1002
+ "note": "TenkeyBridge extension: QBO cannot void a CreditMemo; QuickBooks Desktop can. POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType CreditMemo), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QuickBooks Enterprise 24 (2026-10-20). The re-read shows PrivateNote as `VOID: <memo>` (bare `VOID:` when there was none), TotalAmt, Balance and RemainingCredit at 0 and every line quantity and amount at 0, with the lines kept. A void does not reliably advance the SyncToken, so re-read the record instead of relying on it; voiding again is accepted. A credit memo that was applied to an invoice can be voided too: the credit is released, so the invoice's balance reopens by the credit that had been applied and its LinkedTxn drops the credit memo (the cash payment stays). The response is whatever Desktop returns on the re-read (nothing is fabricated)."
921
1003
  }
922
1004
  ],
923
1005
  "unsupported": [
1006
+ {
1007
+ "case": "GET /{id}/pdf",
1008
+ "error": "UNSUPPORTED_BY_DESKTOP",
1009
+ "note": "qbXML cannot render or return a PDF of a transaction, so the route answers 422. Render the PDF from the JSON record in your own application."
1010
+ },
1011
+ {
1012
+ "case": "POST /{id}/send (actually sending the email)",
1013
+ "error": "UNSUPPORTED_BY_DESKTOP",
1014
+ "note": "The route is queue-only: it sets EmailStatus NeedToSend (Desktop IsToBeEmailed) through a sparse update and returns the record, so the form lands in QuickBooks' To be e-mailed queue. TenkeyBridge sends no mail; QuickBooks sends the form to the customer's email address. sendTo is ignored (X-TKB-Warning says so). Desktop refuses the queue (3180) when the company file has no company email."
1015
+ },
924
1016
  {
925
1017
  "case": "Line.DiscountLineDetail without an ItemRef or a single matching DiscountAccountRef item (bare-percentage or amount-off discounts)",
926
1018
  "error": "MISSING_REQUIRED_DESKTOP_ITEM",
@@ -932,9 +1024,9 @@ var CATALOG = {
932
1024
  "note": "These line types do not map to QuickBooks Desktop sales transactions. Remove them or flatten to a supported DetailType. See COMPATIBILITY.md."
933
1025
  },
934
1026
  {
935
- "case": "ApplyTaxAfterDiscount supplied",
1027
+ "case": "ApplyTaxAfterDiscount changed on a sparse update that carries no Line",
936
1028
  "error": "UNSUPPORTED_BY_DESKTOP",
937
- "note": "Desktop credit memos have no ApplyTaxAfterDiscount toggle. Control tax via per-line TaxCodeRef / TxnTaxDetail.TxnTaxCodeRef instead."
1029
+ "note": "On Desktop the value lives on each discount line's tax code, so it cannot change on its own. Send the full Line array in the same update."
938
1030
  }
939
1031
  ]
940
1032
  },
@@ -1046,6 +1138,11 @@ var CATALOG = {
1046
1138
  "support": "full",
1047
1139
  "note": "Read-only, derived by Desktop Sublevel."
1048
1140
  },
1141
+ {
1142
+ "qbo": "IsProject",
1143
+ "support": "full",
1144
+ "note": "A QBO project is a sub-customer, and a Desktop job is the same thing, so IsProject reads true for any customer under a parent (Desktop Sublevel above 0), exactly like Job. On create or update IsProject: true needs ParentRef (400 2020 without one) and is not sent, because the parent already makes it a job; IsProject: false with a ParentRef is a contradiction (400 2010). select * from Customer where IsProject = true works. A Desktop job can sit under another job, so project here means any Desktop job; QBO projects are one level deep. Jobs are reachable from transactions through ProjectRef."
1145
+ },
1049
1146
  {
1050
1147
  "qbo": "CustomField",
1051
1148
  "support": "partial",
@@ -1483,6 +1580,27 @@ var CATALOG = {
1483
1580
  "support": "full",
1484
1581
  "note": "Maps to Desktop CustomerMsgRef by FullName; the message must already exist as a Desktop customer message. Updatable via sparse update (#55)."
1485
1582
  },
1583
+ {
1584
+ "qbo": "ProjectRef",
1585
+ "support": "full",
1586
+ "note": "A Desktop job is a QBO project, so ProjectRef sets the transaction's customer to the job (send the job's Id or full name). If CustomerRef is sent too, the job wins, and nothing is looked up: the job already implies its parent customer. Read: when the customer is a job (its full name contains a colon), ProjectRef is returned with the same value and name as CustomerRef, which stays exactly as Desktop returns it. A QBO project is one level deep and a Desktop job can sit under another job, so ProjectRef here means any job."
1587
+ },
1588
+ {
1589
+ "qbo": "EmailStatus",
1590
+ "support": "partial",
1591
+ "note": "Maps to Desktop IsToBeEmailed. NeedToSend writes true; NotSet and EmailSent write false, because Desktop only knows whether the form is still queued. Read: true is NeedToSend, false is NotSet. Desktop does not record that a form was sent, so EmailSent is never returned. Setting NeedToSend sends nothing by itself: it only queues the form in QuickBooks."
1592
+ },
1593
+ {
1594
+ "qbo": "PrintStatus",
1595
+ "support": "none",
1596
+ "note": "Desktop estimates have no to-be-printed flag. NotSet (the QBO default) is accepted and sends nothing; NeedToPrint and PrintComplete are refused with UNSUPPORTED_BY_DESKTOP. Never returned on read.",
1597
+ "error": "UNSUPPORTED_BY_DESKTOP"
1598
+ },
1599
+ {
1600
+ "qbo": "BillEmail",
1601
+ "support": "partial",
1602
+ "note": "Accepted and not stored. Desktop sales forms have no email address of their own: QuickBooks sends a form to the customer's email address. BillEmailCc and BillEmailBcc are accepted and dropped the same way. They are never returned on read, so update the customer's PrimaryEmailAddr to change where forms go."
1603
+ },
1486
1604
  {
1487
1605
  "qbo": "Line",
1488
1606
  "support": "partial",
@@ -1534,9 +1652,24 @@ var CATALOG = {
1534
1652
  "support": "none",
1535
1653
  "note": "Desktop estimates have no accepted-date field. Track acceptance in your own system.",
1536
1654
  "error": "UNSUPPORTED_BY_DESKTOP"
1655
+ },
1656
+ {
1657
+ "qbo": "ApplyTaxAfterDiscount",
1658
+ "support": "partial",
1659
+ "note": "Maps onto the discount line's own sales tax code, proven live on QuickBooks Enterprise 24: Tax is tax after the discount (true), Non is tax on the full amount (false). On write, true or false is never sent as a field; every discount line with no TaxCodeRef of its own is coded Tax or Non, and an explicit TAX or NON that contradicts the value is 400 (code 2010, element Line.DiscountLineDetail.TaxCodeRef). A custom tax code on a discount line wins. DiscountLineDetail.TaxCodeRef is written as that line's sales tax code. With no discount lines the value is accepted and does nothing. Read: present only when the form has discount lines and they are all Tax (true) or all Non (false); omitted when mixed. On a sparse update with no Line, a value equal to the current one is accepted; a different one is 422 UNSUPPORTED_BY_DESKTOP, so send the full Line array to change it. Any value that is not a boolean is 400 (code 2010)."
1537
1660
  }
1538
1661
  ],
1539
1662
  "unsupported": [
1663
+ {
1664
+ "case": "GET /{id}/pdf",
1665
+ "error": "UNSUPPORTED_BY_DESKTOP",
1666
+ "note": "qbXML cannot render or return a PDF of a transaction, so the route answers 422. Render the PDF from the JSON record in your own application."
1667
+ },
1668
+ {
1669
+ "case": "POST /{id}/send (actually sending the email)",
1670
+ "error": "UNSUPPORTED_BY_DESKTOP",
1671
+ "note": "The route is queue-only: it sets EmailStatus NeedToSend (Desktop IsToBeEmailed) through a sparse update and returns the record, so the form lands in QuickBooks' To be e-mailed queue. TenkeyBridge sends no mail; QuickBooks sends the form to the customer's email address. sendTo is ignored (X-TKB-Warning says so). Desktop refuses the queue (3180) when the company file has no company email."
1672
+ },
1540
1673
  {
1541
1674
  "case": "Line.DiscountLineDetail without an ItemRef or a single matching DiscountAccountRef item (bare-percentage or amount-off discounts)",
1542
1675
  "error": "MISSING_REQUIRED_DESKTOP_ITEM",
@@ -1546,6 +1679,11 @@ var CATALOG = {
1546
1679
  "case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly",
1547
1680
  "error": "UNSUPPORTED_BY_DESKTOP",
1548
1681
  "note": "These line types do not map to QuickBooks Desktop sales transactions. Remove them or flatten to a supported DetailType. See COMPATIBILITY.md."
1682
+ },
1683
+ {
1684
+ "case": "ApplyTaxAfterDiscount changed on a sparse update that carries no Line",
1685
+ "error": "UNSUPPORTED_BY_DESKTOP",
1686
+ "note": "On Desktop the value lives on each discount line's tax code, so it cannot change on its own. Send the full Line array in the same update."
1549
1687
  }
1550
1688
  ]
1551
1689
  },
@@ -1607,7 +1745,7 @@ var CATALOG = {
1607
1745
  "group": "purchasing",
1608
1746
  "read": "full",
1609
1747
  "write": "partial",
1610
- "headline": "Quantity adjustments to inventory items \u2014 create, read, update (header and lines) and delete",
1748
+ "headline": "Quantity and value adjustments to inventory items: create (by difference, to an absolute quantity or value, or with your own value), read, update (header and lines) and delete",
1611
1749
  "fields": [
1612
1750
  {
1613
1751
  "qbo": "AdjustAccountRef",
@@ -1631,7 +1769,7 @@ var CATALOG = {
1631
1769
  {
1632
1770
  "qbo": "Line",
1633
1771
  "support": "partial",
1634
- "note": "DetailType ItemAdjustmentLineDetail with ItemRef and QtyDiff. QtyDiff is a signed change in quantity on hand (nonzero, at most 5 decimal places) and maps to Desktop QuantityAdjustment/QuantityDifference (never NewQuantity); quantity on hand changes by exactly that amount, verified live. The same item on two lines is refused (Desktop rejects it). Desktop's value elements (ValueAdjustment/NewValue) are not exposed for writing; Desktop's ValueDifference (quantity times the item's average cost, verified live) is returned read-only as Line.Amount; the Ret line is flat QuantityDifference/ValueDifference. Line.Description and Line.Amount cannot be written (Desktop has no line memo and computes the value from the item's average cost). Update: Line is the WHOLE table, as in QBO. A line sent with its Id keeps that line (QtyDiff changes it), a line with no Id is added, and a line you leave out is deleted. Omit Line to leave every line alone; an empty array is refused (2020), and a repeated or unknown Id is refused (2010). Posting a read back whole works: an Amount on an existing line that equals the value the read returned is ignored, while a different Amount is UNSUPPORTED_BY_DESKTOP. Updating a value adjustment line (one with no quantity change) is UNSUPPORTED_BY_DESKTOP."
1772
+ "note": "DetailType ItemAdjustmentLineDetail with ItemRef and QtyDiff. QtyDiff is a signed change in quantity on hand (nonzero, at most 5 decimal places) and maps to Desktop QuantityAdjustment/QuantityDifference; quantity on hand changes by exactly that amount, verified live. The absolute forms are TenkeyBridge extensions inside ItemAdjustmentLineDetail (QBO only has the QtyDiff delta), create only: NewQty is the quantity on hand AFTER the adjustment (a number of at least 0, at most 5 decimal places; Desktop QuantityAdjustment/NewQuantity). NewValue is the item's TOTAL inventory value after the adjustment (not a unit cost; at most 2 decimal places; Desktop ValueAdjustment/NewValue). Send NewQty alone, NewValue alone (quantity unchanged, QtyDiff reads 0) or both; QtyDiff next to either is a 400 (2010) because Desktop silently ignores NewValue beside a quantity difference. A read never returns NewQty or NewValue, only the resulting QtyDiff and Amount. Proven live on QuickBooks Enterprise 24 (2026-10-20): NewQty 55 on a 50-unit item at average cost 18.00 reads QtyDiff 5, Amount 90.00; NewValue 123.45 on 55 units worth 990.00 reads Amount -866.55 and moves the average cost, and deleting the adjustment reverses it. The same item on two lines is refused (Desktop rejects it). Desktop's ValueDifference is Line.Amount, the value change of the line (the Ret line is flat QuantityDifference/ValueDifference). Without an Amount Desktop computes it as the quantity change times the item's average cost; Line.Amount sets it yourself (proven live 2026-10-21): QtyDiff with Amount, NewQty with Amount, or Amount alone (a value-only line, QtyDiff reads 0). Amount takes at most 2 decimals and cannot be combined with NewValue (both set the value; 400, 2010). A negative Amount is accepted only on a value-only line: next to a quantity decrease Desktop silently ignores it and prices the units at average cost, and next to an increase it refuses it (3210), so the gateway answers 400 (2010) up front. A positive Amount next to a quantity decrease is honored, and 0.00 next to a quantity is honored. Line.Description cannot be written (Desktop has no line memo). Update: Line is the WHOLE table, as in QBO. A line sent with its Id keeps that line (QtyDiff changes it), a line with no Id is added, and a line you leave out is deleted. Omit Line to leave every line alone; an empty array is refused (2020), and a repeated or unknown Id is refused (2010). Posting a read back whole works: an Amount on an existing line that equals the value the read returned is ignored. A different Amount is sent as ValueDifference, alone (the quantity is kept) or with a new QtyDiff. Desktop remembers whether a value was set explicitly: a QtyDiff-only update re-prices a computed value at average cost but keeps an explicit Amount. A value-only line (no quantity change) can be updated with a new Amount, or given a QtyDiff and an Amount; sent unchanged it is kept as it is."
1635
1773
  },
1636
1774
  {
1637
1775
  "qbo": "CurrencyRef",
@@ -1651,9 +1789,14 @@ var CATALOG = {
1651
1789
  ],
1652
1790
  "unsupported": [
1653
1791
  {
1654
- "case": "Absolute quantity (NewQuantity) and value adjustments",
1792
+ "case": "NewQty or NewValue on an update line",
1655
1793
  "error": "UNSUPPORTED_BY_DESKTOP",
1656
- "note": "QBO's InventoryAdjustment only has QtyDiff (a delta), so Desktop's NewQuantity/NewValue forms have no QBO field to map from."
1794
+ "note": "Desktop's InventoryAdjustmentLineMod only has QuantityDifference and ValueDifference, so the absolute forms work on create only. To change an existing line send QtyDiff."
1795
+ },
1796
+ {
1797
+ "case": "QtyDiff together with NewQty or NewValue on the same line",
1798
+ "error": "2010",
1799
+ "note": "Refused up front: Desktop silently ignores NewValue next to a quantity difference, and NewQty contradicts it. Send QtyDiff alone, or NewQty and/or NewValue."
1657
1800
  }
1658
1801
  ]
1659
1802
  },
@@ -1726,6 +1869,26 @@ var CATALOG = {
1726
1869
  "support": "full",
1727
1870
  "note": "Maps to Desktop CustomerMsgRef by FullName; the message must already exist as a Desktop customer message. Updatable via sparse update (#55)."
1728
1871
  },
1872
+ {
1873
+ "qbo": "ProjectRef",
1874
+ "support": "full",
1875
+ "note": "A Desktop job is a QBO project, so ProjectRef sets the transaction's customer to the job (send the job's Id or full name). If CustomerRef is sent too, the job wins, and nothing is looked up: the job already implies its parent customer. Read: when the customer is a job (its full name contains a colon), ProjectRef is returned with the same value and name as CustomerRef, which stays exactly as Desktop returns it. A QBO project is one level deep and a Desktop job can sit under another job, so ProjectRef here means any job."
1876
+ },
1877
+ {
1878
+ "qbo": "EmailStatus",
1879
+ "support": "partial",
1880
+ "note": "Maps to Desktop IsToBeEmailed. NeedToSend writes true; NotSet and EmailSent write false, because Desktop only knows whether the form is still queued. Read: true is NeedToSend, false is NotSet. Desktop does not record that a form was sent, so EmailSent is never returned. Setting NeedToSend sends nothing by itself: it only queues the form in QuickBooks."
1881
+ },
1882
+ {
1883
+ "qbo": "PrintStatus",
1884
+ "support": "partial",
1885
+ "note": "Maps to Desktop IsToBePrinted. NeedToPrint writes true; NotSet and PrintComplete write false. Read: true is NeedToPrint, false is NotSet. Desktop does not record that a form was printed, so PrintComplete is never returned."
1886
+ },
1887
+ {
1888
+ "qbo": "BillEmail",
1889
+ "support": "partial",
1890
+ "note": "Accepted and not stored. Desktop sales forms have no email address of their own: QuickBooks sends a form to the customer's email address. BillEmailCc and BillEmailBcc are accepted and dropped the same way. They are never returned on read, so update the customer's PrimaryEmailAddr to change where forms go."
1891
+ },
1729
1892
  {
1730
1893
  "qbo": "Line",
1731
1894
  "support": "partial",
@@ -1775,9 +1938,24 @@ var CATALOG = {
1775
1938
  "qbo": "operation=void",
1776
1939
  "support": "partial",
1777
1940
  "note": "POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType Invoice), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QB Enterprise 24 (2026-09-29): the re-read shows amounts and line Qty zeroed, PrivateNote prefixed `VOID: `, TxnDate unchanged, a new SyncToken; re-proven 2026-09-30 with a memo (PrivateNote becomes `VOID: <memo>`, DocNumber kept, Balance 0); voiding again succeeds. The response is whatever Desktop returns on the post-void re-read (nothing is fabricated)."
1941
+ },
1942
+ {
1943
+ "qbo": "ApplyTaxAfterDiscount",
1944
+ "support": "partial",
1945
+ "note": "Maps onto the discount line's own sales tax code, proven live on QuickBooks Enterprise 24: Tax is tax after the discount (true), Non is tax on the full amount (false). On write, true or false is never sent as a field; every discount line with no TaxCodeRef of its own is coded Tax or Non, and an explicit TAX or NON that contradicts the value is 400 (code 2010, element Line.DiscountLineDetail.TaxCodeRef). A custom tax code on a discount line wins. DiscountLineDetail.TaxCodeRef is written as that line's sales tax code. With no discount lines the value is accepted and does nothing. Read: present only when the form has discount lines and they are all Tax (true) or all Non (false); omitted when mixed. On a sparse update with no Line, a value equal to the current one is accepted; a different one is 422 UNSUPPORTED_BY_DESKTOP, so send the full Line array to change it. Any value that is not a boolean is 400 (code 2010)."
1778
1946
  }
1779
1947
  ],
1780
1948
  "unsupported": [
1949
+ {
1950
+ "case": "GET /{id}/pdf",
1951
+ "error": "UNSUPPORTED_BY_DESKTOP",
1952
+ "note": "qbXML cannot render or return a PDF of a transaction, so the route answers 422. Render the PDF from the JSON record in your own application."
1953
+ },
1954
+ {
1955
+ "case": "POST /{id}/send (actually sending the email)",
1956
+ "error": "UNSUPPORTED_BY_DESKTOP",
1957
+ "note": "The route is queue-only: it sets EmailStatus NeedToSend (Desktop IsToBeEmailed) through a sparse update and returns the record, so the form lands in QuickBooks' To be e-mailed queue. TenkeyBridge sends no mail; QuickBooks sends the form to the customer's email address. sendTo is ignored (X-TKB-Warning says so). Desktop refuses the queue (3180) when the company file has no company email."
1958
+ },
1781
1959
  {
1782
1960
  "case": "Line.DiscountLineDetail without an ItemRef or a single matching DiscountAccountRef item (bare-percentage or amount-off discounts)",
1783
1961
  "error": "MISSING_REQUIRED_DESKTOP_ITEM",
@@ -1787,6 +1965,11 @@ var CATALOG = {
1787
1965
  "case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly",
1788
1966
  "error": "UNSUPPORTED_BY_DESKTOP",
1789
1967
  "note": "These line types do not map to QuickBooks Desktop sales transactions. Remove them or flatten to a supported DetailType. See COMPATIBILITY.md."
1968
+ },
1969
+ {
1970
+ "case": "ApplyTaxAfterDiscount changed on a sparse update that carries no Line",
1971
+ "error": "UNSUPPORTED_BY_DESKTOP",
1972
+ "note": "On Desktop the value lives on each discount line's tax code, so it cannot change on its own. Send the full Line array in the same update."
1790
1973
  }
1791
1974
  ]
1792
1975
  },
@@ -1821,7 +2004,7 @@ var CATALOG = {
1821
2004
  {
1822
2005
  "qbo": "DesktopItemType",
1823
2006
  "support": "partial",
1824
- "note": "TenkeyBridge extension (QBO has no such field). Read on every item: Service, NonInventory, Inventory, InventoryAssembly, FixedAsset, OtherCharge, Discount, Subtotal, Payment, SalesTax, SalesTaxGroup or Group. It is also the write selector for the families QBO has no Type for: Discount, OtherCharge, Subtotal, Payment and InventoryAssembly (send it with the matching Type: Service for the first four, Inventory for InventoryAssembly). A value that disagrees with Type, or one that tries to change on update, is a 400 with code 2010. SalesTax and SalesTaxGroup items cannot be written through the Item API (write a sales tax item through POST /taxrate and a sales tax group through POST /taxservice/taxcode); FixedAsset create is not supported."
2007
+ "note": "TenkeyBridge extension (QBO has no such field). Read on every item: Service, NonInventory, Inventory, InventoryAssembly, FixedAsset, OtherCharge, Discount, Subtotal, Payment, SalesTax, SalesTaxGroup or Group. It is also the write selector for the families QBO has no Type for: Discount, OtherCharge, Subtotal, Payment, InventoryAssembly and FixedAsset (send it with the matching Type: Service for the first four, Inventory for InventoryAssembly, NonInventory for FixedAsset). A value that disagrees with Type, or one that tries to change on update, is a 400 with code 2010. FixedAsset is written with Type NonInventory (the same pair a read returns); see the fixed asset rows below. SalesTax and SalesTaxGroup items cannot be written through the Item API (write a sales tax item through POST /taxrate and a sales tax group through POST /taxservice/taxcode)."
1825
2008
  },
1826
2009
  {
1827
2010
  "qbo": "ItemGroupDetail",
@@ -1868,10 +2051,35 @@ var CATALOG = {
1868
2051
  "support": "partial",
1869
2052
  "note": "TenkeyBridge extension. Read only, on SalesTaxGroup items: the member tax items."
1870
2053
  },
2054
+ {
2055
+ "qbo": "PurchaseDate",
2056
+ "support": "partial",
2057
+ "note": "TenkeyBridge extension. Fixed asset items only (any other item type is a 400, code 2010). The date the asset was bought (YYYY-MM-DD). Required on create (Desktop requires it); read back as sent."
2058
+ },
2059
+ {
2060
+ "qbo": "AcquiredAs",
2061
+ "support": "partial",
2062
+ "note": "TenkeyBridge extension. Fixed asset items only: New or Old (default New on create). Desktop requires it, so a create always sends it."
2063
+ },
2064
+ {
2065
+ "qbo": "VendorOrPayeeName",
2066
+ "support": "partial",
2067
+ "note": "TenkeyBridge extension. Fixed asset items only: who the asset was bought from (text, max 50 characters)."
2068
+ },
2069
+ {
2070
+ "qbo": "Location",
2071
+ "support": "partial",
2072
+ "note": "TenkeyBridge extension. Fixed asset items only: where the asset is kept (max 50 characters)."
2073
+ },
2074
+ {
2075
+ "qbo": "SerialNumber",
2076
+ "support": "partial",
2077
+ "note": "TenkeyBridge extension. Fixed asset items only (max 30 characters)."
2078
+ },
1871
2079
  {
1872
2080
  "qbo": "Description",
1873
2081
  "support": "full",
1874
- "note": "Desktop sales description: SalesOrPurchase/Desc, SalesAndPurchase/SalesDesc, or SalesDesc on Inventory."
2082
+ "note": "Desktop sales description: SalesOrPurchase/Desc, SalesAndPurchase/SalesDesc, or SalesDesc on Inventory. On a fixed asset item it is the asset description (AssetDesc, max 50 characters), read as the purchase description when the asset has none."
1875
2083
  },
1876
2084
  {
1877
2085
  "qbo": "UnitPrice",
@@ -1911,12 +2119,12 @@ var CATALOG = {
1911
2119
  {
1912
2120
  "qbo": "AssetAccountRef",
1913
2121
  "support": "full",
1914
- "note": "Inventory only; required on create."
2122
+ "note": "Inventory and fixed asset items; required on create for both (a fixed asset item with no asset account is refused by Desktop, error 3180, so it is a 400 here with code 2020)."
1915
2123
  },
1916
2124
  {
1917
2125
  "qbo": "PurchaseDesc",
1918
2126
  "support": "full",
1919
- "note": "Inventory and two-sided Service/NonInventory (SalesAndPurchase). Purchase-side fields must be present at creation: Desktop cannot turn an existing sales-only item into a two-sided one, so adding them on update is refused with UNSUPPORTED_BY_DESKTOP."
2127
+ "note": "Fixed asset items: required on create (Description is used when it is omitted), max 50 characters. Inventory and two-sided Service/NonInventory (SalesAndPurchase). Purchase-side fields must be present at creation: Desktop cannot turn an existing sales-only item into a two-sided one, so adding them on update is refused with UNSUPPORTED_BY_DESKTOP."
1920
2128
  },
1921
2129
  {
1922
2130
  "qbo": "PurchaseCost",
@@ -1967,9 +2175,9 @@ var CATALOG = {
1967
2175
  "workaround": "Write a sales tax item through the TaxRate endpoint (POST /taxrate) and a sales tax group through POST /taxservice/taxcode."
1968
2176
  },
1969
2177
  {
1970
- "case": "Creating or updating FixedAsset items",
1971
- "error": "UNSUPPORTED_BY_DESKTOP",
1972
- "note": "Fixed assets read as Type NonInventory with DesktopItemType FixedAsset. Writing them is not supported."
2178
+ "case": "Fixed asset item fields beyond the listed extensions (PONumber, Notes, warranty date, asset number, cost basis, year-end depreciation, sales information)",
2179
+ "error": "UNMAPPED_FIELD",
2180
+ "note": "Fixed asset items write and read the fields listed on the DesktopItemType row. The other Desktop fixed asset fields are not mapped."
1973
2181
  },
1974
2182
  {
1975
2183
  "case": "Category items, and turning a sales-only item into a two-sided one",
@@ -2446,7 +2654,12 @@ var CATALOG = {
2446
2654
  {
2447
2655
  "qbo": "Line",
2448
2656
  "support": "partial",
2449
- "note": "ItemBasedExpenseLineDetail only (PurchaseOrderLineAdd). AccountBasedExpenseLineDetail returns UNSUPPORTED_BY_DESKTOP. ReceivedQty maps from ReceivedQuantity on read (read-only). Updates carrying Line send the full line table (PurchaseOrderLineMod): a line with the Id a read returned keeps that Desktop line (Id = TxnLineID), a line without an Id is added, and any existing line omitted from the array is deleted \u2014 send the whole array. Fields you omit from a line that carries an Id are filled from the current record; changing Qty or UnitPrice without Amount recomputes Amount, and restating Amount alone drops the inherited Rate and Qty. An Id that is not a line of the PO is a 400; an Id listed twice is 2010; an empty Line array is refused. Per-line IsManuallyClosed is not exposed. Verified live on QuickBooks Enterprise 24 (2026-09-30): the Id/new/deleted-line table, qty recompute and OSR child order are accepted."
2657
+ "note": "ItemBasedExpenseLineDetail only (PurchaseOrderLineAdd). AccountBasedExpenseLineDetail returns UNSUPPORTED_BY_DESKTOP. ReceivedQty maps from ReceivedQuantity on read (read-only). Updates carrying Line send the full line table (PurchaseOrderLineMod): a line with the Id a read returned keeps that Desktop line (Id = TxnLineID), a line without an Id is added, and any existing line omitted from the array is deleted \u2014 send the whole array. Fields you omit from a line that carries an Id are filled from the current record; changing Qty or UnitPrice without Amount recomputes Amount, and restating Amount alone drops the inherited Rate and Qty. An Id that is not a line of the PO is a 400; an Id listed twice is 2010; an empty Line array is refused. Per-line IsManuallyClosed is not exposed. Item group lines (PurchaseOrderLineGroupRet) read as their component item lines, in the group's place and in Desktop's order, each carrying the TenkeyBridge extension fields GroupLineId (the group's Id), GroupItemRef and GroupQuantity; the component lines are read-only. Create: send {DetailType: GroupLineDetail, GroupLineDetail: {GroupItemRef, Quantity}} among the item lines (PurchaseOrderLineGroupAdd; GroupItemRef is required, Quantity optional). Update, with the whole Line array: send all of a group's component lines back to keep the group, none of them to delete it; sending only some is a 400 (2010). A component can be edited in place: change its Qty, UnitPrice, Amount, Description, ItemRef, ClassRef or CustomerRef in the whole array and send every component of the group (the gateway sends one nested PurchaseOrderLineMod per component inside the group's PurchaseOrderLineGroupMod; Desktop deletes any component left out of that list, so a partial list with an edit is a 400, 2010). The edit follows the plain item line rules: a Qty or UnitPrice change re-derives Amount, an Amount change keeps the quantity and derives the rate, an Amount that only repeats the read is ignored. Edits survive a later group quantity change (the component quantities follow the group quantity, 5 at group quantity 2 becomes 7.5 at 3). Changing a component's DetailType or GroupLineId, or combining a component edit with a change to the group's item or quantity in the same request, is a 400 (2010). To change the group itself send a GroupLineDetail line whose Id is the group's GroupLineId (GroupItemRef and Quantity you omit are filled from the current record; PurchaseOrderLineGroupMod); a GroupLineDetail line without an Id adds a new group. An Id cannot change a line between item and group (400, 2010). Verified live on QuickBooks Enterprise 24 (2026-09-30, group create and update 2026-10-20, component edits 2026-10-21): the Id/new/deleted-line table, qty recompute and OSR child order are accepted."
2658
+ },
2659
+ {
2660
+ "qbo": "LinkedTxn",
2661
+ "support": "partial",
2662
+ "note": "Read-only, populated on read: the Bill(s) created from the purchase order, as {TxnId, TxnType: Bill}. Desktop-only link types (ItemReceipt, ...) are omitted. On a keyed GET, a query and every page of a paged query (live, 2026-10-21). Accepted and ignored on write, as in QBO. Linking a new Bill to a purchase order is not supported (see Bill.LinkedTxn)."
2450
2663
  },
2451
2664
  {
2452
2665
  "qbo": "TotalAmt",
@@ -2562,6 +2775,16 @@ var CATALOG = {
2562
2775
  "support": "partial",
2563
2776
  "note": "Check refunds only. TenkeyBridge sends the check as not to be printed (Desktop would otherwise drop DocNumber); send NeedToPrint to queue it for printing, in which case Desktop ignores DocNumber."
2564
2777
  },
2778
+ {
2779
+ "qbo": "BillEmail",
2780
+ "support": "partial",
2781
+ "note": "Accepted and not stored. Desktop sales forms have no email address of their own: QuickBooks sends a form to the customer's email address. BillEmailCc and BillEmailBcc are accepted and dropped the same way. They are never returned on read, so update the customer's PrimaryEmailAddr to change where forms go."
2782
+ },
2783
+ {
2784
+ "qbo": "ApplyTaxAfterDiscount",
2785
+ "support": "partial",
2786
+ "note": "Accepted when true or false and never sent: a Desktop refund receipt here carries no discount lines for it to apply to. Any other value is 400 (code 2010)."
2787
+ },
2565
2788
  {
2566
2789
  "qbo": "TxnDate",
2567
2790
  "support": "full",
@@ -2612,6 +2835,11 @@ var CATALOG = {
2612
2835
  "case": "Update / sparse update",
2613
2836
  "error": "UNSUPPORTED_BY_DESKTOP",
2614
2837
  "note": "Neither refund family (ARRefundCreditCard or Check applied to a credit memo) has an update path in this release. Delete and create again."
2838
+ },
2839
+ {
2840
+ "case": "ApplyTaxAfterDiscount is not a boolean",
2841
+ "error": "2010",
2842
+ "note": "ApplyTaxAfterDiscount must be true or false. Either value is accepted and has no effect on a refund receipt, which carries no discount lines."
2615
2843
  }
2616
2844
  ]
2617
2845
  },
@@ -2658,7 +2886,7 @@ var CATALOG = {
2658
2886
  "group": "platform",
2659
2887
  "read": "partial",
2660
2888
  "write": "none",
2661
- "headline": "Forty-eight QBO-compatible reports served from QuickBooks Desktop: 24 translated live from Desktop's report engine (summary, detail, aging, balance, sales and sales-tax reports), 22 Desktop extension reports with no QBO twin, and two composites, AccountList (built from Desktop's account list) and CashFlow (built from several queries). CashFlow is derived, not translated: Desktop's SDK has no cash-flow report, so it is computed from Profit and Loss and two Trial Balances and checked against Desktop before it is returned.",
2889
+ "headline": "Seventy-seven QBO-compatible reports served from QuickBooks Desktop: 26 translated live from Desktop's report engine (summary, detail, aging, balance, sales, sales-tax and budget reports), 49 Desktop extension reports with no QBO twin, and two composites, AccountList (built from Desktop's account list) and CashFlow (built from several queries). CashFlow is derived, not translated: Desktop's SDK has no cash-flow report, so it is computed from Profit and Loss and two Trial Balances and checked against Desktop before it is returned.",
2662
2890
  "usage": "GET /v3/company/{companyId}/reports/ProfitAndLoss?start_date=2026-01-01&end_date=2026-12-31&summarize_column_by=Month",
2663
2891
  "fields": [
2664
2892
  {
@@ -2731,10 +2959,28 @@ var CATALOG = {
2731
2959
  "support": "partial",
2732
2960
  "note": "Built from Desktop's account list (AccountQueryRq). Desktop has no account detail type, so that column is absent."
2733
2961
  },
2962
+ {
2963
+ "qbo": "ClassSales",
2964
+ "support": "partial",
2965
+ "note": "Desktop's custom summary report (CustomSummaryReportQueryRq, rows by Class over OrdinaryIncome accounts): one row per class plus Unclassified and TOTAL. Takes dates or date_macro, accounting_method, summarize_column_by (Month, Week, Days, Quarter, Year), customer, item, class and transaction_type. The account filter is fixed to income, so account, account_type, vendor and the modified-date filter fault.",
2966
+ "error": "REPORT_UNSUPPORTED_OPTION"
2967
+ },
2968
+ {
2969
+ "qbo": "TransactionListWithSplits",
2970
+ "support": "partial",
2971
+ "note": "Desktop's custom transaction detail report (CustomDetailReportQueryRq, rows by Account): every transaction line with a Split column, grouped under each account it touches. Takes dates or date_macro, accounting_method, customer, vendor, item, class, account or account_type, transaction_type, start_moddate/end_moddate and columns (default columns: date, type, number, name, memo, account, split, amount). No column split. Each filter was proven against QuickBooks Enterprise 24 (2026-10-20). Desktop groups the rows by account, so a transaction with two splits appears under both accounts.",
2972
+ "error": "REPORT_UNSUPPORTED_OPTION"
2973
+ },
2974
+ {
2975
+ "qbo": "BudgetOverview / BudgetVsActuals",
2976
+ "support": "partial",
2977
+ "note": "BudgetSummaryReportQueryRq ProfitAndLossBudgetOverview / ProfitAndLossBudgetVsActual, one column group per month plus a period total. Desktop scopes a budget report by fiscal year, so these take fiscal_year (four digits, default: the current year) instead of dates, plus an optional class filter (one or more class Ids; sent as BudgetCriterion AccountsAndClasses so the budget side follows the filter, live-proven on a class budget), and no other filters or column split; column titles are qualified with their month (for example 'Jan 26 - Budget'). Profit and loss budgets only; balance sheet budgets stay on the Budget entity. A budget set up only by class (or by customer) reads as zeros without the class filter: the unfiltered read asks Desktop for the account budget, and no customer filter is offered (qbXML cannot create a customer budget, and BudgetCriterion AccountsAndCustomers returned nothing beyond the account budget on the test file). Read-only, like QBO.",
2978
+ "error": "REPORT_UNSUPPORTED_OPTION"
2979
+ },
2734
2980
  {
2735
2981
  "qbo": "Desktop extension reports",
2736
2982
  "support": "full",
2737
- "note": "ProfitAndLossByClass, ProfitAndLossByJob, ProfitAndLossPrevYearComp, ProfitAndLossYTDComp, BalanceSheetPrevYearComp, BalanceSheetByClass, PurchaseByVendorSummary, PurchaseByItemSummary, SalesByRepSummary, InventoryStockStatusByItem, OpenInvoices, UnpaidBillsDetail, OpenPOs, SalesByCustomerDetail, SalesByItemDetail, IncomeByCustomerDetail, ExpenseByVendorDetail, PurchaseByVendorDetail, DepositDetail, CheckDetail, BalanceSheetDetail, CollectionsReport. Desktop reports with no QBO twin, served under their Desktop names in the same QBO report JSON."
2983
+ "note": "ProfitAndLossByClass, ProfitAndLossByJob, ProfitAndLossPrevYearComp, ProfitAndLossYTDComp, BalanceSheetPrevYearComp, BalanceSheetByClass, PurchaseByVendorSummary, PurchaseByItemSummary, SalesByRepSummary, InventoryStockStatusByItem, OpenInvoices, UnpaidBillsDetail, OpenPOs, SalesByCustomerDetail, SalesByItemDetail, IncomeByCustomerDetail, ExpenseByVendorDetail, PurchaseByVendorDetail, DepositDetail, CheckDetail, BalanceSheetDetail, CollectionsReport, and since Reports wave 4 TxnDetailByAccount, UnbilledCostsByJob, AuditTrail, 1099Detail, SalesByRepDetail, PurchaseByItemDetail, OpenPOsByJob, EstimatesByJob, JobProgressInvoicesVsEstimates, OpenSalesOrderByCustomer, OpenSalesOrderByItem, PendingSales, IncomeTaxDetail, MissingChecks, SalesTaxRevenueSummary, IncomeTaxSummary, BalanceSheetSummary, InventoryStockStatusByVendor, and the Job and Time reports JobProfitabilitySummary, JobEstimatesVsActualsSummary, ItemProfitability, ItemEstimatesVsActuals, JobProfitabilityDetail, JobEstimatesVsActualsDetail, TimeByJobSummary, TimeByJobDetail, TimeByItem, TimeByName, and since Reports wave 5 PhysicalInventoryWorksheet (a bare snapshot: Desktop refuses every period, filter, basis and column option on it, so the gateway refuses them too) and the Advanced Inventory reports InventoryValuationSummaryBySite, LotNumberInStockBySite and SerialNumberInStockBySite (sent bare; a company file without Advanced Inventory answers 3250, which becomes a 422 REPORT_FEATURE_UNAVAILABLE naming the feature; not live-proven past that gate, and unavailable in the sandbox). Filters are enabled only where they were proven live on QuickBooks Enterprise 24 (2026-10-20): customer/vendor, item, class, account type, transaction type and modified date on the detail reports (not the account filter on UnbilledCostsByJob and PendingSales, which Desktop fails with an internal error), the same minus modified date on the summaries, all but vendor on the four Job summaries, customer, item and class on the Time reports; the two Job detail reports require a customer or job Id and take no other filter; MissingChecks requires account Ids (Desktop refuses a bare query and an account type, as it does ReportBasis) and takes transaction type, class, modified date and columns. 1099Detail takes no filter at all (an entity filter crashed QuickBooks, so the gateway refuses every filter on it before it reaches Desktop). The Time reports take no columns (Desktop refuses Duration). Desktop reports with no QBO twin, served under their Desktop names in the same QBO report JSON."
2738
2984
  },
2739
2985
  {
2740
2986
  "qbo": "start_date / end_date / date_macro",
@@ -2811,14 +3057,9 @@ var CATALOG = {
2811
3057
  "note": "qbXML's SummarizeColumnsBy has no per-item, per-employee or per-location split (ItemType splits by item type, not by item)."
2812
3058
  },
2813
3059
  {
2814
- "case": "ClassSales / DepartmentSales",
3060
+ "case": "DepartmentSales",
2815
3061
  "error": "REPORT_UNKNOWN",
2816
- "note": "No Desktop SDK report. Use ProfitAndLoss?summarize_column_by=Classes."
2817
- },
2818
- {
2819
- "case": "TransactionListWithSplits",
2820
- "error": "REPORT_UNKNOWN",
2821
- "note": "No Desktop SDK report of that name. Use JournalReport."
3062
+ "note": "Desktop has no departments. Use ClassSales."
2822
3063
  },
2823
3064
  {
2824
3065
  "case": "other QBO report names",
@@ -2888,6 +3129,26 @@ var CATALOG = {
2888
3129
  "support": "full",
2889
3130
  "note": "Maps to Desktop CustomerMsgRef by FullName; the message must already exist as a Desktop customer message. Updatable via sparse update (#55)."
2890
3131
  },
3132
+ {
3133
+ "qbo": "ProjectRef",
3134
+ "support": "full",
3135
+ "note": "A Desktop job is a QBO project, so ProjectRef sets the transaction's customer to the job (send the job's Id or full name). If CustomerRef is sent too, the job wins, and nothing is looked up: the job already implies its parent customer. Read: when the customer is a job (its full name contains a colon), ProjectRef is returned with the same value and name as CustomerRef, which stays exactly as Desktop returns it. A QBO project is one level deep and a Desktop job can sit under another job, so ProjectRef here means any job."
3136
+ },
3137
+ {
3138
+ "qbo": "EmailStatus",
3139
+ "support": "partial",
3140
+ "note": "Maps to Desktop IsToBeEmailed. NeedToSend writes true; NotSet and EmailSent write false, because Desktop only knows whether the form is still queued. Read: true is NeedToSend, false is NotSet. Desktop does not record that a form was sent, so EmailSent is never returned. Setting NeedToSend sends nothing by itself: it only queues the form in QuickBooks."
3141
+ },
3142
+ {
3143
+ "qbo": "PrintStatus",
3144
+ "support": "partial",
3145
+ "note": "Maps to Desktop IsToBePrinted. NeedToPrint writes true; NotSet and PrintComplete write false. Read: true is NeedToPrint, false is NotSet. Desktop does not record that a form was printed, so PrintComplete is never returned."
3146
+ },
3147
+ {
3148
+ "qbo": "BillEmail",
3149
+ "support": "partial",
3150
+ "note": "Accepted and not stored. Desktop sales forms have no email address of their own: QuickBooks sends a form to the customer's email address. BillEmailCc and BillEmailBcc are accepted and dropped the same way. They are never returned on read, so update the customer's PrimaryEmailAddr to change where forms go."
3151
+ },
2891
3152
  {
2892
3153
  "qbo": "Line",
2893
3154
  "support": "partial",
@@ -2932,9 +3193,30 @@ var CATALOG = {
2932
3193
  "qbo": "operation=void",
2933
3194
  "support": "partial",
2934
3195
  "note": "POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType SalesReceipt), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QB Enterprise 24 (2026-09-29): the re-read shows amounts and line Qty zeroed, PrivateNote prefixed `VOID: `, TxnDate unchanged, a new SyncToken; voiding again succeeds. The response is whatever Desktop returns on the post-void re-read (nothing is fabricated)."
3196
+ },
3197
+ {
3198
+ "qbo": "ApplyTaxAfterDiscount",
3199
+ "support": "partial",
3200
+ "note": "Maps onto the discount line's own sales tax code, proven live on QuickBooks Enterprise 24: Tax is tax after the discount (true), Non is tax on the full amount (false). On write, true or false is never sent as a field; every discount line with no TaxCodeRef of its own is coded Tax or Non, and an explicit TAX or NON that contradicts the value is 400 (code 2010, element Line.DiscountLineDetail.TaxCodeRef). A custom tax code on a discount line wins. DiscountLineDetail.TaxCodeRef is written as that line's sales tax code. With no discount lines the value is accepted and does nothing. Read: present only when the form has discount lines and they are all Tax (true) or all Non (false); omitted when mixed. On a sparse update with no Line, a value equal to the current one is accepted; a different one is 422 UNSUPPORTED_BY_DESKTOP, so send the full Line array to change it. Any value that is not a boolean is 400 (code 2010)."
2935
3201
  }
2936
3202
  ],
2937
- "unsupported": []
3203
+ "unsupported": [
3204
+ {
3205
+ "case": "GET /{id}/pdf",
3206
+ "error": "UNSUPPORTED_BY_DESKTOP",
3207
+ "note": "qbXML cannot render or return a PDF of a transaction, so the route answers 422. Render the PDF from the JSON record in your own application."
3208
+ },
3209
+ {
3210
+ "case": "POST /{id}/send (actually sending the email)",
3211
+ "error": "UNSUPPORTED_BY_DESKTOP",
3212
+ "note": "The route is queue-only: it sets EmailStatus NeedToSend (Desktop IsToBeEmailed) through a sparse update and returns the record, so the form lands in QuickBooks' To be e-mailed queue. TenkeyBridge sends no mail; QuickBooks sends the form to the customer's email address. sendTo is ignored (X-TKB-Warning says so). Desktop refuses the queue (3180) when the company file has no company email."
3213
+ },
3214
+ {
3215
+ "case": "ApplyTaxAfterDiscount changed on a sparse update that carries no Line",
3216
+ "error": "UNSUPPORTED_BY_DESKTOP",
3217
+ "note": "On Desktop the value lives on each discount line's tax code, so it cannot change on its own. Send the full Line array in the same update."
3218
+ }
3219
+ ]
2938
3220
  },
2939
3221
  "Tag": {
2940
3222
  "entity": "Tag",
@@ -3007,7 +3289,8 @@ var CATALOG = {
3007
3289
  {
3008
3290
  "case": "Create or update",
3009
3291
  "error": "UNSUPPORTED_BY_DESKTOP",
3010
- "note": "TaxAgency is a read-only projection of tax-vendor Vendors. Manage the Vendor (and ItemSalesTax.TaxVendorRef) in Desktop."
3292
+ "note": "TaxAgency is a read-only projection of the Vendors that a sales tax item names as its tax agency. Desktop has no tax agency record of its own (live probe 2026-10-20: a VendorAdd flagged IsSalesTaxAgency is accepted but nothing reads it back, and the vendor does not become an agency). A vendor becomes a tax agency when a tax rate points at it.",
3293
+ "workaround": "Create the vendor with POST /vendor, then create a tax rate that names it (POST /taxrate with AgencyRef). It then appears in /taxagency."
3011
3294
  }
3012
3295
  ]
3013
3296
  },
@@ -3846,7 +4129,7 @@ function registerTools(server, client) {
3846
4129
  server.registerTool(
3847
4130
  "run_report",
3848
4131
  {
3849
- description: "Run a QuickBooks Desktop report and get QBO-style report JSON (Header, Columns, Rows). Report names are QBO names such as ProfitAndLoss, BalanceSheet or CashFlow, plus Desktop extension reports. Params use QBO names, e.g. start_date, end_date, date_macro, accounting_method, summarize_column_by, customer, vendor, item, class, account, account_type, transaction_type, columns. Read compat://entity/reports for the available reports and which params each takes.",
4132
+ description: "Run a QuickBooks Desktop report and get QBO-style report JSON (Header, Columns, Rows). Report names are QBO names such as ProfitAndLoss, BalanceSheet or CashFlow, plus Desktop extension reports. Params use QBO names, e.g. start_date, end_date, date_macro, accounting_method, summarize_column_by, customer, vendor, item, class, account, account_type, transaction_type, columns, report_date, start_moddate, end_moddate. BudgetOverview and BudgetVsActuals take fiscal_year instead of dates; MissingChecks requires account, and JobProfitabilityDetail and JobEstimatesVsActualsDetail require customer. ClassSales gives income by class; TransactionListWithSplits lists every split line. Read compat://entity/reports for the available reports and which params each takes.",
3850
4133
  inputSchema: {
3851
4134
  report: z.string().describe('Report name, e.g. "ProfitAndLoss" (case-insensitive).'),
3852
4135
  params: z.record(z.string()).optional().describe('Query params, e.g. { "date_macro": "Last Month" }.')
@@ -3972,10 +4255,53 @@ function registerTools(server, client) {
3972
4255
  }
3973
4256
  }
3974
4257
  );
4258
+ const CLEARED_NEEDS = "This TenkeyBridge client has no cleared status methods; upgrade @tenkeybridge/client to 0.8.0.";
4259
+ server.registerTool(
4260
+ "set_cleared_status",
4261
+ {
4262
+ description: "Set QuickBooks Desktop's cleared status (Cleared, NotCleared, Pending) on an existing Purchase (check), Deposit, BillPayment (check) or JournalEntry. A TenkeyBridge extension (QBO has no equivalent). With only the transaction id it sets the transaction's own bank/card side (a journal entry's first line); with line_id it sets that one line's account side, which must be a bank or other balance sheet account other than A/R and A/P (an expense or income line is refused). A Transfer cannot be cleared through the API. Setting a status is idempotent, so retrying is safe; pass request_id (and txn_type) for replay protection. Use get_cleared_status to confirm what stuck.",
4263
+ inputSchema: {
4264
+ txn_id: z.string().describe("Id of the transaction, as returned by get/query."),
4265
+ cleared_status: z.enum(["Cleared", "NotCleared", "Pending"]),
4266
+ line_id: z.string().optional().describe("Line.Id of the line whose account side to set; omit to set the transaction's own bank side."),
4267
+ txn_type: z.enum(["Purchase", "Deposit", "BillPayment", "JournalEntry"]).optional().describe("Entity of the transaction; lets a lost outcome be reconciled with a read."),
4268
+ request_id: z.string().optional().describe("Idempotency key (1-50 printable ASCII characters).")
4269
+ }
4270
+ },
4271
+ async ({ txn_id, cleared_status, line_id, txn_type, request_id }) => {
4272
+ if (!client.setClearedStatus) return fail(CLEARED_NEEDS);
4273
+ try {
4274
+ return ok(await client.setClearedStatus(
4275
+ { TxnId: txn_id, ClearedStatus: cleared_status, ...line_id !== void 0 ? { LineId: line_id } : {}, ...txn_type !== void 0 ? { TxnType: txn_type } : {} },
4276
+ request_id !== void 0 ? { requestId: request_id } : {}
4277
+ ));
4278
+ } catch (err) {
4279
+ return failure(err);
4280
+ }
4281
+ }
4282
+ );
4283
+ server.registerTool(
4284
+ "get_cleared_status",
4285
+ {
4286
+ description: "Read the cleared status of each bank / balance sheet split of one transaction (Purchase, Deposit, BillPayment, JournalEntry, or Transfer). Costs one extra bounded QuickBooks read (the transaction's own accounts on its own date). Each split has Role, LineId (to send to set_cleared_status) and ClearedStatus; SetByTxnId marks the split a set without line_id would change. Other values QuickBooks reports (such as a reconciled state) are passed through as it spells them.",
4287
+ inputSchema: {
4288
+ txn_id: z.string(),
4289
+ txn_type: z.enum(["Purchase", "Deposit", "BillPayment", "JournalEntry", "Transfer"])
4290
+ }
4291
+ },
4292
+ async ({ txn_id, txn_type }) => {
4293
+ if (!client.getClearedStatus) return fail(CLEARED_NEEDS);
4294
+ try {
4295
+ return ok(await client.getClearedStatus({ txnId: txn_id, txnType: txn_type }));
4296
+ } catch (err) {
4297
+ return failure(err);
4298
+ }
4299
+ }
4300
+ );
3975
4301
  }
3976
4302
 
3977
4303
  // src/version.ts
3978
- var PKG_VERSION = "0.6.0";
4304
+ var PKG_VERSION = "0.8.0";
3979
4305
 
3980
4306
  // src/server.ts
3981
4307
  var SERVER_NAME = "tenkeybridge";