@tenkeybridge/mcp 0.2.0 → 0.4.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/index.js CHANGED
@@ -106,14 +106,14 @@ var CATALOG = {
106
106
  "group": "gaps",
107
107
  "read": "none",
108
108
  "write": "none",
109
- "headline": "QuickBooks Desktop's qbXML API has no attachments interface \u2014 the word 'Attachment' does not occur anywhere in the qbxmlops130 message set.",
109
+ "headline": "Unsupported on QuickBooks Desktop, with no opt-in and no workaround inside TenkeyBridge. qbXML has no attachments interface (the word 'Attachment' does not occur anywhere in the qbxmlops130 message set), and TenkeyBridge does not store files itself.",
110
110
  "fields": [],
111
111
  "unsupported": [
112
112
  {
113
113
  "case": "read",
114
114
  "error": "UNSUPPORTED_BY_DESKTOP",
115
115
  "note": "Re-audited 2026-07-29: zero occurrences of any attachment message (no AttachmentAdd/Query/Ref of any kind) across the full qbxmlops130 schema. Desktop's Attached Documents feature is UI-only; files attached in Desktop cannot be listed or fetched through TenkeyBridge.",
116
- "workaround": "Store documents in your own system keyed by the TenkeyBridge entity Id \u2014 that is what QBD integrations have always had to do."
116
+ "workaround": "Store documents in your own system keyed by the TenkeyBridge entity Id, which is what QuickBooks Desktop integrations have always had to do. Branch on UNSUPPORTED_BY_DESKTOP and skip the Attachable call for Desktop-backed companies."
117
117
  },
118
118
  {
119
119
  "case": "query",
@@ -144,7 +144,7 @@ var CATALOG = {
144
144
  "read": "full",
145
145
  "write": "full",
146
146
  "headline": "Batch envelope \u2014 up to 30 create/update/delete/query operations in one request, executed sequentially with per-item faults.",
147
- "usage": "POST /v3/company/{realmId}/batch",
147
+ "usage": "POST /v3/company/{companyId}/batch",
148
148
  "fields": [
149
149
  {
150
150
  "qbo": "bId",
@@ -164,7 +164,7 @@ var CATALOG = {
164
164
  {
165
165
  "qbo": "Query items",
166
166
  "support": "full",
167
- "note": "Full /query parity: the shared WHERE subset, STARTPOSITION/MAXRESULTS, iterator-backed deep pages."
167
+ "note": "Full /query parity: the same query language (AND-joined WHERE with =, !=, <, >, <=, >=, IN, LIKE; ORDERBY; COUNT(*); column lists; STARTPOSITION/MAXRESULTS), iterator-backed deep pages."
168
168
  },
169
169
  {
170
170
  "qbo": "per-item faults",
@@ -191,7 +191,7 @@ var CATALOG = {
191
191
  {
192
192
  "case": "entity CRUD or /query on Batch itself",
193
193
  "error": "UNSUPPORTED_BY_DESKTOP",
194
- "note": "Batch is a platform endpoint, not an entity \u2014 POST /v3/company/{realmId}/batch."
194
+ "note": "Batch is a platform endpoint, not an entity \u2014 POST /v3/company/{companyId}/batch."
195
195
  }
196
196
  ]
197
197
  },
@@ -247,7 +247,7 @@ var CATALOG = {
247
247
  {
248
248
  "qbo": "CustomField",
249
249
  "support": "partial",
250
- "note": "Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only for now. Accepted and ignored on write."
250
+ "note": "Desktop custom fields (data extensions, OwnerID 0) on the transaction header. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Bill records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30). Desktop never assigns a custom field to Bills (only Customer/Vendor/Employee/Item fields can be defined, and they surface on sales forms and purchase orders), so a Bill CustomField is always a 400 'not assigned to Bill records'."
251
251
  },
252
252
  {
253
253
  "qbo": "CurrencyRef",
@@ -404,12 +404,12 @@ var CATALOG = {
404
404
  "case": "query \u2014 SELECT * cannot enumerate every budget",
405
405
  "error": "UNSUPPORTED_QUERY",
406
406
  "note": "qbXML cannot list budgets: BudgetSummaryReportQueryRq requires a FiscalYear. SELECT * FROM Budget probes a fixed window \u2014 the current calendar year, the one before it, and the one after it \u2014 against both statement types (six report requests in one round-trip) and returns the ones that come back with budgeted amounts. A budget outside that window is invisible to SELECT *. Because the probe is speculative, the query never faults on an individual report's status: a company with no budgets gets an empty list, exactly as QBO answers. GET by id has one report and does surface its status.",
407
- "workaround": "Fetch it by id: GET /v3/company/{realmId}/budget/{fiscalYear}-{BudgetType}, e.g. 2023-ProfitAndLoss, which issues exactly one report request for that year."
407
+ "workaround": "Fetch it by id: GET /v3/company/{companyId}/budget/{fiscalYear}-{BudgetType}, e.g. 2023-ProfitAndLoss, which issues exactly one report request for that year."
408
408
  },
409
409
  {
410
- "case": "query \u2014 WHERE on anything but Id",
410
+ "case": "query \u2014 WHERE on anything but Id, ORDERBY, COUNT(*), column lists",
411
411
  "error": "UNSUPPORTED_QUERY",
412
- "note": "Budget is not a Desktop list, so there is no query filter to compile a WHERE clause into. Only WHERE Id = '{fiscalYear}-{BudgetType}' is accepted; it resolves to the same single report request GET by id uses.",
412
+ "note": "Budget is not a Desktop list, so there is no query filter to compile a WHERE clause into. Only WHERE Id = '{fiscalYear}-{BudgetType}' is accepted; it resolves to the same single report request GET by id uses. ORDERBY, COUNT(*) and column lists are rejected too.",
413
413
  "workaround": "Fetch the window with SELECT * FROM Budget and filter the (at most six) rows client-side."
414
414
  },
415
415
  {
@@ -453,7 +453,7 @@ var CATALOG = {
453
453
  "read": "full",
454
454
  "write": "none",
455
455
  "headline": "Change Data Capture \u2014 one poll returns changed + deleted records across entities.",
456
- "usage": "GET /v3/company/{realmId}/cdc?entities=Invoice,Customer&changedSince=2026-07-01",
456
+ "usage": "GET /v3/company/{companyId}/cdc?entities=Invoice,Customer&changedSince=2026-07-01",
457
457
  "fields": [
458
458
  {
459
459
  "qbo": "entities",
@@ -570,7 +570,7 @@ var CATALOG = {
570
570
  "group": "company",
571
571
  "read": "full",
572
572
  "write": "none",
573
- "headline": "Read-only; Id equals the realm ID, no Desktop write path",
573
+ "headline": "Read-only; Id equals the Company ID, no Desktop write path",
574
574
  "fields": [
575
575
  {
576
576
  "qbo": "CompanyName",
@@ -653,12 +653,51 @@ var CATALOG = {
653
653
  "note": "CompanyInfo is read/query only \u2014 there is exactly one company record, and Desktop has no API to create or modify it."
654
654
  },
655
655
  {
656
- "case": "Any WHERE clause, or STARTPOSITION/MAXRESULTS",
656
+ "case": "Any WHERE clause, ORDERBY, COUNT(*), column list, or STARTPOSITION/MAXRESULTS",
657
657
  "error": "UNSUPPORTED_QUERY",
658
658
  "note": "CompanyQueryRq takes no filters and always returns the single open company record. Use SELECT * FROM CompanyInfo."
659
659
  }
660
660
  ]
661
661
  },
662
+ "CreditCardPayment": {
663
+ "entity": "CreditCardPayment",
664
+ "verdict": "gap",
665
+ "group": "gaps",
666
+ "read": "none",
667
+ "write": "none",
668
+ "headline": "QBO's 'pay down a credit card' transaction has no Desktop record of its own \u2014 Desktop books the same event as a Transfer or a Check against the card account, so there is nothing to project a CreditCardPayment from.",
669
+ "fields": [],
670
+ "unsupported": [
671
+ {
672
+ "case": "read",
673
+ "error": "UNSUPPORTED_BY_DESKTOP",
674
+ "note": "qbXML has no CreditCardPayment message. A card payment made in Desktop is stored as an ordinary Transfer (Transfer Funds) or a Check/Bill Payment whose target is the credit card liability account, and is indistinguishable from any other such transaction on read.",
675
+ "workaround": "Read the same events as Transfer (ToAccountRef = the credit card account) or as a Purchase of type Check. Both are live in TenkeyBridge."
676
+ },
677
+ {
678
+ "case": "query",
679
+ "error": "UNSUPPORTED_BY_DESKTOP",
680
+ "note": "No Desktop CreditCardPayment exists to query; card paydowns appear under Transfer or Purchase.",
681
+ "workaround": "Query Transfer or Purchase and filter client-side by the credit card account."
682
+ },
683
+ {
684
+ "case": "create",
685
+ "error": "UNSUPPORTED_BY_DESKTOP",
686
+ "note": "TenkeyBridge will not guess which Desktop transaction to create in place of a CreditCardPayment.",
687
+ "workaround": "To pay down a card, create a Transfer with FromAccountRef = your bank account and ToAccountRef = the credit card account (or a Purchase/Check whose account line is the credit card account). That is what QuickBooks Desktop records for the same action."
688
+ },
689
+ {
690
+ "case": "update",
691
+ "error": "UNSUPPORTED_BY_DESKTOP",
692
+ "note": "No Desktop CreditCardPayment to update; update the Transfer or Purchase instead."
693
+ },
694
+ {
695
+ "case": "delete",
696
+ "error": "UNSUPPORTED_BY_DESKTOP",
697
+ "note": "No Desktop CreditCardPayment to delete; delete the Purchase instead (Transfer cannot be deleted through qbXML)."
698
+ }
699
+ ]
700
+ },
662
701
  "CreditMemo": {
663
702
  "entity": "CreditMemo",
664
703
  "verdict": "live",
@@ -671,6 +710,17 @@ var CATALOG = {
671
710
  "qbo": "CustomerRef",
672
711
  "support": "full"
673
712
  },
713
+ {
714
+ "qbo": "ClassRef",
715
+ "support": "full",
716
+ "note": "Header-level class (Desktop ClassRef, read and write). Line-level ClassRef is separate."
717
+ },
718
+ {
719
+ "qbo": "DepartmentRef",
720
+ "support": "none",
721
+ "note": "UNMAPPED_FIELD by default. With Departments from classes turned on for the company file, the gateway maps it to the header ClassRef (written to it, read from it); sending a different ClassRef as well is a 400.",
722
+ "error": "UNMAPPED_FIELD"
723
+ },
674
724
  {
675
725
  "qbo": "TxnDate",
676
726
  "support": "full"
@@ -704,6 +754,11 @@ var CATALOG = {
704
754
  "qbo": "PrivateNote",
705
755
  "support": "full"
706
756
  },
757
+ {
758
+ "qbo": "CustomField",
759
+ "support": "partial",
760
+ "note": "Desktop custom fields (data extensions, OwnerID 0) on the transaction header. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to CreditMemo records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). The mechanism was verified live on QuickBooks Enterprise 24 (2026-09-30) on Customer, Vendor, Item, Employee, Invoice and PurchaseOrder; this entity follows the same path."
761
+ },
707
762
  {
708
763
  "qbo": "CustomerMemo",
709
764
  "support": "full",
@@ -712,12 +767,12 @@ var CATALOG = {
712
767
  {
713
768
  "qbo": "Line",
714
769
  "support": "partial",
715
- "note": "Same DetailType support as Invoice: SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; DiscountLineDetail requires a Desktop discount item; other DetailTypes return UNSUPPORTED_BY_DESKTOP. Group lines read back as GroupLineDetail without nested line expansion; Desktop discount lines read back as regular item lines referencing the discount item. Updates carrying Line replace the entire line table: every line is re-created with a new line Id and lines omitted from the update are deleted by Desktop (v1 full replacement, #55)."
770
+ "note": "Same DetailType support as Invoice: SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; DiscountLineDetail requires a Desktop discount item named by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount); other DetailTypes return UNSUPPORTED_BY_DESKTOP. Group lines read back as GroupLineDetail without nested line expansion; Desktop discount lines read back as SalesItemLineDetail lines (never DiscountLineDetail) referencing the discount item, with a negative Amount (verified live). An unknown Line.Id returns 3120 (REST 610); a malformed one returns 3000. Updates carrying Line send the full line table, as QBO requires: a line with the Id a read returned keeps that Desktop line (Id = TxnLineID, stable across updates), a line without an Id (or Id 0 / empty) is added, and any existing line omitted from the array is deleted. Send the whole array on sparse updates too; an Id listed twice is rejected (2010). Fields you omit from a line that carries an Id are filled from the current record before the full line is sent (Desktop would otherwise blank them), and line ClassRef and ServiceDate are written (ServiceDate not on Estimate). Re-sending an existing group line returns 422 (UNSUPPORTED_BY_DESKTOP); omit it to delete it and add a new group line without an Id."
716
771
  },
717
772
  {
718
773
  "qbo": "TxnTaxDetail",
719
774
  "support": "partial",
720
- "note": "Set TxnTaxCodeRef explicitly; computed TotalTax alone is rejected. Updatable via sparse update (#55)."
775
+ "note": "TxnTaxCodeRef selects the tax item (Desktop ItemSalesTaxRef). TotalTax alone is accepted but not sent: QuickBooks then applies the customer's default sales tax item (or the company default) and computes the tax itself, so the tax on read can differ from the TotalTax you sent. When it differs, create/update responses carry a non-fatal X-TKB-Warning header (not emitted for /batch items). Updatable via sparse update (#55)."
721
776
  },
722
777
  {
723
778
  "qbo": "LinkedTxn",
@@ -747,15 +802,10 @@ var CATALOG = {
747
802
  }
748
803
  ],
749
804
  "unsupported": [
750
- {
751
- "case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
752
- "error": "UNSUPPORTED_BY_DESKTOP",
753
- "note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
754
- },
755
805
  {
756
806
  "case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
757
807
  "error": "MISSING_REQUIRED_DESKTOP_ITEM",
758
- "note": "Desktop discounts are items. Create a discount item in the company file and reference it as DiscountLineDetail.ItemRef. See COMPATIBILITY.md."
808
+ "note": "Desktop discounts are items and TenkeyBridge does not guess one: picking a default would silently post the discount to that item's account, and discount items are not readable through the Item API yet. Create a discount item in QuickBooks (Lists > Item List > New > Discount) and pass it as DiscountLineDetail.ItemRef by value (ListID) or name (full name). DiscountAccountRef is ignored; the item carries its own account. See COMPATIBILITY.md."
759
809
  },
760
810
  {
761
811
  "case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly",
@@ -880,7 +930,7 @@ var CATALOG = {
880
930
  {
881
931
  "qbo": "CustomField",
882
932
  "support": "partial",
883
- "note": "Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only for now. Accepted and ignored on write."
933
+ "note": "Desktop custom fields (data extensions, OwnerID 0) on the record. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Customer records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30)."
884
934
  },
885
935
  {
886
936
  "qbo": "CurrencyRef",
@@ -949,9 +999,10 @@ var CATALOG = {
949
999
  ],
950
1000
  "unsupported": [
951
1001
  {
952
- "case": "Create or update",
1002
+ "case": "Create, update or deactivate",
953
1003
  "error": "UNSUPPORTED_BY_DESKTOP",
954
- "note": "QBO's CustomerType is read-only via the API. TenkeyBridge matches that parity even though Desktop allows CustomerTypeAdd. Desktop ParentRef/Sublevel/FullName have no QBO CustomerType fields and are not surfaced."
1004
+ "note": "QBO's CustomerType is read-only via the API, and TenkeyBridge matches that. Desktop has CustomerTypeAdd but no CustomerTypeMod (verified live: a CustomerTypeMod is a qbXML parse error), so a type cannot be renamed or made inactive through the API at all; Desktop's hierarchy (ParentRef/Sublevel/FullName) has no QBO CustomerType fields and is not surfaced.",
1005
+ "workaround": "Create, rename or deactivate the type in QuickBooks Desktop itself; the change shows up on the next read."
955
1006
  }
956
1007
  ]
957
1008
  },
@@ -961,35 +1012,84 @@ var CATALOG = {
961
1012
  "group": "gaps",
962
1013
  "read": "none",
963
1014
  "write": "none",
964
- "headline": "QBO Departments (locations) have no Desktop equivalent \u2014 the only 'Department'/'Location' strings in qbXML are free-text fields on Employee, FixedAsset, and Lead, and Desktop's one real dimensional list (Class) is already exposed faithfully as Class.",
965
- "fields": [],
1015
+ "headline": "QuickBooks Desktop has no Department (location) list, so Department is unsupported by default. Opt in per company file with Departments from classes and Department becomes an alias of Class (DepartmentRef on a transaction becomes its header ClassRef).",
1016
+ "fields": [
1017
+ {
1018
+ "qbo": "Id",
1019
+ "support": "partial",
1020
+ "note": "Only with Departments from classes on: the Class ListID."
1021
+ },
1022
+ {
1023
+ "qbo": "Name",
1024
+ "support": "partial",
1025
+ "note": "Only with Departments from classes on: the Class Name (31 characters max)."
1026
+ },
1027
+ {
1028
+ "qbo": "SubDepartment",
1029
+ "support": "partial",
1030
+ "note": "Only with Departments from classes on: read-only, true when the class has a parent."
1031
+ },
1032
+ {
1033
+ "qbo": "ParentRef",
1034
+ "support": "partial",
1035
+ "note": "Only with Departments from classes on: the parent class."
1036
+ },
1037
+ {
1038
+ "qbo": "FullyQualifiedName",
1039
+ "support": "partial",
1040
+ "note": "Only with Departments from classes on: the class full name (Parent:Child). Read-only."
1041
+ },
1042
+ {
1043
+ "qbo": "Active",
1044
+ "support": "partial",
1045
+ "note": "Only with Departments from classes on: class IsActive. Deactivate with Active:false."
1046
+ },
1047
+ {
1048
+ "qbo": "SyncToken",
1049
+ "support": "partial",
1050
+ "note": "Only with Departments from classes on: the class EditSequence."
1051
+ },
1052
+ {
1053
+ "qbo": "MetaData",
1054
+ "support": "partial",
1055
+ "note": "Only with Departments from classes on: class TimeCreated / TimeModified."
1056
+ }
1057
+ ],
966
1058
  "unsupported": [
967
1059
  {
968
1060
  "case": "read",
969
1061
  "error": "UNSUPPORTED_BY_DESKTOP",
970
- "note": "Re-audited 2026-07-29 against the qbxmlops130 message set: qbXML has no Department or Location list \u2014 no Add/Mod/Query message pair exists. The tokens only appear as plain STRTYPE fields (Employee.Department, FixedAsset.Location, Lead.Location), which are annotations, not a queryable list.",
971
- "workaround": "If your integration treats QBO locations as just another dimension, remap DepartmentRef onto Class in your own code \u2014 Class is live in TenkeyBridge. We decided against a built-in Department\u2192Class alias, even opt-in: ClassRef already maps to Class, so aliasing would make two QBO fields silently write one Desktop list and collide when a client sends both."
1062
+ "note": "Off by default. Re-audited 2026-07-29 against the qbxmlops130 message set: qbXML has no Department or Location list (no Add/Mod/Query message pair). The tokens only appear as plain STRTYPE fields (Employee.Department, FixedAsset.Location, Lead.Location), which are annotations, not a queryable list.",
1063
+ "workaround": "Turn on Departments from classes for the company file (portal: company file page, Departments card; or PATCH /admin/v1/companies/{companyId}/settings with departmentsFromClasses: true). Department then reads your QuickBooks classes. See the Departments guide."
972
1064
  },
973
1065
  {
974
1066
  "case": "query",
975
1067
  "error": "UNSUPPORTED_BY_DESKTOP",
976
- "note": "qbXML has no Department/Location list to query \u2014 confirmed absent from the qbxmlops130 message set.",
977
- "workaround": "Query Class instead if you remap locations client-side; that remapping is your call, TenkeyBridge never reinterprets DepartmentRef silently."
1068
+ "note": "Off by default: no Department list to query. With Departments from classes on, SELECT ... FROM Department is run against Class and answered as Department; DepartmentRef in a transaction query means its ClassRef.",
1069
+ "workaround": "Turn on Departments from classes, or query Class directly."
978
1070
  },
979
1071
  {
980
1072
  "case": "create",
981
1073
  "error": "UNSUPPORTED_BY_DESKTOP",
982
- "note": "Desktop has no Department create. Use Class if you need a dimensional axis on Desktop."
1074
+ "note": "Off by default. With Departments from classes on, creating a Department creates a Class (ParentRef makes it a sub-class).",
1075
+ "workaround": "Turn on Departments from classes, or create a Class."
983
1076
  },
984
1077
  {
985
1078
  "case": "update",
986
1079
  "error": "UNSUPPORTED_BY_DESKTOP",
987
- "note": "Desktop has no Department update."
1080
+ "note": "Off by default. With Departments from classes on, an update edits the Class (sparse; Name, Active, ParentRef).",
1081
+ "workaround": "Turn on Departments from classes, or update the Class."
988
1082
  },
989
1083
  {
990
1084
  "case": "delete",
991
1085
  "error": "UNSUPPORTED_BY_DESKTOP",
992
- "note": "Desktop has no Department delete."
1086
+ "note": "Always unsupported: a Desktop class cannot be deleted through qbXML. Deactivate with Active:false."
1087
+ },
1088
+ {
1089
+ "case": "DepartmentRef on a transaction",
1090
+ "error": "UNSUPPORTED_BY_DESKTOP",
1091
+ "note": "With Departments from classes on it maps to the header ClassRef on Invoice, SalesReceipt, Estimate, CreditMemo, PurchaseOrder and TimeActivity. Sending a different ClassRef as well is a 400. Bill, Purchase, VendorCredit, JournalEntry, Deposit, RefundReceipt and Transfer have no header class in QuickBooks Desktop (class lives on the lines), so DepartmentRef there is a 422 that says to set ClassRef per line. Off: UNMAPPED_FIELD.",
1092
+ "workaround": "Set ClassRef on each line for those transactions."
993
1093
  }
994
1094
  ]
995
1095
  },
@@ -1016,12 +1116,12 @@ var CATALOG = {
1016
1116
  {
1017
1117
  "qbo": "Line",
1018
1118
  "support": "partial",
1019
- "note": "Write: LinkedTxn (PaymentTxnID path) for undeposited payments, or DepositLineDetail{Entity, AccountRef, PaymentMethodRef, CheckNum} for a manual line \u2014 one or the other, and a manual line's DepositLineDetail.AccountRef is required. Read: Desktop always returns DepositLineDetail; a line sourced from a deposited payment also carries LinkedTxn (TxnId/TxnType Payment) alongside it. Sparse updates cannot modify lines yet."
1119
+ "note": "Write: LinkedTxn (PaymentTxnID path) for undeposited payments, or DepositLineDetail{Entity, AccountRef, PaymentMethodRef, CheckNum} for a manual line \u2014 one or the other, and a manual line's DepositLineDetail.AccountRef is required. Read: Desktop always returns DepositLineDetail; a line sourced from a deposited payment also carries LinkedTxn (TxnId/TxnType Payment) alongside it. Updates carrying Line send the full table as DepositLineMod: a line with the Id a read returned keeps that Desktop line, a line without an Id is added, and any existing line omitted from the array is deleted \u2014 send the whole array. A manual line has omitted fields filled from the current record; a line sourced from a deposited payment is re-sent as a bare TxnLineID (Desktop keeps the line and its payment link; re-sending PaymentTxnID is refused 3210 because the payment is already deposited), so edits to its amount, account and payer are not applied. A new line linking a still-undeposited payment is accepted. Verified live on QuickBooks Enterprise 24 (2026-09-30). CashBack cannot be updated (422): Desktop needs the cash-back line own TxnLineID, which a QBO read does not expose. An Id that is not a line of the deposit is a 400; an Id listed twice is 2010; an empty Line array is refused."
1020
1120
  },
1021
1121
  {
1022
1122
  "qbo": "CashBack",
1023
- "support": "full",
1024
- "note": "Maps to Desktop CashBackInfo."
1123
+ "support": "partial",
1124
+ "note": "Create and read map to Desktop CashBackInfo. Changing CashBack on an update is 422 UNSUPPORTED_BY_DESKTOP (CashBackInfoMod needs the cash-back line's own TxnLineID, which a read does not expose); an update that echoes the current CashBack unchanged is accepted."
1025
1125
  },
1026
1126
  {
1027
1127
  "qbo": "TotalAmt",
@@ -1048,8 +1148,8 @@ var CATALOG = {
1048
1148
  "verdict": "live",
1049
1149
  "group": "lists",
1050
1150
  "read": "full",
1051
- "write": "none",
1052
- "headline": "Read/query only \u2014 no Desktop write path this release; payroll aggregates out of scope",
1151
+ "write": "partial",
1152
+ "headline": "Read/query plus create and update of core HR fields (live-verified); DisplayName is derived from first/middle/last; SSN is write-only and never returned; payroll fields out of scope",
1053
1153
  "fields": [
1054
1154
  {
1055
1155
  "qbo": "GivenName",
@@ -1069,7 +1169,8 @@ var CATALOG = {
1069
1169
  },
1070
1170
  {
1071
1171
  "qbo": "DisplayName",
1072
- "support": "full"
1172
+ "support": "partial",
1173
+ "note": "Read-only: Desktop derives Name as GivenName MiddleName FamilyName (blanks skipped). A create/update naming a different DisplayName is refused with 400; one that matches is accepted and not sent. Create requires GivenName or FamilyName; DisplayName alone is refused (TenkeyBridge does not split it)."
1073
1174
  },
1074
1175
  {
1075
1176
  "qbo": "PrintOnCheckName",
@@ -1078,7 +1179,8 @@ var CATALOG = {
1078
1179
  },
1079
1180
  {
1080
1181
  "qbo": "Active",
1081
- "support": "full"
1182
+ "support": "full",
1183
+ "note": "Deactivate with a sparse update of Active:false; Desktop employees cannot be deleted through qbXML."
1082
1184
  },
1083
1185
  {
1084
1186
  "qbo": "PrimaryPhone",
@@ -1094,7 +1196,8 @@ var CATALOG = {
1094
1196
  },
1095
1197
  {
1096
1198
  "qbo": "PrimaryAddr",
1097
- "support": "full"
1199
+ "support": "full",
1200
+ "note": "Desktop's employee address has two street lines, City, State and PostalCode. Live limits: Line1/Line2 41 characters, City 31, PostalCode 13 (longer values are rejected up front with 2050; a State longer than Desktop's field fails with Desktop status 3110). Line3-Line5 and Country are rejected on write."
1098
1201
  },
1099
1202
  {
1100
1203
  "qbo": "HiredDate",
@@ -1110,12 +1213,24 @@ var CATALOG = {
1110
1213
  },
1111
1214
  {
1112
1215
  "qbo": "Gender",
1113
- "support": "full"
1216
+ "support": "full",
1217
+ "note": "Male or Female."
1218
+ },
1219
+ {
1220
+ "qbo": "SSN",
1221
+ "support": "partial",
1222
+ "note": "Write-only: accepted as 123-45-6789 or 123456789 on create/update and never returned by Desktop (verified live: absent from Add, Mod, Get and Query responses). A masked value (XXX-XX-1234) is rejected on create and skipped on update, never written."
1114
1223
  },
1115
1224
  {
1116
1225
  "qbo": "CustomField",
1117
1226
  "support": "partial",
1118
- "note": "Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only."
1227
+ "note": "Desktop custom fields (data extensions, OwnerID 0) on the record. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Employee records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30)."
1228
+ },
1229
+ {
1230
+ "qbo": "EmployeeNumber",
1231
+ "support": "none",
1232
+ "note": "Desktop's Employee record has no employee-number field; keep the number in your own system keyed by the TenkeyBridge Id.",
1233
+ "error": "UNSUPPORTED_BY_DESKTOP"
1119
1234
  },
1120
1235
  {
1121
1236
  "qbo": "TargetBonus",
@@ -1132,9 +1247,42 @@ var CATALOG = {
1132
1247
  ],
1133
1248
  "unsupported": [
1134
1249
  {
1135
- "case": "Create or update",
1250
+ "case": "Delete",
1136
1251
  "error": "UNSUPPORTED_BY_DESKTOP",
1137
- "note": "Employee is read/query only this release; TenkeyBridge doesn't expose a Desktop write path for it."
1252
+ "note": "QBO employees are deactivated, not deleted; TenkeyBridge follows that (sparse update with Active:false)."
1253
+ },
1254
+ {
1255
+ "case": "Payroll fields",
1256
+ "error": "UNSUPPORTED_BY_DESKTOP",
1257
+ "note": "Pay rates, pay periods, wage items and other EmployeePayrollInfo content are license-gated in Desktop and not exposed for read or write."
1258
+ }
1259
+ ]
1260
+ },
1261
+ "Entitlements": {
1262
+ "entity": "Entitlements",
1263
+ "verdict": "live",
1264
+ "group": "platform",
1265
+ "read": "partial",
1266
+ "write": "none",
1267
+ "headline": "GET /v3/company/{companyId}/entitlements \u2014 a static, honest capability document for a QuickBooks Desktop company (no per-file subscription data).",
1268
+ "usage": "GET /v3/company/{companyId}/entitlements",
1269
+ "fields": [
1270
+ {
1271
+ "qbo": "Entitlements.platform",
1272
+ "support": "full",
1273
+ "note": 'Always "QuickBooks Desktop" \u2014 TenkeyBridge talks to Desktop, never to a QBO subscription.'
1274
+ },
1275
+ {
1276
+ "qbo": "Entitlements.features",
1277
+ "support": "partial",
1278
+ "note": "Static list of what TenkeyBridge supports on Desktop (accounting API, query, CDC, batch, reports). It is not read from the company file; plan tiers, seats and add-ons (Payroll, Advanced) that QBO reports are not available from Desktop."
1279
+ }
1280
+ ],
1281
+ "unsupported": [
1282
+ {
1283
+ "case": "QBO subscription tier, seats and add-ons",
1284
+ "error": "UNSUPPORTED_BY_DESKTOP",
1285
+ "note": "Desktop has no subscription entitlements exposed over qbXML; the response says so explicitly rather than inventing values."
1138
1286
  }
1139
1287
  ]
1140
1288
  },
@@ -1144,12 +1292,23 @@ var CATALOG = {
1144
1292
  "group": "sales",
1145
1293
  "read": "full",
1146
1294
  "write": "partial",
1147
- "headline": "Same shape as Invoice; no expiration/acceptance tracking",
1295
+ "headline": "Same shape as Invoice; expiration date and active/closed status, no acceptance tracking",
1148
1296
  "fields": [
1149
1297
  {
1150
1298
  "qbo": "CustomerRef",
1151
1299
  "support": "full"
1152
1300
  },
1301
+ {
1302
+ "qbo": "ClassRef",
1303
+ "support": "full",
1304
+ "note": "Header-level class (Desktop ClassRef, read and write). Line-level ClassRef is separate."
1305
+ },
1306
+ {
1307
+ "qbo": "DepartmentRef",
1308
+ "support": "none",
1309
+ "note": "UNMAPPED_FIELD by default. With Departments from classes turned on for the company file, the gateway maps it to the header ClassRef (written to it, read from it); sending a different ClassRef as well is a 400.",
1310
+ "error": "UNMAPPED_FIELD"
1311
+ },
1153
1312
  {
1154
1313
  "qbo": "TxnDate",
1155
1314
  "support": "full"
@@ -1177,7 +1336,18 @@ var CATALOG = {
1177
1336
  },
1178
1337
  {
1179
1338
  "qbo": "DueDate",
1180
- "support": "full"
1339
+ "support": "full",
1340
+ "note": "Desktop has one estimate due date, which is also QBO's ExpirationDate; both names read back with the same value. Sending both with different values: on update the one that differs from the current record wins (ExpirationDate if both changed); on create ExpirationDate wins."
1341
+ },
1342
+ {
1343
+ "qbo": "ExpirationDate",
1344
+ "support": "full",
1345
+ "note": "Maps to the Desktop estimate DueDate. Read and write."
1346
+ },
1347
+ {
1348
+ "qbo": "TxnStatus",
1349
+ "support": "partial",
1350
+ "note": "Maps to Desktop IsActive: Pending = active, Closed = inactive (Mark as inactive). Closed means only that the estimate is marked inactive in Desktop; an estimate converted to an invoice still reads as Pending. Accepted and Rejected have no Desktop state and return UNSUPPORTED_BY_DESKTOP. Not independently verified against a live EstimateRet yet."
1181
1351
  },
1182
1352
  {
1183
1353
  "qbo": "PrivateNote",
@@ -1191,12 +1361,12 @@ var CATALOG = {
1191
1361
  {
1192
1362
  "qbo": "Line",
1193
1363
  "support": "partial",
1194
- "note": "Same DetailType support as Invoice: SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail requires a Desktop discount item; other DetailTypes return UNSUPPORTED_BY_DESKTOP. Group lines read back as GroupLineDetail without nested line expansion; Desktop discount lines read back as regular item lines referencing the discount item. Updates carrying Line replace the entire line table: every line is re-created with a new line Id and lines omitted from the update are deleted by Desktop (v1 full replacement, #55)."
1364
+ "note": "Same DetailType support as Invoice (for an item that has a cost, Desktop treats an Estimate line's Rate as cost plus markup, MarkupRatePercent, so Amount can differ from Qty x Rate; verified live): SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail requires a Desktop discount item named by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount); other DetailTypes return UNSUPPORTED_BY_DESKTOP. Group lines read back as GroupLineDetail without nested line expansion; Desktop discount lines read back as SalesItemLineDetail lines (never DiscountLineDetail) referencing the discount item, with a negative Amount (verified live). An unknown Line.Id returns 3120 (REST 610); a malformed one returns 3000. Updates carrying Line send the full line table, as QBO requires: a line with the Id a read returned keeps that Desktop line (Id = TxnLineID, stable across updates), a line without an Id (or Id 0 / empty) is added, and any existing line omitted from the array is deleted. Send the whole array on sparse updates too; an Id listed twice is rejected (2010). Fields you omit from a line that carries an Id are filled from the current record before the full line is sent (Desktop would otherwise blank them), and line ClassRef and ServiceDate are written (ServiceDate not on Estimate). Re-sending an existing group line returns 422 (UNSUPPORTED_BY_DESKTOP); omit it to delete it and add a new group line without an Id."
1195
1365
  },
1196
1366
  {
1197
1367
  "qbo": "TxnTaxDetail",
1198
1368
  "support": "partial",
1199
- "note": "Set TxnTaxCodeRef explicitly on write; computed TotalTax alone is rejected. On read: TotalTax, TxnTaxCodeRef, and TaxLine[{Amount, TaxLineDetail{TaxRateRef, TaxPercent}}]. NetAmountTaxable never returned. Updatable via sparse update (#55)."
1369
+ "note": "TxnTaxCodeRef on write selects the tax item (Desktop ItemSalesTaxRef). TotalTax alone is accepted but not sent: QuickBooks then applies the customer's default sales tax item (or the company default) and computes the tax itself, so the tax on read can differ from the TotalTax you sent. When it differs, create/update responses carry a non-fatal X-TKB-Warning header (not emitted for /batch items). On read: TotalTax, TxnTaxCodeRef, and TaxLine[{Amount, TaxLineDetail{TaxRateRef, TaxPercent}}]. NetAmountTaxable never returned. Updatable via sparse update (#55)."
1200
1370
  },
1201
1371
  {
1202
1372
  "qbo": "LinkedTxn",
@@ -1206,7 +1376,7 @@ var CATALOG = {
1206
1376
  {
1207
1377
  "qbo": "CustomField",
1208
1378
  "support": "partial",
1209
- "note": "Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only for now. Accepted and ignored on write."
1379
+ "note": "Desktop custom fields (data extensions, OwnerID 0) on the transaction header. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Estimate records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). The mechanism was verified live on QuickBooks Enterprise 24 (2026-09-30) on Customer, Vendor, Item, Employee, Invoice and PurchaseOrder; this entity follows the same path."
1210
1380
  },
1211
1381
  {
1212
1382
  "qbo": "TotalAmt",
@@ -1223,12 +1393,6 @@ var CATALOG = {
1223
1393
  "support": "partial",
1224
1394
  "note": "Accepted and ignored \u2014 Desktop manages this itself; multi-currency mapping lands later."
1225
1395
  },
1226
- {
1227
- "qbo": "ExpirationDate",
1228
- "support": "none",
1229
- "note": "Desktop estimates have no expiration date. Track it in your own system if needed.",
1230
- "error": "UNSUPPORTED_BY_DESKTOP"
1231
- },
1232
1396
  {
1233
1397
  "qbo": "AcceptedBy",
1234
1398
  "support": "none",
@@ -1240,24 +1404,13 @@ var CATALOG = {
1240
1404
  "support": "none",
1241
1405
  "note": "Desktop estimates have no accepted-date field. Track acceptance in your own system.",
1242
1406
  "error": "UNSUPPORTED_BY_DESKTOP"
1243
- },
1244
- {
1245
- "qbo": "TxnStatus",
1246
- "support": "none",
1247
- "note": "Desktop estimates have no status field matching QBO's Pending/Accepted/Closed/Rejected enum. Track status in your own system.",
1248
- "error": "UNSUPPORTED_BY_DESKTOP"
1249
1407
  }
1250
1408
  ],
1251
1409
  "unsupported": [
1252
- {
1253
- "case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
1254
- "error": "UNSUPPORTED_BY_DESKTOP",
1255
- "note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
1256
- },
1257
1410
  {
1258
1411
  "case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
1259
1412
  "error": "MISSING_REQUIRED_DESKTOP_ITEM",
1260
- "note": "Desktop discounts are items. Create a discount item in the company file and reference it as DiscountLineDetail.ItemRef. See COMPATIBILITY.md."
1413
+ "note": "Desktop discounts are items and TenkeyBridge does not guess one: picking a default would silently post the discount to that item's account, and discount items are not readable through the Item API yet. Create a discount item in QuickBooks (Lists > Item List > New > Discount) and pass it as DiscountLineDetail.ItemRef by value (ListID) or name (full name). DiscountAccountRef is ignored; the item carries its own account. See COMPATIBILITY.md."
1261
1414
  },
1262
1415
  {
1263
1416
  "case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly",
@@ -1314,6 +1467,65 @@ var CATALOG = {
1314
1467
  }
1315
1468
  ]
1316
1469
  },
1470
+ "InventoryAdjustment": {
1471
+ "entity": "InventoryAdjustment",
1472
+ "verdict": "live",
1473
+ "group": "purchasing",
1474
+ "read": "full",
1475
+ "write": "partial",
1476
+ "headline": "Quantity adjustments to inventory items \u2014 create, read, header update and delete (live-verified); line edits need delete + re-create",
1477
+ "fields": [
1478
+ {
1479
+ "qbo": "AdjustAccountRef",
1480
+ "support": "full",
1481
+ "note": "Desktop AccountRef \u2014 the adjustment (offset) account. Required on create."
1482
+ },
1483
+ {
1484
+ "qbo": "TxnDate",
1485
+ "support": "full"
1486
+ },
1487
+ {
1488
+ "qbo": "DocNumber",
1489
+ "support": "full",
1490
+ "note": "Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050)."
1491
+ },
1492
+ {
1493
+ "qbo": "PrivateNote",
1494
+ "support": "full",
1495
+ "note": "Desktop Memo."
1496
+ },
1497
+ {
1498
+ "qbo": "Line",
1499
+ "support": "partial",
1500
+ "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). Sparse updates cannot modify lines."
1501
+ },
1502
+ {
1503
+ "qbo": "CurrencyRef",
1504
+ "support": "none",
1505
+ "note": "Multicurrency not yet supported.",
1506
+ "error": "UNSUPPORTED_BY_DESKTOP"
1507
+ },
1508
+ {
1509
+ "qbo": "ExchangeRate",
1510
+ "support": "none",
1511
+ "note": "Multicurrency not yet supported.",
1512
+ "error": "UNSUPPORTED_BY_DESKTOP"
1513
+ }
1514
+ ],
1515
+ "unsupported": [
1516
+ {
1517
+ "case": "Line update",
1518
+ "error": "UNSUPPORTED_BY_DESKTOP",
1519
+ "note": "A sparse update can change header fields only (AdjustAccountRef, TxnDate, DocNumber, PrivateNote). To change quantities, delete the adjustment and create a new one.",
1520
+ "workaround": "POST ?operation=delete with the Id, then create a corrected InventoryAdjustment."
1521
+ },
1522
+ {
1523
+ "case": "Absolute quantity (NewQuantity) and value adjustments",
1524
+ "error": "UNSUPPORTED_BY_DESKTOP",
1525
+ "note": "QBO's InventoryAdjustment only has QtyDiff (a delta), so Desktop's NewQuantity/NewValue forms have no QBO field to map from."
1526
+ }
1527
+ ]
1528
+ },
1317
1529
  "Invoice": {
1318
1530
  "entity": "Invoice",
1319
1531
  "verdict": "live",
@@ -1326,6 +1538,17 @@ var CATALOG = {
1326
1538
  "qbo": "CustomerRef",
1327
1539
  "support": "full"
1328
1540
  },
1541
+ {
1542
+ "qbo": "ClassRef",
1543
+ "support": "full",
1544
+ "note": "Header-level class (Desktop ClassRef, read and write). Line-level ClassRef is separate."
1545
+ },
1546
+ {
1547
+ "qbo": "DepartmentRef",
1548
+ "support": "none",
1549
+ "note": "UNMAPPED_FIELD by default. With Departments from classes turned on for the company file, the gateway maps it to the header ClassRef (written to it, read from it); sending a different ClassRef as well is a 400.",
1550
+ "error": "UNMAPPED_FIELD"
1551
+ },
1329
1552
  {
1330
1553
  "qbo": "TxnDate",
1331
1554
  "support": "full"
@@ -1375,12 +1598,12 @@ var CATALOG = {
1375
1598
  {
1376
1599
  "qbo": "Line",
1377
1600
  "support": "partial",
1378
- "note": "SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail requires a Desktop discount item referenced via DiscountLineDetail.ItemRef; other DetailTypes (e.g. SubTotalLineDetail) return UNSUPPORTED_BY_DESKTOP. Group lines read back as GroupLineDetail without nested line expansion; Desktop discount lines read back as regular item lines referencing the discount item. Updates carrying Line replace the entire line table: every line is re-created with a new line Id and lines omitted from the update are deleted by Desktop (v1 full replacement, #55)."
1601
+ "note": "SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail requires a Desktop discount item named by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount); other DetailTypes (e.g. SubTotalLineDetail) return UNSUPPORTED_BY_DESKTOP. Group lines read back as GroupLineDetail without nested line expansion; Desktop discount lines read back as SalesItemLineDetail lines (never DiscountLineDetail) referencing the discount item, with a negative Amount (verified live). An unknown Line.Id returns 3120 (REST 610); a malformed one returns 3000. Updates carrying Line send the full line table, as QBO requires: a line with the Id a read returned keeps that Desktop line (Id = TxnLineID, stable across updates), a line without an Id (or Id 0 / empty) is added, and any existing line omitted from the array is deleted. Send the whole array on sparse updates too; an Id listed twice is rejected (2010). Fields you omit from a line that carries an Id are filled from the current record before the full line is sent (Desktop would otherwise blank them), and line ClassRef and ServiceDate are written (ServiceDate not on Estimate). Re-sending an existing group line returns 422 (UNSUPPORTED_BY_DESKTOP); omit it to delete it and add a new group line without an Id."
1379
1602
  },
1380
1603
  {
1381
1604
  "qbo": "TxnTaxDetail",
1382
1605
  "support": "partial",
1383
- "note": "Set TxnTaxCodeRef explicitly on write; computed TotalTax alone is rejected. On read: TotalTax, TxnTaxCodeRef (from ItemSalesTaxRef), and TaxLine[{Amount, TaxLineDetail{TaxRateRef, TaxPercent}}] from SalesTaxTotal/ItemSalesTaxRef/SalesTaxPercentage. NetAmountTaxable is never returned (Desktop has no taxable basis). Updatable via sparse update (#55)."
1606
+ "note": "TxnTaxCodeRef on write selects the tax item (Desktop ItemSalesTaxRef). TotalTax alone is accepted but not sent: QuickBooks then applies the customer's default sales tax item (or the company default) and computes the tax itself, so the tax on read can differ from the TotalTax you sent. When it differs, create/update responses carry a non-fatal X-TKB-Warning header (not emitted for /batch items). On read: TotalTax, TxnTaxCodeRef (from ItemSalesTaxRef), and TaxLine[{Amount, TaxLineDetail{TaxRateRef, TaxPercent}}] from SalesTaxTotal/ItemSalesTaxRef/SalesTaxPercentage. NetAmountTaxable is never returned (Desktop has no taxable basis). Updatable via sparse update (#55)."
1384
1607
  },
1385
1608
  {
1386
1609
  "qbo": "LinkedTxn",
@@ -1390,7 +1613,7 @@ var CATALOG = {
1390
1613
  {
1391
1614
  "qbo": "CustomField",
1392
1615
  "support": "partial",
1393
- "note": "Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only for now. Accepted and ignored on write."
1616
+ "note": "Desktop custom fields (data extensions, OwnerID 0) on the transaction header. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Invoice records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30)."
1394
1617
  },
1395
1618
  {
1396
1619
  "qbo": "TotalAmt",
@@ -1415,19 +1638,14 @@ var CATALOG = {
1415
1638
  {
1416
1639
  "qbo": "operation=void",
1417
1640
  "support": "partial",
1418
- "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; voiding again succeeds. The response is whatever Desktop returns on the post-void re-read (nothing is fabricated)."
1641
+ "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)."
1419
1642
  }
1420
1643
  ],
1421
1644
  "unsupported": [
1422
- {
1423
- "case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
1424
- "error": "UNSUPPORTED_BY_DESKTOP",
1425
- "note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
1426
- },
1427
1645
  {
1428
1646
  "case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
1429
1647
  "error": "MISSING_REQUIRED_DESKTOP_ITEM",
1430
- "note": "Desktop discounts are items. Create a discount item in the company file and reference it as DiscountLineDetail.ItemRef. See COMPATIBILITY.md."
1648
+ "note": "Desktop discounts are items and TenkeyBridge does not guess one: picking a default would silently post the discount to that item's account, and discount items are not readable through the Item API yet. Create a discount item in QuickBooks (Lists > Item List > New > Discount) and pass it as DiscountLineDetail.ItemRef by value (ListID) or name (full name). DiscountAccountRef is ignored; the item carries its own account. See COMPATIBILITY.md."
1431
1649
  },
1432
1650
  {
1433
1651
  "case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly (e.g. SubTotalLineDetail)",
@@ -1441,72 +1659,83 @@ var CATALOG = {
1441
1659
  "verdict": "live",
1442
1660
  "group": "sales",
1443
1661
  "read": "partial",
1444
- "write": "none",
1662
+ "write": "partial",
1445
1663
  "headline": "One Item becomes several Desktop item types",
1446
1664
  "fields": [
1447
1665
  {
1448
1666
  "qbo": "Name",
1449
- "support": "full"
1667
+ "support": "full",
1668
+ "note": "Desktop item Name is the leaf name (max 31 characters); FullyQualifiedName is derived."
1450
1669
  },
1451
1670
  {
1452
1671
  "qbo": "FullyQualifiedName",
1453
1672
  "support": "full",
1454
- "note": "Read-only in this release."
1673
+ "note": "Read-only; derived from the Desktop FullName. Echoed values on update are ignored."
1455
1674
  },
1456
1675
  {
1457
1676
  "qbo": "Active",
1458
1677
  "support": "full",
1459
- "note": "Read-only in this release."
1678
+ "note": "Deactivate with a sparse update setting Active to false; items are never deleted."
1460
1679
  },
1461
1680
  {
1462
1681
  "qbo": "Type",
1463
1682
  "support": "partial",
1464
- "note": "Service, NonInventory, Inventory, Group map; other Desktop types are omitted from query results."
1683
+ "note": "Service, NonInventory, Inventory read and write; Group reads only. Desktop other-charge and discount items read as Service. Type cannot change after creation. Category and other Desktop types are unsupported."
1465
1684
  },
1466
1685
  {
1467
1686
  "qbo": "Description",
1468
1687
  "support": "full",
1469
- "note": "Read-only in this release."
1688
+ "note": "Desktop sales description: SalesOrPurchase/Desc, SalesAndPurchase/SalesDesc, or SalesDesc on Inventory."
1470
1689
  },
1471
1690
  {
1472
1691
  "qbo": "UnitPrice",
1473
1692
  "support": "full",
1474
- "note": "Read-only in this release."
1693
+ "note": "Desktop sales price. Sent with up to five decimals. On a Desktop discount item a flat rate reads as UnitPrice; a percentage discount has none. Discount items are read-only."
1475
1694
  },
1476
1695
  {
1477
1696
  "qbo": "Sku",
1478
1697
  "support": "partial",
1479
- "note": "QBO Sku \u21C4 Desktop ManufacturerPartNumber \u2014 Desktop has no first-class SKU field; barcode (Advanced Inventory) is intentionally not used. Read-only in this release."
1698
+ "note": "QBO Sku maps to Desktop ManufacturerPartNumber (max 31 characters) \u2014 Desktop has no first-class SKU field; barcode (Advanced Inventory) is intentionally not used. NonInventory and Inventory only; on a Service, Sku is refused with UNSUPPORTED_BY_DESKTOP."
1699
+ },
1700
+ {
1701
+ "qbo": "TrackQtyOnHand",
1702
+ "support": "partial",
1703
+ "note": "Read as true for Inventory. On write it must agree with Type (Inventory always tracks quantity; Service and NonInventory never do) or the request is refused."
1480
1704
  },
1481
1705
  {
1482
1706
  "qbo": "QtyOnHand",
1483
- "support": "full",
1484
- "note": "Read-only in this release."
1707
+ "support": "partial",
1708
+ "note": "Read for Inventory. Settable on create only (with InvStartDate); Desktop changes stock through inventory adjustments and transactions, so a different value on update is refused. Echoing the current value is accepted."
1709
+ },
1710
+ {
1711
+ "qbo": "InvStartDate",
1712
+ "support": "partial",
1713
+ "note": "Write-only, create only (Desktop InventoryDate). Not returned on read."
1485
1714
  },
1486
1715
  {
1487
1716
  "qbo": "IncomeAccountRef",
1488
1717
  "support": "full",
1489
- "note": "Read-only in this release."
1718
+ "note": "Service/NonInventory: SalesOrPurchase/AccountRef (one-sided) or SalesAndPurchase/IncomeAccountRef (two-sided). Inventory: IncomeAccountRef. Required on create for every writable type (Desktop rejects an item with no posting account; a missing one is a 400 with code 2020)."
1490
1719
  },
1491
1720
  {
1492
1721
  "qbo": "ExpenseAccountRef",
1493
1722
  "support": "partial",
1494
- "note": "Inventory: COGSAccountRef. Two-sided Service/NonInventory (SalesAndPurchase): ExpenseAccountRef. One-sided Service/NonInventory have no expense account."
1723
+ "note": "Inventory: COGSAccountRef (required on create). Two-sided Service/NonInventory (SalesAndPurchase): ExpenseAccountRef. One-sided Service/NonInventory have no expense account; sending one at creation makes the item two-sided, and on update it is refused for a sales-only item."
1495
1724
  },
1496
1725
  {
1497
1726
  "qbo": "AssetAccountRef",
1498
1727
  "support": "full",
1499
- "note": "Read-only in this release; Inventory only."
1728
+ "note": "Inventory only; required on create."
1500
1729
  },
1501
1730
  {
1502
1731
  "qbo": "PurchaseDesc",
1503
1732
  "support": "full",
1504
- "note": "Inventory and two-sided Service/NonInventory (SalesAndPurchase)."
1733
+ "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."
1505
1734
  },
1506
1735
  {
1507
1736
  "qbo": "PurchaseCost",
1508
1737
  "support": "full",
1509
- "note": "Inventory and two-sided Service/NonInventory (SalesAndPurchase)."
1738
+ "note": "Inventory and two-sided Service/NonInventory (SalesAndPurchase). Sent with up to five decimals. On create with QtyOnHand, Desktop values the opening stock at PurchaseCost."
1510
1739
  },
1511
1740
  {
1512
1741
  "qbo": "PrefVendorRef",
@@ -1516,29 +1745,54 @@ var CATALOG = {
1516
1745
  {
1517
1746
  "qbo": "ParentRef",
1518
1747
  "support": "full",
1519
- "note": "Desktop item hierarchy."
1748
+ "note": "Desktop item hierarchy; sub-items are FullName paths (Parent:Child)."
1520
1749
  },
1521
1750
  {
1522
1751
  "qbo": "SubItem",
1523
1752
  "support": "full",
1524
- "note": "Derived from Desktop Sublevel."
1753
+ "note": "Derived from Desktop Sublevel; read-only."
1754
+ },
1755
+ {
1756
+ "qbo": "ClassRef",
1757
+ "support": "full",
1758
+ "note": "Desktop ClassRef."
1759
+ },
1760
+ {
1761
+ "qbo": "SalesTaxCodeRef",
1762
+ "support": "full",
1763
+ "note": "Desktop SalesTaxCodeRef. QBO values TAX and NON map to Desktop's built-in Tax and Non codes; any other value is a ListID. Wins over Taxable if both are sent."
1764
+ },
1765
+ {
1766
+ "qbo": "Taxable",
1767
+ "support": "partial",
1768
+ "note": "Derived on read only when the sales tax code is the built-in Tax or Non code (a custom code leaves it unset). On write, true/false selects the Tax/Non code."
1525
1769
  },
1526
1770
  {
1527
1771
  "qbo": "CustomField",
1528
1772
  "support": "partial",
1529
- "note": "Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only for now."
1773
+ "note": "Desktop custom fields (data extensions, OwnerID 0) on the record. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Item records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30)."
1530
1774
  }
1531
1775
  ],
1532
1776
  "unsupported": [
1533
1777
  {
1534
- "case": "Item types other than Service, NonInventory, Inventory, and Group (assemblies, discounts, sales tax items, payment items, fixed assets, other charge, subtotal)",
1778
+ "case": "Item types other than Service, NonInventory, Inventory, Group, other-charge and discount (assemblies, sales tax items, payment items, fixed assets, subtotal)",
1535
1779
  "error": "UNSUPPORTED_BY_DESKTOP",
1536
1780
  "note": "Omitted from query results; a direct get by id on one of these Desktop items returns a 422 UNSUPPORTED_BY_DESKTOP fault."
1537
1781
  },
1538
1782
  {
1539
- "case": "Item create/update",
1783
+ "case": "Creating or updating Group (and Category) items, or updating discount items",
1540
1784
  "error": "UNSUPPORTED_BY_DESKTOP",
1541
- "note": "Lands in a later release."
1785
+ "note": "Group items and discounts are read-only, and Category has no Desktop equivalent. A Desktop other-charge item reads as Type Service and can be updated (it is sent as ItemOtherChargeMod); it cannot be created."
1786
+ },
1787
+ {
1788
+ "case": "Adding purchase-side fields to an existing sales-only Service/NonInventory item",
1789
+ "error": "UNSUPPORTED_BY_DESKTOP",
1790
+ "note": "Desktop rejects the SalesOrPurchase to SalesAndPurchase conversion (error 3170). Include PurchaseDesc, PurchaseCost, ExpenseAccountRef or PrefVendorRef when the item is created."
1791
+ },
1792
+ {
1793
+ "case": "Changing QtyOnHand after creation",
1794
+ "error": "UNSUPPORTED_BY_DESKTOP",
1795
+ "note": "Stock levels change only through inventory adjustments and transactions. (Changing Type after creation is a 400 Invalid Field Value, since a Desktop item's type is fixed.)"
1542
1796
  }
1543
1797
  ]
1544
1798
  },
@@ -1608,7 +1862,7 @@ var CATALOG = {
1608
1862
  {
1609
1863
  "qbo": "Line",
1610
1864
  "support": "partial",
1611
- "note": "JournalEntryLineDetail only. Write splits by PostingType into JournalDebitLine / JournalCreditLine; read interleaves debit then credit lists. Debits must equal credits or create fails UNSUPPORTED_BY_DESKTOP before the Desktop round-trip. Sparse updates cannot modify lines yet (Desktop JE Mod replaces the entire line table when lines are provided \u2014 same out-of-scope stance as Invoice lines / issue #55). JournalEntryLineDetail.Entity: only EntityRef is populated on read \u2014 Desktop's line-level EntityRef carries no entity-kind flag, so we don't stamp a Type (Vendor/Customer/Employee); a wrong guess is worse than omitting it. Set Type yourself on write if you know it; it's accepted and simply not echoed back."
1865
+ "note": "JournalEntryLineDetail only. Write splits by PostingType into JournalDebitLine / JournalCreditLine; read interleaves debit then credit lists. Debits must equal credits or create fails UNSUPPORTED_BY_DESKTOP before the Desktop round-trip. Updates carrying Line send the full table as JournalLineMod (TxnLineID + JournalLineType Debit/Credit): a line with the Id a read returned keeps that Desktop line (and may flip Debit/Credit), 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 (account, memo, entity, class) are filled from the current record. Balance is checked over the merged table before anything is sent. An Id that is not a line of the entry is a 400; an Id listed twice is 2010; an empty Line array is refused. Verified live on QuickBooks Enterprise 24 (2026-09-30): Debit/Credit flips and deletion of unlisted lines work. Desktop rejects a Mod whose existing lines are not in stored (ascending TxnLineID) order with 3290, and a read lists debit lines before credit lines, so the gateway sends existing lines in TxnLineID order whatever order you post them in. JournalEntryLineDetail.Entity: only EntityRef is populated on read \u2014 Desktop's line-level EntityRef carries no entity-kind flag, so we don't stamp a Type (Vendor/Customer/Employee); a wrong guess is worse than omitting it. Set Type yourself on write if you know it; it's accepted and simply not echoed back."
1612
1866
  },
1613
1867
  {
1614
1868
  "qbo": "TotalAmt",
@@ -1664,7 +1918,7 @@ var CATALOG = {
1664
1918
  {
1665
1919
  "qbo": "PaymentRefNum",
1666
1920
  "support": "full",
1667
- "note": "Desktop RefNumber: max 20 characters; longer values are rejected up front with a 400 fault (code 2050). Query filtering by PaymentRefNum is not supported yet \u2014 query by Id or date range."
1921
+ "note": "Desktop RefNumber: max 20 characters; longer values are rejected up front with a 400 fault (code 2050). Queryable: WHERE PaymentRefNum = '...' / IN (...) / LIKE 'CHK%' is pushed to QuickBooks as RefNumber / RefNumberFilter (DocNumber is accepted as an alias)."
1668
1922
  },
1669
1923
  {
1670
1924
  "qbo": "TotalAmt",
@@ -1686,7 +1940,7 @@ var CATALOG = {
1686
1940
  {
1687
1941
  "qbo": "Line",
1688
1942
  "support": "partial",
1689
- "note": "LinkedTxn applications to Invoices only; no Line means an unapplied payment (IsAutoApply=false). CreditMemo/Deposit applications land later. AppliedToTxnRet.TxnDate/RefNumber/BalanceRemaining have no honest home in QBO Payment.Line.LinkedTxn ({TxnId, TxnType} only) and are not projected \u2014 re-fetch the invoice for balance/date/doc number."
1943
+ "note": "One Line per Invoice (LinkedTxn[0] = the invoice; on write Amount = the total applied to the invoice, cash plus credit, which is the qbXML PaymentAmount; on read Amount = the cash only). Credits ride inside the invoice Line's LinkedTxn: credit memos applied to that invoice are extra LinkedTxn entries {TxnId, TxnType CreditMemo, Amount = credit applied, a number > 0} and are sent as SetCredit; a credit-only Line (no invoice) is rejected (2020), and so is a credit-only payment (credit memos with TotalAmt omitted or 0): live QB applies the credit and creates no payment, so there is nothing to return; it is refused up front with 422 UNSUPPORTED_BY_DESKTOP (apply credits together with a cash TotalAmt, or in QuickBooks). Read returns the applied credit memos as CreditMemo LinkedTxn entries (Amount positive) from the LinkedTxn Desktop nests inside AppliedToTxnRet (verified live on QB Enterprise 24: the nested LinkedTxn has TxnType CreditMemo and a negative Amount, AppliedToTxnRet/Amount is the cash only, and the request PaymentAmount is cash plus credit). Over-crediting returns 3210 ('The amount you entered is greater than the amount of the credit'). No Line means an unapplied payment (IsAutoApply=false). Deposit applications are not supported. AppliedToTxnRet.TxnDate/RefNumber/BalanceRemaining have no honest home in QBO Payment.Line.LinkedTxn ({TxnId, TxnType} only) and are not projected \u2014 re-fetch the invoice for balance/date/doc number."
1690
1944
  },
1691
1945
  {
1692
1946
  "qbo": "UnappliedAmt",
@@ -1775,7 +2029,7 @@ var CATALOG = {
1775
2029
  {
1776
2030
  "qbo": "AccountingInfoPrefs",
1777
2031
  "support": "partial",
1778
- "note": "ClassTrackingPerTxn/ClassTrackingPerTxnLine \u2190 IsUsingClassTracking (same bool projected to both); TrackDepartments always false (no Desktop Locations)."
2032
+ "note": "ClassTrackingPerTxn/ClassTrackingPerTxnLine \u2190 IsUsingClassTracking (same bool projected to both); TrackDepartments is false, or true when the company file has Departments from classes turned on (Department is then an alias of Class)."
1779
2033
  },
1780
2034
  {
1781
2035
  "qbo": "CurrencyPrefs",
@@ -1833,7 +2087,7 @@ var CATALOG = {
1833
2087
  "note": "Preferences is read/query only in QBO and Desktop \u2014 there is no PreferencesAdd/Mod."
1834
2088
  },
1835
2089
  {
1836
- "case": "Any WHERE clause, or STARTPOSITION/MAXRESULTS",
2090
+ "case": "Any WHERE clause, ORDERBY, COUNT(*), column list, or STARTPOSITION/MAXRESULTS",
1837
2091
  "error": "UNSUPPORTED_QUERY",
1838
2092
  "note": "PreferencesQueryRq takes no filters and always returns the single open company PreferencesRet. Use SELECT * FROM Preferences."
1839
2093
  }
@@ -1874,7 +2128,7 @@ var CATALOG = {
1874
2128
  {
1875
2129
  "qbo": "DocNumber",
1876
2130
  "support": "full",
1877
- "note": "Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050) rather than reaching Desktop. A single quote is allowed; query it with a backslash escape."
2131
+ "note": "Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050) rather than reaching Desktop. A check that is still to be printed (PrintStatus NeedToPrint, which Desktop may default to when PrintStatus is omitted) silently ignores RefNumber, on create and on a sparse DocNumber update alike (200, but no number is stored); send PrintStatus PrintComplete with DocNumber. On a PrintComplete check a DocNumber update changes RefNumber (verified live 2026-09-30). A single quote is allowed; query it with a backslash escape."
1878
2132
  },
1879
2133
  {
1880
2134
  "qbo": "PrivateNote",
@@ -1910,7 +2164,7 @@ var CATALOG = {
1910
2164
  {
1911
2165
  "qbo": "operation=void",
1912
2166
  "support": "partial",
1913
- "note": "POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType Check / CreditCardCharge / CreditCardCredit, picked by a read of the record), 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, Check family): amounts zeroed, PrintStatus becomes PrintComplete, and PrivateNote becomes `VOID: <memo> GJE, RGJE created on MM/DD/YYYY` \u2014 Desktop posts a journal entry and a reversing journal entry dated the void day, whatever the check's date; voiding again succeeds. CreditCardCharge/CreditCardCredit voids are not yet live-tested. The response is whatever Desktop returns on the post-void re-read (nothing is fabricated)."
2167
+ "note": "POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType Check / CreditCardCharge / CreditCardCredit, picked by a read of the record), 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, Check family): amounts zeroed, PrintStatus becomes PrintComplete, and PrivateNote becomes `VOID: <memo> GJE, RGJE created on MM/DD/YYYY` \u2014 Desktop also posts two General Journal entries (live-proven again 2026-09-30, same-day and prior-month checks): a GJE dated the ORIGINAL check date that re-books the original check (Dr expense / Cr bank, memo 'For CHK voided on MM/DD/YYYY'), and a reversing RGJE (ref such as 7R, memo 'Reverse of GJE 7 -- ...') dated the VOID day that undoes it (Dr bank / Cr expense). The zeroed check keeps its TxnDate; the original period still shows the expense (via the GJE) and the reversal lands in the void day's period. Same-day voids net to zero on one date. Voiding again succeeds. Desktop's closing date is not exposed by PreferencesQuery; voids dated back to 2026-07-02 were accepted on the test file. CreditCardCharge/CreditCardCredit voids are not yet live-tested. The response is whatever Desktop returns on the post-void re-read (nothing is fabricated)."
1914
2168
  }
1915
2169
  ],
1916
2170
  "unsupported": [
@@ -1938,6 +2192,17 @@ var CATALOG = {
1938
2192
  "qbo": "VendorRef",
1939
2193
  "support": "full"
1940
2194
  },
2195
+ {
2196
+ "qbo": "ClassRef",
2197
+ "support": "full",
2198
+ "note": "Header-level class (Desktop ClassRef, read and write). Line-level ClassRef is separate."
2199
+ },
2200
+ {
2201
+ "qbo": "DepartmentRef",
2202
+ "support": "none",
2203
+ "note": "UNMAPPED_FIELD by default. With Departments from classes turned on for the company file, the gateway maps it to the header ClassRef (written to it, read from it); sending a different ClassRef as well is a 400.",
2204
+ "error": "UNMAPPED_FIELD"
2205
+ },
1941
2206
  {
1942
2207
  "qbo": "TxnDate",
1943
2208
  "support": "full"
@@ -1971,10 +2236,15 @@ var CATALOG = {
1971
2236
  "qbo": "PrivateNote",
1972
2237
  "support": "full"
1973
2238
  },
2239
+ {
2240
+ "qbo": "CustomField",
2241
+ "support": "partial",
2242
+ "note": "Desktop custom fields (data extensions, OwnerID 0) on the transaction header. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to PurchaseOrder records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30)."
2243
+ },
1974
2244
  {
1975
2245
  "qbo": "Line",
1976
2246
  "support": "partial",
1977
- "note": "ItemBasedExpenseLineDetail only (PurchaseOrderLineAdd). AccountBasedExpenseLineDetail returns UNSUPPORTED_BY_DESKTOP. ReceivedQty maps from ReceivedQuantity on read (read-only). Sparse updates cannot modify lines yet."
2247
+ "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."
1978
2248
  },
1979
2249
  {
1980
2250
  "qbo": "TotalAmt",
@@ -1984,7 +2254,7 @@ var CATALOG = {
1984
2254
  {
1985
2255
  "qbo": "POStatus",
1986
2256
  "support": "partial",
1987
- "note": "Open/Closed map to Desktop IsManuallyClosed, a Mod-only element \u2014 PurchaseOrderAdd has no IsManuallyClosed at all. Create with POStatus Open (or omitted) works; POStatus Closed on create returns UNSUPPORTED_BY_DESKTOP (create the PO open, then close it via an update). Closing via sparse update is not wired yet \u2014 POStatus is effectively read-only through TenkeyBridge until that lands."
2257
+ "note": "Open/Closed map to Desktop IsManuallyClosed, a Mod-only element \u2014 PurchaseOrderAdd has no IsManuallyClosed at all. Create with POStatus Open (or omitted) works; POStatus Closed on create returns UNSUPPORTED_BY_DESKTOP (create the PO open, then close it via an update). A sparse update with POStatus Closed sends IsManuallyClosed true (closing the whole PO); POStatus Open sends false (reopens). Any other value is a 400 (2010). An update without POStatus never re-sends the status. Verified live on QuickBooks Enterprise 24 (2026-09-30): closing and reopening both work."
1988
2258
  },
1989
2259
  {
1990
2260
  "qbo": "APAccountRef",
@@ -2117,7 +2387,7 @@ var CATALOG = {
2117
2387
  {
2118
2388
  "case": "Item-line RefundReceipt (SalesItemLineDetail etc.)",
2119
2389
  "error": "UNSUPPORTED_BY_DESKTOP",
2120
- "note": "Desktop has no general item-line refund receipt. Create a CreditMemo and refund via payment/ARRefundCreditCard, or handle cash/check refunds outside this entity."
2390
+ "note": "Desktop has no single transaction that is both the returned goods and the refund: its refund (ARRefundCreditCard) only pays back an existing credit, and a check refund is a separate Check applied to a credit memo. Two calls instead: (1) POST CreditMemo with the returned item lines; (2) POST RefundReceipt with DepositToAccountRef (the card/refund account) and Line[{Amount, LinkedTxn:[{TxnId: the CreditMemo Id, TxnType:CreditMemo}]}]. Refunds by check or cash are recorded in QuickBooks (Customers > Refund) \u2014 TenkeyBridge has no Check-applied-to-credit-memo path."
2121
2391
  },
2122
2392
  {
2123
2393
  "case": "Update / sparse update",
@@ -2169,46 +2439,103 @@ var CATALOG = {
2169
2439
  "group": "platform",
2170
2440
  "read": "partial",
2171
2441
  "write": "none",
2172
- "headline": "Five QBO-compatible reports translated live from Desktop's report engine.",
2173
- "usage": "GET /v3/company/{realmId}/reports/ProfitAndLoss?start_date=2026-01-01&end_date=2026-12-31",
2442
+ "headline": "Twenty QBO-compatible reports translated live from Desktop's report engine: summary, detail, aging, balance and sales reports, all run against QuickBooks Enterprise 24. There is no CashFlow \u2014 Desktop's SDK has no cash-flow report.",
2443
+ "usage": "GET /v3/company/{companyId}/reports/ProfitAndLoss?start_date=2026-01-01&end_date=2026-12-31&summarize_column_by=Month",
2174
2444
  "fields": [
2175
2445
  {
2176
2446
  "qbo": "ProfitAndLoss / BalanceSheet / TrialBalance",
2177
2447
  "support": "full",
2178
- "note": "GeneralSummaryReportQueryRq (ProfitAndLossStandard / BalanceSheetStandard / TrialBalance). Values verbatim from Desktop \u2014 no recomputation."
2448
+ "note": "GeneralSummaryReportQueryRq (ProfitAndLossStandard / BalanceSheetStandard / TrialBalance). Values verbatim from Desktop \u2014 no recomputation. BalanceSheet also takes report_date as an as-of."
2179
2449
  },
2180
2450
  {
2181
2451
  "qbo": "AgedReceivables / AgedPayables",
2182
2452
  "support": "full",
2183
2453
  "note": "AgingReportQueryRq (ARAgingSummary / APAgingSummary). Desktop's file-configured aging buckets come back as columns, honestly."
2184
2454
  },
2455
+ {
2456
+ "qbo": "CustomerBalance / VendorBalance",
2457
+ "support": "full",
2458
+ "note": "CustomerBalanceSummary / VendorBalanceSummary. As-of (report_date). Month (and the other period splits) are accepted; Desktop refuses ReportBasis here."
2459
+ },
2460
+ {
2461
+ "qbo": "CustomerIncome / VendorExpenses",
2462
+ "support": "full",
2463
+ "note": "IncomeByCustomerSummary / ExpenseByVendorSummary."
2464
+ },
2465
+ {
2466
+ "qbo": "CustomerSales / ItemSales (aliases SalesByCustomer / SalesByProduct)",
2467
+ "support": "full",
2468
+ "note": "SalesByCustomerSummary / SalesByItemSummary. ItemSales carries Desktop's extra columns (% of Sales, Avg Price, COGS, Gross Margin)."
2469
+ },
2470
+ {
2471
+ "qbo": "InventoryValuationSummary",
2472
+ "support": "full",
2473
+ "note": "InventoryValuationSummary, as-of (report_date), item filter only. Desktop refuses ReportBasis and SummarizeColumnsBy here."
2474
+ },
2475
+ {
2476
+ "qbo": "ProfitAndLossDetail / GeneralLedger",
2477
+ "support": "partial",
2478
+ "note": "GeneralDetailReportQueryRq (ProfitAndLossDetail / GeneralLedger). QBO detail shape: ColType String/Date/Money with MetaData.ColKey (ColKeys best-effort), every transaction row typed Data, accounts as sections. ColData carries value only (Desktop reports carry no TxnID/ListID, so no id)."
2479
+ },
2480
+ {
2481
+ "qbo": "JournalReport / TransactionList",
2482
+ "support": "partial",
2483
+ "note": "GeneralDetailReportQueryRq Journal / TxnListByDate. ColKeys best-effort. Journal's per-transaction unlabeled subtotals become header-less Sections; TransactionList is a flat Data list. Desktop refuses ReportBasis on both, so accounting_method faults."
2484
+ },
2485
+ {
2486
+ "qbo": "CustomerBalanceDetail / VendorBalanceDetail",
2487
+ "support": "partial",
2488
+ "note": "GeneralDetailReportQueryRq CustomerBalanceDetail / VendorBalanceDetail, as-of (report_date). Desktop returns one section per customer/vendor with its balance and no transaction rows; passed through as-is."
2489
+ },
2490
+ {
2491
+ "qbo": "AgedReceivableDetail / AgedPayableDetail",
2492
+ "support": "partial",
2493
+ "note": "AgingReportQueryRq ARAgingDetail / APAgingDetail, as-of (report_date), with the receivable (customer) or payable (vendor) filter. ColKeys best-effort."
2494
+ },
2185
2495
  {
2186
2496
  "qbo": "start_date / end_date / date_macro",
2187
2497
  "support": "full",
2188
- "note": "ISO dates or QBO date macros (fiscal-relative on both sides, so macros map 1:1). Omit them and you get fiscal year-to-date, matching QBO \u2014 Desktop's own bare default is month-to-date, so TenkeyBridge always sends an explicit period."
2498
+ "note": "ISO dates or QBO date macros (spaced or compact, e.g. Last Month / LastMonth; fiscal-relative on both sides, so macros map 1:1). Omit them and you get fiscal year-to-date, matching QBO \u2014 Desktop's own bare default is month-to-date, so TenkeyBridge always sends an explicit period."
2189
2499
  },
2190
2500
  {
2191
2501
  "qbo": "report_date",
2192
2502
  "support": "full",
2193
- "note": "The aging reports are as-of a single date. Omit it and QBO's default (today) is used."
2503
+ "note": "The as-of reports (aging, balance, inventory valuation, and BalanceSheet) are as-of a single date. Omit it and QBO's default (today) is used."
2194
2504
  },
2195
2505
  {
2196
2506
  "qbo": "accounting_method",
2197
2507
  "support": "partial",
2198
- "note": "Cash/Accrual on the three summary reports. Aging reports reject it \u2014 qbXML has no ReportBasis there.",
2508
+ "note": "Cash/Accrual \u2192 ReportBasis on ProfitAndLoss, BalanceSheet, TrialBalance, ProfitAndLossDetail, GeneralLedger, CustomerBalanceDetail, VendorBalanceDetail and the income/expense/sales summaries. Desktop refuses it (3151 or a parse error) on Journal, TransactionList, the balance summaries, InventoryValuationSummary and the aging reports, so those fault.",
2509
+ "error": "REPORT_UNSUPPORTED_OPTION"
2510
+ },
2511
+ {
2512
+ "qbo": "summarize_column_by",
2513
+ "support": "partial",
2514
+ "note": "Total, Month, Week, Days, Quarter, Year, Customers, Vendors, Classes \u2192 SummarizeColumnsBy on the period summary reports (Customers is refused on CustomerSales/CustomerIncome and Vendors on VendorExpenses, as Desktop refuses them). CustomerBalance/VendorBalance take the period splits only. Detail, aging and inventory reports take Total only.",
2515
+ "error": "REPORT_UNSUPPORTED_OPTION"
2516
+ },
2517
+ {
2518
+ "qbo": "customer / vendor / item / class",
2519
+ "support": "partial",
2520
+ "note": "Comma-separated Ids \u2192 ReportEntityFilter (customer + vendor) / ReportItemFilter / ReportClassFilter. AR reports accept customer only, AP reports vendor only; InventoryValuationSummary accepts item only.",
2199
2521
  "error": "REPORT_UNSUPPORTED_OPTION"
2200
2522
  },
2201
2523
  {
2202
2524
  "qbo": "Column titles",
2203
2525
  "support": "partial",
2204
- "note": "Desktop's own column titles pass through verbatim, so aging buckets read '> 90' where QBO says '91 and over', and a period column reads 'Jan - Dec 26' where QBO says 'Total'. QBO's MetaData.ColKey has no Desktop equivalent and is not invented."
2526
+ "note": "Desktop's own column titles pass through verbatim, so aging buckets read '> 90' where QBO says '91 and over', and a period column reads 'Jan - Dec 26' where QBO says 'Total'. On summary reports QBO's MetaData.ColKey has no Desktop equivalent and is not invented; detail reports derive it from Desktop's column types (ColKeys best-effort \u2014 QBO does not document them)."
2205
2527
  }
2206
2528
  ],
2207
2529
  "unsupported": [
2208
2530
  {
2209
- "case": "columns / customer / vendor / item / class / department / qzurl / adjusted_gain_loss",
2531
+ "case": "CashFlow",
2532
+ "error": "REPORT_UNKNOWN",
2533
+ "note": "QuickBooks Desktop's SDK has no cash-flow report (StatementOfCashFlows is refused with 3110 on every qbXML version)."
2534
+ },
2535
+ {
2536
+ "case": "columns / department / qzurl / adjusted_gain_loss",
2210
2537
  "error": "REPORT_UNSUPPORTED_OPTION",
2211
- "note": "Column and filter customization is v2. Desktop returns its standard report layout."
2538
+ "note": "Column selection has no qbXML equivalent; Desktop has no departments (use class); QuickZoom URLs and multicurrency gain/loss adjustment are QBO-only."
2212
2539
  },
2213
2540
  {
2214
2541
  "case": "aging_period / num_periods / aging_method",
@@ -2216,14 +2543,14 @@ var CATALOG = {
2216
2543
  "note": "Desktop aging buckets are company-file configuration, not request parameters."
2217
2544
  },
2218
2545
  {
2219
- "case": "summarize_column_by other than Total",
2546
+ "case": "summarize_column_by = Employees / ProductsAndServices / Departments / Location",
2220
2547
  "error": "REPORT_UNSUPPORTED_OPTION",
2221
- "note": "qbXML SummarizeColumnsBy exists \u2014 clean v2 upgrade path."
2548
+ "note": "qbXML's SummarizeColumnsBy has no per-item, per-employee or per-location split (ItemType splits by item type, not by item)."
2222
2549
  },
2223
2550
  {
2224
- "case": "other QBO report names (CashFlow, detail/aging-detail variants, \u2026)",
2551
+ "case": "other QBO report names (class/department sales, tax, account list, ...)",
2225
2552
  "error": "REPORT_UNKNOWN",
2226
- "note": "Planned. The fault lists the five supported reports."
2553
+ "note": "Not shipped. The fault lists the supported reports."
2227
2554
  }
2228
2555
  ]
2229
2556
  },
@@ -2239,6 +2566,17 @@ var CATALOG = {
2239
2566
  "qbo": "CustomerRef",
2240
2567
  "support": "full"
2241
2568
  },
2569
+ {
2570
+ "qbo": "ClassRef",
2571
+ "support": "full",
2572
+ "note": "Header-level class (Desktop ClassRef, read and write). Line-level ClassRef is separate."
2573
+ },
2574
+ {
2575
+ "qbo": "DepartmentRef",
2576
+ "support": "none",
2577
+ "note": "UNMAPPED_FIELD by default. With Departments from classes turned on for the company file, the gateway maps it to the header ClassRef (written to it, read from it); sending a different ClassRef as well is a 400.",
2578
+ "error": "UNMAPPED_FIELD"
2579
+ },
2242
2580
  {
2243
2581
  "qbo": "TxnDate",
2244
2582
  "support": "full"
@@ -2280,12 +2618,12 @@ var CATALOG = {
2280
2618
  {
2281
2619
  "qbo": "Line",
2282
2620
  "support": "partial",
2283
- "note": "SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail requires a Desktop discount item referenced via DiscountLineDetail.ItemRef; other DetailTypes (e.g. SubTotalLineDetail) return UNSUPPORTED_BY_DESKTOP. Group lines read back as GroupLineDetail without nested line expansion; Desktop discount lines read back as regular item lines referencing the discount item. Updates carrying Line replace the entire line table: every line is re-created with a new line Id and lines omitted from the update are deleted by Desktop (v1 full replacement, #55)."
2621
+ "note": "SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail requires a Desktop discount item named by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount); other DetailTypes (e.g. SubTotalLineDetail) return UNSUPPORTED_BY_DESKTOP. Group lines read back as GroupLineDetail without nested line expansion; Desktop discount lines read back as SalesItemLineDetail lines (never DiscountLineDetail) referencing the discount item, with a negative Amount (verified live). An unknown Line.Id returns 3120 (REST 610); a malformed one returns 3000. Updates carrying Line send the full line table, as QBO requires: a line with the Id a read returned keeps that Desktop line (Id = TxnLineID, stable across updates), a line without an Id (or Id 0 / empty) is added, and any existing line omitted from the array is deleted. Send the whole array on sparse updates too; an Id listed twice is rejected (2010). Fields you omit from a line that carries an Id are filled from the current record before the full line is sent (Desktop would otherwise blank them), and line ClassRef and ServiceDate are written (ServiceDate not on Estimate). Re-sending an existing group line returns 422 (UNSUPPORTED_BY_DESKTOP); omit it to delete it and add a new group line without an Id."
2284
2622
  },
2285
2623
  {
2286
2624
  "qbo": "TxnTaxDetail",
2287
2625
  "support": "partial",
2288
- "note": "Set TxnTaxCodeRef explicitly on write; computed TotalTax alone is rejected. On read: TotalTax, TxnTaxCodeRef, and TaxLine[{Amount, TaxLineDetail{TaxRateRef, TaxPercent}}]. NetAmountTaxable never returned. Updatable via sparse update (#55)."
2626
+ "note": "TxnTaxCodeRef on write selects the tax item (Desktop ItemSalesTaxRef). TotalTax alone is accepted but not sent: QuickBooks then applies the customer's default sales tax item (or the company default) and computes the tax itself, so the tax on read can differ from the TotalTax you sent. When it differs, create/update responses carry a non-fatal X-TKB-Warning header (not emitted for /batch items). On read: TotalTax, TxnTaxCodeRef, and TaxLine[{Amount, TaxLineDetail{TaxRateRef, TaxPercent}}]. NetAmountTaxable never returned. Updatable via sparse update (#55)."
2289
2627
  },
2290
2628
  {
2291
2629
  "qbo": "LinkedTxn",
@@ -2295,7 +2633,7 @@ var CATALOG = {
2295
2633
  {
2296
2634
  "qbo": "CustomField",
2297
2635
  "support": "partial",
2298
- "note": "Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only for now. Accepted and ignored on write."
2636
+ "note": "Desktop custom fields (data extensions, OwnerID 0) on the transaction header. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to SalesReceipt records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). The mechanism was verified live on QuickBooks Enterprise 24 (2026-09-30) on Customer, Vendor, Item, Employee, Invoice and PurchaseOrder; this entity follows the same path."
2299
2637
  },
2300
2638
  {
2301
2639
  "qbo": "TotalAmt",
@@ -2318,11 +2656,42 @@ var CATALOG = {
2318
2656
  "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)."
2319
2657
  }
2320
2658
  ],
2659
+ "unsupported": []
2660
+ },
2661
+ "Tag": {
2662
+ "entity": "Tag",
2663
+ "verdict": "gap",
2664
+ "group": "gaps",
2665
+ "read": "none",
2666
+ "write": "none",
2667
+ "headline": "QBO Tags (and Tag classifications) are a cloud-only labeling feature \u2014 QuickBooks Desktop has no free-form tag object, and its nearest dimensional list (Class) is already exposed as Class.",
2668
+ "fields": [],
2321
2669
  "unsupported": [
2322
2670
  {
2323
- "case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
2671
+ "case": "read",
2324
2672
  "error": "UNSUPPORTED_BY_DESKTOP",
2325
- "note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
2673
+ "note": "qbXML has no Tag or TagClassification message; Desktop has no equivalent many-to-many labeling of transactions.",
2674
+ "workaround": "Use Class for a single dimension per transaction line (live in TenkeyBridge), or keep your labels in your own system keyed by the TenkeyBridge entity Id."
2675
+ },
2676
+ {
2677
+ "case": "query",
2678
+ "error": "UNSUPPORTED_BY_DESKTOP",
2679
+ "note": "There is no Desktop tag list to query."
2680
+ },
2681
+ {
2682
+ "case": "create",
2683
+ "error": "UNSUPPORTED_BY_DESKTOP",
2684
+ "note": "Desktop cannot store tags, so none can be created."
2685
+ },
2686
+ {
2687
+ "case": "update",
2688
+ "error": "UNSUPPORTED_BY_DESKTOP",
2689
+ "note": "Desktop cannot store tags, so none can be updated."
2690
+ },
2691
+ {
2692
+ "case": "delete",
2693
+ "error": "UNSUPPORTED_BY_DESKTOP",
2694
+ "note": "Desktop cannot store tags, so none can be deleted."
2326
2695
  }
2327
2696
  ]
2328
2697
  },
@@ -2437,6 +2806,43 @@ var CATALOG = {
2437
2806
  ],
2438
2807
  "unsupported": []
2439
2808
  },
2809
+ "TaxPayment": {
2810
+ "entity": "TaxPayment",
2811
+ "verdict": "planned",
2812
+ "group": "planned",
2813
+ "read": "none",
2814
+ "write": "none",
2815
+ "headline": "Desktop records sales-tax remittances as SalesTaxPaymentCheck (qbXML SalesTaxPaymentCheckQuery), a real analog \u2014 but it is not mapped yet because TenkeyBridge will not guess QBO's TaxPayment wire shape.",
2816
+ "fields": [],
2817
+ "unsupported": [
2818
+ {
2819
+ "case": "read",
2820
+ "error": "UNSUPPORTED_BY_DESKTOP",
2821
+ "note": "Not implemented. Evaluated in wave 3: the Desktop record (SalesTaxPaymentCheckRet: bank AccountRef, tax-agency PayeeEntityRef, per-item SalesTaxPaymentCheckLineRet amounts) maps conceptually to QBO TaxPayment, but QBO's TaxPayment JSON is thinly documented and read-only, so a field-by-field mapping would be guesswork rather than a verified contract.",
2822
+ "workaround": "Sales-tax payments made in Desktop are not visible through TenkeyBridge today. Pay-tax events that are recorded as ordinary checks appear under Purchase."
2823
+ },
2824
+ {
2825
+ "case": "query",
2826
+ "error": "UNSUPPORTED_BY_DESKTOP",
2827
+ "note": "Not implemented; see read."
2828
+ },
2829
+ {
2830
+ "case": "create",
2831
+ "error": "UNSUPPORTED_BY_DESKTOP",
2832
+ "note": "QBO's TaxPayment is read-only via the API; TenkeyBridge matches that."
2833
+ },
2834
+ {
2835
+ "case": "update",
2836
+ "error": "UNSUPPORTED_BY_DESKTOP",
2837
+ "note": "QBO's TaxPayment is read-only via the API; TenkeyBridge matches that."
2838
+ },
2839
+ {
2840
+ "case": "delete",
2841
+ "error": "UNSUPPORTED_BY_DESKTOP",
2842
+ "note": "QBO's TaxPayment is read-only via the API; TenkeyBridge matches that."
2843
+ }
2844
+ ]
2845
+ },
2440
2846
  "TaxRate": {
2441
2847
  "entity": "TaxRate",
2442
2848
  "verdict": "live",
@@ -2619,6 +3025,12 @@ var CATALOG = {
2619
3025
  "qbo": "ClassRef",
2620
3026
  "support": "full"
2621
3027
  },
3028
+ {
3029
+ "qbo": "DepartmentRef",
3030
+ "support": "none",
3031
+ "note": "UNMAPPED_FIELD by default. With Departments from classes turned on for the company file, the gateway maps it to the header ClassRef (written to it, read from it); sending a different ClassRef as well is a 400.",
3032
+ "error": "UNMAPPED_FIELD"
3033
+ },
2622
3034
  {
2623
3035
  "qbo": "Description",
2624
3036
  "support": "full",
@@ -2757,7 +3169,7 @@ var CATALOG = {
2757
3169
  {
2758
3170
  "case": "Delete",
2759
3171
  "error": "UNSUPPORTED_BY_DESKTOP",
2760
- "note": '"Transfer" is not a valid qbXML TxnDelType enum value, so delete is not wired for this entity.'
3172
+ "note": '"Transfer" is not a valid qbXML TxnDelType enum value (verified live: status 3110), so delete is not wired for this entity.'
2761
3173
  }
2762
3174
  ]
2763
3175
  },
@@ -2844,7 +3256,7 @@ var CATALOG = {
2844
3256
  {
2845
3257
  "qbo": "CustomField",
2846
3258
  "support": "partial",
2847
- "note": "Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only for now. Accepted and ignored on write."
3259
+ "note": "Desktop custom fields (data extensions, OwnerID 0) on the record. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Vendor records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30)."
2848
3260
  },
2849
3261
  {
2850
3262
  "qbo": "CurrencyRef",
@@ -2917,6 +3329,43 @@ var CATALOG = {
2917
3329
  }
2918
3330
  ],
2919
3331
  "unsupported": []
3332
+ },
3333
+ "VendorType": {
3334
+ "entity": "VendorType",
3335
+ "verdict": "gap",
3336
+ "group": "gaps",
3337
+ "read": "none",
3338
+ "write": "none",
3339
+ "headline": "QBO has no VendorType entity to be compatible with \u2014 Desktop's vendor-type list (VendorTypeAdd/Query) has no counterpart in the QBO Accounting API, so TenkeyBridge does not expose it.",
3340
+ "fields": [],
3341
+ "unsupported": [
3342
+ {
3343
+ "case": "read",
3344
+ "error": "UNSUPPORTED_BY_DESKTOP",
3345
+ "note": "The QBO Accounting API has no VendorType resource. Desktop's vendor-type list exists in qbXML, but surfacing it would invent a QBO entity that QBO clients and SDKs do not know.",
3346
+ "workaround": "Desktop's VendorTypeRef on a vendor is not surfaced on the Vendor entity either. Keep vendor classification in your own system keyed by the TenkeyBridge vendor Id."
3347
+ },
3348
+ {
3349
+ "case": "query",
3350
+ "error": "UNSUPPORTED_BY_DESKTOP",
3351
+ "note": "No QBO VendorType resource to mirror, so no query is exposed."
3352
+ },
3353
+ {
3354
+ "case": "create",
3355
+ "error": "UNSUPPORTED_BY_DESKTOP",
3356
+ "note": "No QBO VendorType resource to mirror, so no create is exposed."
3357
+ },
3358
+ {
3359
+ "case": "update",
3360
+ "error": "UNSUPPORTED_BY_DESKTOP",
3361
+ "note": "No QBO VendorType resource to mirror, so no update is exposed."
3362
+ },
3363
+ {
3364
+ "case": "delete",
3365
+ "error": "UNSUPPORTED_BY_DESKTOP",
3366
+ "note": "No QBO VendorType resource to mirror, so no delete is exposed."
3367
+ }
3368
+ ]
2920
3369
  }
2921
3370
  };
2922
3371
 
@@ -3045,10 +3494,10 @@ function registerTools(server, client) {
3045
3494
  server.registerTool(
3046
3495
  "query",
3047
3496
  {
3048
- description: "Run a QBO-style query against the connected QuickBooks Desktop company file. Supports one WHERE condition plus startPosition/maxResults paging. Check the compat://catalog resource for entity support first.",
3497
+ description: "Run a QBO-style query against the connected QuickBooks Desktop company file. Supports AND-joined WHERE conditions (=, !=, <, >, <=, >=, IN, LIKE; no OR) plus startPosition/maxResults paging. Check the compat://catalog resource for entity support first.",
3049
3498
  inputSchema: {
3050
3499
  entity: entityArg,
3051
- where: z.string().optional().describe(`Single WHERE condition in QBO query grammar, e.g. "TxnDate >= '2026-01-01'"`),
3500
+ where: z.string().optional().describe(`WHERE conditions in QBO query grammar, joined with AND (there is no OR), e.g. "CustomerRef = '12' AND TxnDate >= '2026-01-01'"`),
3052
3501
  startPosition: z.number().int().positive().optional(),
3053
3502
  maxResults: z.number().int().positive().max(1e3).optional()
3054
3503
  }
@@ -3154,10 +3603,34 @@ function registerTools(server, client) {
3154
3603
  }
3155
3604
  }
3156
3605
  );
3606
+ server.registerTool(
3607
+ "void",
3608
+ {
3609
+ description: 'Void a transaction by Id + SyncToken (QBO ?operation=void). Supported: Invoice, SalesReceipt, Purchase, BillPayment. Destructive: on QuickBooks Desktop the record stays but its totals are zeroed and its memo is prefixed "VOID:". Returns the post-void record. Fetch the current SyncToken with the get tool first.',
3610
+ inputSchema: {
3611
+ entity: entityArg,
3612
+ id: z.string(),
3613
+ syncToken: z.string().describe("Current SyncToken of the transaction (required; a stale token is rejected).")
3614
+ }
3615
+ },
3616
+ async ({ entity, id, syncToken }) => {
3617
+ const name = resolveEntityName(entity);
3618
+ if (!name) return unknownEntity(entity);
3619
+ if (!ENTITIES2[name].voidable) {
3620
+ const supported = Object.values(ENTITIES2).filter((e) => e.voidable).map((e) => e.name).join(", ");
3621
+ return fail(`${name} cannot be voided through TenkeyBridge. Voidable entities: ${supported}.`);
3622
+ }
3623
+ try {
3624
+ return ok(await accessor(client, name).void({ Id: id, SyncToken: syncToken }));
3625
+ } catch (err) {
3626
+ return failure(err);
3627
+ }
3628
+ }
3629
+ );
3157
3630
  }
3158
3631
 
3159
3632
  // src/version.ts
3160
- var PKG_VERSION = "0.2.0";
3633
+ var PKG_VERSION = "0.4.0";
3161
3634
 
3162
3635
  // src/server.ts
3163
3636
  var SERVER_NAME = "tenkeybridge";
@@ -3173,19 +3646,25 @@ import { mkdirSync, readFileSync, writeFileSync } from "fs";
3173
3646
  import { homedir } from "os";
3174
3647
  import { dirname, join } from "path";
3175
3648
  var PORTAL_URL = "https://api.tenkeybridge.com/portal";
3176
- function defaultTokenFile(realmId) {
3177
- return join(homedir(), ".tenkeybridge", `mcp-tokens-${realmId}.json`);
3649
+ function defaultTokenFile(companyId) {
3650
+ return join(homedir(), ".tenkeybridge", `mcp-tokens-${companyId}.json`);
3178
3651
  }
3179
3652
  function loadConfig(env) {
3180
- const realmId = env.TKB_REALM_ID;
3181
- if (!realmId) {
3653
+ const fromNew = env.TKB_COMPANY_ID;
3654
+ const fromOld = env.TKB_REALM_ID;
3655
+ if (fromNew && fromOld && fromNew !== fromOld) {
3656
+ throw new Error("TKB_COMPANY_ID and TKB_REALM_ID (deprecated) disagree \u2014 set TKB_COMPANY_ID only.");
3657
+ }
3658
+ const companyId = fromNew || fromOld;
3659
+ if (!companyId) {
3182
3660
  throw new Error(
3183
- `TKB_REALM_ID is required \u2014 the realm id of the connected company file (shown in the portal: ${PORTAL_URL}).`
3661
+ `TKB_COMPANY_ID is required \u2014 the Company ID of the connected QuickBooks company file (shown in the portal: ${PORTAL_URL}).`
3184
3662
  );
3185
3663
  }
3664
+ const deprecations = !fromNew && fromOld ? ["TKB_REALM_ID is deprecated; set TKB_COMPANY_ID instead."] : [];
3186
3665
  const baseUrl = env.TKB_BASE_URL;
3187
3666
  if (env.TKB_ACCESS_TOKEN) {
3188
- return { realmId, ...baseUrl ? { baseUrl } : {}, auth: { accessToken: env.TKB_ACCESS_TOKEN } };
3667
+ return { companyId, deprecations, ...baseUrl ? { baseUrl } : {}, auth: { accessToken: env.TKB_ACCESS_TOKEN } };
3189
3668
  }
3190
3669
  const clientId = env.TKB_CLIENT_ID;
3191
3670
  const clientSecret = env.TKB_CLIENT_SECRET;
@@ -3197,13 +3676,14 @@ function loadConfig(env) {
3197
3676
  !refreshToken && "TKB_REFRESH_TOKEN"
3198
3677
  ].filter(Boolean).join(", ");
3199
3678
  throw new Error(
3200
- `Missing ${missing}. Set either TKB_ACCESS_TOKEN, or all of TKB_CLIENT_ID + TKB_CLIENT_SECRET + TKB_REFRESH_TOKEN (create an OAuth client in the portal: ${PORTAL_URL}).`
3679
+ `Missing ${missing}. Set either TKB_ACCESS_TOKEN, or all of TKB_CLIENT_ID + TKB_CLIENT_SECRET + TKB_REFRESH_TOKEN (create an OAuth app in the portal: ${PORTAL_URL}).`
3201
3680
  );
3202
3681
  }
3203
- const tokenFile = env.TKB_TOKEN_FILE ?? defaultTokenFile(realmId);
3682
+ const tokenFile = env.TKB_TOKEN_FILE ?? defaultTokenFile(companyId);
3204
3683
  const stored = readStoredRefreshToken(tokenFile);
3205
3684
  return {
3206
- realmId,
3685
+ companyId,
3686
+ deprecations,
3207
3687
  ...baseUrl ? { baseUrl } : {},
3208
3688
  tokenFile,
3209
3689
  auth: { clientId, clientSecret, refreshToken: stored ?? refreshToken }