@tenkeybridge/mcp 0.2.0 → 0.3.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
@@ -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",
@@ -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",
@@ -407,9 +407,9 @@ var CATALOG = {
407
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."
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
  {
@@ -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",
@@ -704,6 +743,11 @@ var CATALOG = {
704
743
  "qbo": "PrivateNote",
705
744
  "support": "full"
706
745
  },
746
+ {
747
+ "qbo": "CustomField",
748
+ "support": "partial",
749
+ "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."
750
+ },
707
751
  {
708
752
  "qbo": "CustomerMemo",
709
753
  "support": "full",
@@ -712,12 +756,12 @@ var CATALOG = {
712
756
  {
713
757
  "qbo": "Line",
714
758
  "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)."
759
+ "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
760
  },
717
761
  {
718
762
  "qbo": "TxnTaxDetail",
719
763
  "support": "partial",
720
- "note": "Set TxnTaxCodeRef explicitly; computed TotalTax alone is rejected. Updatable via sparse update (#55)."
764
+ "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
765
  },
722
766
  {
723
767
  "qbo": "LinkedTxn",
@@ -747,15 +791,10 @@ var CATALOG = {
747
791
  }
748
792
  ],
749
793
  "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
794
  {
756
795
  "case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
757
796
  "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."
797
+ "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
798
  },
760
799
  {
761
800
  "case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly",
@@ -880,7 +919,7 @@ var CATALOG = {
880
919
  {
881
920
  "qbo": "CustomField",
882
921
  "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."
922
+ "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
923
  },
885
924
  {
886
925
  "qbo": "CurrencyRef",
@@ -949,9 +988,10 @@ var CATALOG = {
949
988
  ],
950
989
  "unsupported": [
951
990
  {
952
- "case": "Create or update",
991
+ "case": "Create, update or deactivate",
953
992
  "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."
993
+ "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.",
994
+ "workaround": "Create, rename or deactivate the type in QuickBooks Desktop itself; the change shows up on the next read."
955
995
  }
956
996
  ]
957
997
  },
@@ -1016,12 +1056,12 @@ var CATALOG = {
1016
1056
  {
1017
1057
  "qbo": "Line",
1018
1058
  "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."
1059
+ "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
1060
  },
1021
1061
  {
1022
1062
  "qbo": "CashBack",
1023
- "support": "full",
1024
- "note": "Maps to Desktop CashBackInfo."
1063
+ "support": "partial",
1064
+ "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
1065
  },
1026
1066
  {
1027
1067
  "qbo": "TotalAmt",
@@ -1048,8 +1088,8 @@ var CATALOG = {
1048
1088
  "verdict": "live",
1049
1089
  "group": "lists",
1050
1090
  "read": "full",
1051
- "write": "none",
1052
- "headline": "Read/query only \u2014 no Desktop write path this release; payroll aggregates out of scope",
1091
+ "write": "partial",
1092
+ "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
1093
  "fields": [
1054
1094
  {
1055
1095
  "qbo": "GivenName",
@@ -1069,7 +1109,8 @@ var CATALOG = {
1069
1109
  },
1070
1110
  {
1071
1111
  "qbo": "DisplayName",
1072
- "support": "full"
1112
+ "support": "partial",
1113
+ "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
1114
  },
1074
1115
  {
1075
1116
  "qbo": "PrintOnCheckName",
@@ -1078,7 +1119,8 @@ var CATALOG = {
1078
1119
  },
1079
1120
  {
1080
1121
  "qbo": "Active",
1081
- "support": "full"
1122
+ "support": "full",
1123
+ "note": "Deactivate with a sparse update of Active:false; Desktop employees cannot be deleted through qbXML."
1082
1124
  },
1083
1125
  {
1084
1126
  "qbo": "PrimaryPhone",
@@ -1094,7 +1136,8 @@ var CATALOG = {
1094
1136
  },
1095
1137
  {
1096
1138
  "qbo": "PrimaryAddr",
1097
- "support": "full"
1139
+ "support": "full",
1140
+ "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
1141
  },
1099
1142
  {
1100
1143
  "qbo": "HiredDate",
@@ -1110,12 +1153,24 @@ var CATALOG = {
1110
1153
  },
1111
1154
  {
1112
1155
  "qbo": "Gender",
1113
- "support": "full"
1156
+ "support": "full",
1157
+ "note": "Male or Female."
1158
+ },
1159
+ {
1160
+ "qbo": "SSN",
1161
+ "support": "partial",
1162
+ "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
1163
  },
1115
1164
  {
1116
1165
  "qbo": "CustomField",
1117
1166
  "support": "partial",
1118
- "note": "Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only."
1167
+ "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)."
1168
+ },
1169
+ {
1170
+ "qbo": "EmployeeNumber",
1171
+ "support": "none",
1172
+ "note": "Desktop's Employee record has no employee-number field; keep the number in your own system keyed by the TenkeyBridge Id.",
1173
+ "error": "UNSUPPORTED_BY_DESKTOP"
1119
1174
  },
1120
1175
  {
1121
1176
  "qbo": "TargetBonus",
@@ -1132,9 +1187,42 @@ var CATALOG = {
1132
1187
  ],
1133
1188
  "unsupported": [
1134
1189
  {
1135
- "case": "Create or update",
1190
+ "case": "Delete",
1191
+ "error": "UNSUPPORTED_BY_DESKTOP",
1192
+ "note": "QBO employees are deactivated, not deleted; TenkeyBridge follows that (sparse update with Active:false)."
1193
+ },
1194
+ {
1195
+ "case": "Payroll fields",
1196
+ "error": "UNSUPPORTED_BY_DESKTOP",
1197
+ "note": "Pay rates, pay periods, wage items and other EmployeePayrollInfo content are license-gated in Desktop and not exposed for read or write."
1198
+ }
1199
+ ]
1200
+ },
1201
+ "Entitlements": {
1202
+ "entity": "Entitlements",
1203
+ "verdict": "live",
1204
+ "group": "platform",
1205
+ "read": "partial",
1206
+ "write": "none",
1207
+ "headline": "GET /v3/company/{realmId}/entitlements \u2014 a static, honest capability document for a QuickBooks Desktop company (no per-file subscription data).",
1208
+ "usage": "GET /v3/company/{realmId}/entitlements",
1209
+ "fields": [
1210
+ {
1211
+ "qbo": "Entitlements.platform",
1212
+ "support": "full",
1213
+ "note": 'Always "QuickBooks Desktop" \u2014 TenkeyBridge talks to Desktop, never to a QBO subscription.'
1214
+ },
1215
+ {
1216
+ "qbo": "Entitlements.features",
1217
+ "support": "partial",
1218
+ "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."
1219
+ }
1220
+ ],
1221
+ "unsupported": [
1222
+ {
1223
+ "case": "QBO subscription tier, seats and add-ons",
1136
1224
  "error": "UNSUPPORTED_BY_DESKTOP",
1137
- "note": "Employee is read/query only this release; TenkeyBridge doesn't expose a Desktop write path for it."
1225
+ "note": "Desktop has no subscription entitlements exposed over qbXML; the response says so explicitly rather than inventing values."
1138
1226
  }
1139
1227
  ]
1140
1228
  },
@@ -1144,7 +1232,7 @@ var CATALOG = {
1144
1232
  "group": "sales",
1145
1233
  "read": "full",
1146
1234
  "write": "partial",
1147
- "headline": "Same shape as Invoice; no expiration/acceptance tracking",
1235
+ "headline": "Same shape as Invoice; expiration date and active/closed status, no acceptance tracking",
1148
1236
  "fields": [
1149
1237
  {
1150
1238
  "qbo": "CustomerRef",
@@ -1177,7 +1265,18 @@ var CATALOG = {
1177
1265
  },
1178
1266
  {
1179
1267
  "qbo": "DueDate",
1180
- "support": "full"
1268
+ "support": "full",
1269
+ "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."
1270
+ },
1271
+ {
1272
+ "qbo": "ExpirationDate",
1273
+ "support": "full",
1274
+ "note": "Maps to the Desktop estimate DueDate. Read and write."
1275
+ },
1276
+ {
1277
+ "qbo": "TxnStatus",
1278
+ "support": "partial",
1279
+ "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
1280
  },
1182
1281
  {
1183
1282
  "qbo": "PrivateNote",
@@ -1191,12 +1290,12 @@ var CATALOG = {
1191
1290
  {
1192
1291
  "qbo": "Line",
1193
1292
  "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)."
1293
+ "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
1294
  },
1196
1295
  {
1197
1296
  "qbo": "TxnTaxDetail",
1198
1297
  "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)."
1298
+ "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
1299
  },
1201
1300
  {
1202
1301
  "qbo": "LinkedTxn",
@@ -1206,7 +1305,7 @@ var CATALOG = {
1206
1305
  {
1207
1306
  "qbo": "CustomField",
1208
1307
  "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."
1308
+ "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
1309
  },
1211
1310
  {
1212
1311
  "qbo": "TotalAmt",
@@ -1223,12 +1322,6 @@ var CATALOG = {
1223
1322
  "support": "partial",
1224
1323
  "note": "Accepted and ignored \u2014 Desktop manages this itself; multi-currency mapping lands later."
1225
1324
  },
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
1325
  {
1233
1326
  "qbo": "AcceptedBy",
1234
1327
  "support": "none",
@@ -1240,24 +1333,13 @@ var CATALOG = {
1240
1333
  "support": "none",
1241
1334
  "note": "Desktop estimates have no accepted-date field. Track acceptance in your own system.",
1242
1335
  "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
1336
  }
1250
1337
  ],
1251
1338
  "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
1339
  {
1258
1340
  "case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
1259
1341
  "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."
1342
+ "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
1343
  },
1262
1344
  {
1263
1345
  "case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly",
@@ -1314,6 +1396,65 @@ var CATALOG = {
1314
1396
  }
1315
1397
  ]
1316
1398
  },
1399
+ "InventoryAdjustment": {
1400
+ "entity": "InventoryAdjustment",
1401
+ "verdict": "live",
1402
+ "group": "purchasing",
1403
+ "read": "full",
1404
+ "write": "partial",
1405
+ "headline": "Quantity adjustments to inventory items \u2014 create, read, header update and delete (live-verified); line edits need delete + re-create",
1406
+ "fields": [
1407
+ {
1408
+ "qbo": "AdjustAccountRef",
1409
+ "support": "full",
1410
+ "note": "Desktop AccountRef \u2014 the adjustment (offset) account. Required on create."
1411
+ },
1412
+ {
1413
+ "qbo": "TxnDate",
1414
+ "support": "full"
1415
+ },
1416
+ {
1417
+ "qbo": "DocNumber",
1418
+ "support": "full",
1419
+ "note": "Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050)."
1420
+ },
1421
+ {
1422
+ "qbo": "PrivateNote",
1423
+ "support": "full",
1424
+ "note": "Desktop Memo."
1425
+ },
1426
+ {
1427
+ "qbo": "Line",
1428
+ "support": "partial",
1429
+ "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."
1430
+ },
1431
+ {
1432
+ "qbo": "CurrencyRef",
1433
+ "support": "none",
1434
+ "note": "Multicurrency not yet supported.",
1435
+ "error": "UNSUPPORTED_BY_DESKTOP"
1436
+ },
1437
+ {
1438
+ "qbo": "ExchangeRate",
1439
+ "support": "none",
1440
+ "note": "Multicurrency not yet supported.",
1441
+ "error": "UNSUPPORTED_BY_DESKTOP"
1442
+ }
1443
+ ],
1444
+ "unsupported": [
1445
+ {
1446
+ "case": "Line update",
1447
+ "error": "UNSUPPORTED_BY_DESKTOP",
1448
+ "note": "A sparse update can change header fields only (AdjustAccountRef, TxnDate, DocNumber, PrivateNote). To change quantities, delete the adjustment and create a new one.",
1449
+ "workaround": "POST ?operation=delete with the Id, then create a corrected InventoryAdjustment."
1450
+ },
1451
+ {
1452
+ "case": "Absolute quantity (NewQuantity) and value adjustments",
1453
+ "error": "UNSUPPORTED_BY_DESKTOP",
1454
+ "note": "QBO's InventoryAdjustment only has QtyDiff (a delta), so Desktop's NewQuantity/NewValue forms have no QBO field to map from."
1455
+ }
1456
+ ]
1457
+ },
1317
1458
  "Invoice": {
1318
1459
  "entity": "Invoice",
1319
1460
  "verdict": "live",
@@ -1375,12 +1516,12 @@ var CATALOG = {
1375
1516
  {
1376
1517
  "qbo": "Line",
1377
1518
  "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)."
1519
+ "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
1520
  },
1380
1521
  {
1381
1522
  "qbo": "TxnTaxDetail",
1382
1523
  "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)."
1524
+ "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
1525
  },
1385
1526
  {
1386
1527
  "qbo": "LinkedTxn",
@@ -1390,7 +1531,7 @@ var CATALOG = {
1390
1531
  {
1391
1532
  "qbo": "CustomField",
1392
1533
  "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."
1534
+ "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
1535
  },
1395
1536
  {
1396
1537
  "qbo": "TotalAmt",
@@ -1415,19 +1556,14 @@ var CATALOG = {
1415
1556
  {
1416
1557
  "qbo": "operation=void",
1417
1558
  "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)."
1559
+ "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
1560
  }
1420
1561
  ],
1421
1562
  "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
1563
  {
1428
1564
  "case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
1429
1565
  "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."
1566
+ "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
1567
  },
1432
1568
  {
1433
1569
  "case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly (e.g. SubTotalLineDetail)",
@@ -1441,72 +1577,83 @@ var CATALOG = {
1441
1577
  "verdict": "live",
1442
1578
  "group": "sales",
1443
1579
  "read": "partial",
1444
- "write": "none",
1580
+ "write": "partial",
1445
1581
  "headline": "One Item becomes several Desktop item types",
1446
1582
  "fields": [
1447
1583
  {
1448
1584
  "qbo": "Name",
1449
- "support": "full"
1585
+ "support": "full",
1586
+ "note": "Desktop item Name is the leaf name (max 31 characters); FullyQualifiedName is derived."
1450
1587
  },
1451
1588
  {
1452
1589
  "qbo": "FullyQualifiedName",
1453
1590
  "support": "full",
1454
- "note": "Read-only in this release."
1591
+ "note": "Read-only; derived from the Desktop FullName. Echoed values on update are ignored."
1455
1592
  },
1456
1593
  {
1457
1594
  "qbo": "Active",
1458
1595
  "support": "full",
1459
- "note": "Read-only in this release."
1596
+ "note": "Deactivate with a sparse update setting Active to false; items are never deleted."
1460
1597
  },
1461
1598
  {
1462
1599
  "qbo": "Type",
1463
1600
  "support": "partial",
1464
- "note": "Service, NonInventory, Inventory, Group map; other Desktop types are omitted from query results."
1601
+ "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
1602
  },
1466
1603
  {
1467
1604
  "qbo": "Description",
1468
1605
  "support": "full",
1469
- "note": "Read-only in this release."
1606
+ "note": "Desktop sales description: SalesOrPurchase/Desc, SalesAndPurchase/SalesDesc, or SalesDesc on Inventory."
1470
1607
  },
1471
1608
  {
1472
1609
  "qbo": "UnitPrice",
1473
1610
  "support": "full",
1474
- "note": "Read-only in this release."
1611
+ "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
1612
  },
1476
1613
  {
1477
1614
  "qbo": "Sku",
1478
1615
  "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."
1616
+ "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."
1617
+ },
1618
+ {
1619
+ "qbo": "TrackQtyOnHand",
1620
+ "support": "partial",
1621
+ "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
1622
  },
1481
1623
  {
1482
1624
  "qbo": "QtyOnHand",
1483
- "support": "full",
1484
- "note": "Read-only in this release."
1625
+ "support": "partial",
1626
+ "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."
1627
+ },
1628
+ {
1629
+ "qbo": "InvStartDate",
1630
+ "support": "partial",
1631
+ "note": "Write-only, create only (Desktop InventoryDate). Not returned on read."
1485
1632
  },
1486
1633
  {
1487
1634
  "qbo": "IncomeAccountRef",
1488
1635
  "support": "full",
1489
- "note": "Read-only in this release."
1636
+ "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
1637
  },
1491
1638
  {
1492
1639
  "qbo": "ExpenseAccountRef",
1493
1640
  "support": "partial",
1494
- "note": "Inventory: COGSAccountRef. Two-sided Service/NonInventory (SalesAndPurchase): ExpenseAccountRef. One-sided Service/NonInventory have no expense account."
1641
+ "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
1642
  },
1496
1643
  {
1497
1644
  "qbo": "AssetAccountRef",
1498
1645
  "support": "full",
1499
- "note": "Read-only in this release; Inventory only."
1646
+ "note": "Inventory only; required on create."
1500
1647
  },
1501
1648
  {
1502
1649
  "qbo": "PurchaseDesc",
1503
1650
  "support": "full",
1504
- "note": "Inventory and two-sided Service/NonInventory (SalesAndPurchase)."
1651
+ "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
1652
  },
1506
1653
  {
1507
1654
  "qbo": "PurchaseCost",
1508
1655
  "support": "full",
1509
- "note": "Inventory and two-sided Service/NonInventory (SalesAndPurchase)."
1656
+ "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
1657
  },
1511
1658
  {
1512
1659
  "qbo": "PrefVendorRef",
@@ -1516,29 +1663,54 @@ var CATALOG = {
1516
1663
  {
1517
1664
  "qbo": "ParentRef",
1518
1665
  "support": "full",
1519
- "note": "Desktop item hierarchy."
1666
+ "note": "Desktop item hierarchy; sub-items are FullName paths (Parent:Child)."
1520
1667
  },
1521
1668
  {
1522
1669
  "qbo": "SubItem",
1523
1670
  "support": "full",
1524
- "note": "Derived from Desktop Sublevel."
1671
+ "note": "Derived from Desktop Sublevel; read-only."
1672
+ },
1673
+ {
1674
+ "qbo": "ClassRef",
1675
+ "support": "full",
1676
+ "note": "Desktop ClassRef."
1677
+ },
1678
+ {
1679
+ "qbo": "SalesTaxCodeRef",
1680
+ "support": "full",
1681
+ "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."
1682
+ },
1683
+ {
1684
+ "qbo": "Taxable",
1685
+ "support": "partial",
1686
+ "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
1687
  },
1526
1688
  {
1527
1689
  "qbo": "CustomField",
1528
1690
  "support": "partial",
1529
- "note": "Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only for now."
1691
+ "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
1692
  }
1531
1693
  ],
1532
1694
  "unsupported": [
1533
1695
  {
1534
- "case": "Item types other than Service, NonInventory, Inventory, and Group (assemblies, discounts, sales tax items, payment items, fixed assets, other charge, subtotal)",
1696
+ "case": "Item types other than Service, NonInventory, Inventory, Group, other-charge and discount (assemblies, sales tax items, payment items, fixed assets, subtotal)",
1535
1697
  "error": "UNSUPPORTED_BY_DESKTOP",
1536
1698
  "note": "Omitted from query results; a direct get by id on one of these Desktop items returns a 422 UNSUPPORTED_BY_DESKTOP fault."
1537
1699
  },
1538
1700
  {
1539
- "case": "Item create/update",
1701
+ "case": "Creating or updating Group (and Category) items, or updating discount items",
1702
+ "error": "UNSUPPORTED_BY_DESKTOP",
1703
+ "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."
1704
+ },
1705
+ {
1706
+ "case": "Adding purchase-side fields to an existing sales-only Service/NonInventory item",
1540
1707
  "error": "UNSUPPORTED_BY_DESKTOP",
1541
- "note": "Lands in a later release."
1708
+ "note": "Desktop rejects the SalesOrPurchase to SalesAndPurchase conversion (error 3170). Include PurchaseDesc, PurchaseCost, ExpenseAccountRef or PrefVendorRef when the item is created."
1709
+ },
1710
+ {
1711
+ "case": "Changing QtyOnHand after creation",
1712
+ "error": "UNSUPPORTED_BY_DESKTOP",
1713
+ "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
1714
  }
1543
1715
  ]
1544
1716
  },
@@ -1608,7 +1780,7 @@ var CATALOG = {
1608
1780
  {
1609
1781
  "qbo": "Line",
1610
1782
  "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."
1783
+ "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
1784
  },
1613
1785
  {
1614
1786
  "qbo": "TotalAmt",
@@ -1664,7 +1836,7 @@ var CATALOG = {
1664
1836
  {
1665
1837
  "qbo": "PaymentRefNum",
1666
1838
  "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."
1839
+ "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
1840
  },
1669
1841
  {
1670
1842
  "qbo": "TotalAmt",
@@ -1686,7 +1858,7 @@ var CATALOG = {
1686
1858
  {
1687
1859
  "qbo": "Line",
1688
1860
  "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."
1861
+ "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
1862
  },
1691
1863
  {
1692
1864
  "qbo": "UnappliedAmt",
@@ -1833,7 +2005,7 @@ var CATALOG = {
1833
2005
  "note": "Preferences is read/query only in QBO and Desktop \u2014 there is no PreferencesAdd/Mod."
1834
2006
  },
1835
2007
  {
1836
- "case": "Any WHERE clause, or STARTPOSITION/MAXRESULTS",
2008
+ "case": "Any WHERE clause, ORDERBY, COUNT(*), column list, or STARTPOSITION/MAXRESULTS",
1837
2009
  "error": "UNSUPPORTED_QUERY",
1838
2010
  "note": "PreferencesQueryRq takes no filters and always returns the single open company PreferencesRet. Use SELECT * FROM Preferences."
1839
2011
  }
@@ -1874,7 +2046,7 @@ var CATALOG = {
1874
2046
  {
1875
2047
  "qbo": "DocNumber",
1876
2048
  "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."
2049
+ "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
2050
  },
1879
2051
  {
1880
2052
  "qbo": "PrivateNote",
@@ -1910,7 +2082,7 @@ var CATALOG = {
1910
2082
  {
1911
2083
  "qbo": "operation=void",
1912
2084
  "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)."
2085
+ "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
2086
  }
1915
2087
  ],
1916
2088
  "unsupported": [
@@ -1971,10 +2143,15 @@ var CATALOG = {
1971
2143
  "qbo": "PrivateNote",
1972
2144
  "support": "full"
1973
2145
  },
2146
+ {
2147
+ "qbo": "CustomField",
2148
+ "support": "partial",
2149
+ "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)."
2150
+ },
1974
2151
  {
1975
2152
  "qbo": "Line",
1976
2153
  "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."
2154
+ "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
2155
  },
1979
2156
  {
1980
2157
  "qbo": "TotalAmt",
@@ -1984,7 +2161,7 @@ var CATALOG = {
1984
2161
  {
1985
2162
  "qbo": "POStatus",
1986
2163
  "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."
2164
+ "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
2165
  },
1989
2166
  {
1990
2167
  "qbo": "APAccountRef",
@@ -2117,7 +2294,7 @@ var CATALOG = {
2117
2294
  {
2118
2295
  "case": "Item-line RefundReceipt (SalesItemLineDetail etc.)",
2119
2296
  "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."
2297
+ "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
2298
  },
2122
2299
  {
2123
2300
  "case": "Update / sparse update",
@@ -2169,46 +2346,103 @@ var CATALOG = {
2169
2346
  "group": "platform",
2170
2347
  "read": "partial",
2171
2348
  "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",
2349
+ "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.",
2350
+ "usage": "GET /v3/company/{realmId}/reports/ProfitAndLoss?start_date=2026-01-01&end_date=2026-12-31&summarize_column_by=Month",
2174
2351
  "fields": [
2175
2352
  {
2176
2353
  "qbo": "ProfitAndLoss / BalanceSheet / TrialBalance",
2177
2354
  "support": "full",
2178
- "note": "GeneralSummaryReportQueryRq (ProfitAndLossStandard / BalanceSheetStandard / TrialBalance). Values verbatim from Desktop \u2014 no recomputation."
2355
+ "note": "GeneralSummaryReportQueryRq (ProfitAndLossStandard / BalanceSheetStandard / TrialBalance). Values verbatim from Desktop \u2014 no recomputation. BalanceSheet also takes report_date as an as-of."
2179
2356
  },
2180
2357
  {
2181
2358
  "qbo": "AgedReceivables / AgedPayables",
2182
2359
  "support": "full",
2183
2360
  "note": "AgingReportQueryRq (ARAgingSummary / APAgingSummary). Desktop's file-configured aging buckets come back as columns, honestly."
2184
2361
  },
2362
+ {
2363
+ "qbo": "CustomerBalance / VendorBalance",
2364
+ "support": "full",
2365
+ "note": "CustomerBalanceSummary / VendorBalanceSummary. As-of (report_date). Month (and the other period splits) are accepted; Desktop refuses ReportBasis here."
2366
+ },
2367
+ {
2368
+ "qbo": "CustomerIncome / VendorExpenses",
2369
+ "support": "full",
2370
+ "note": "IncomeByCustomerSummary / ExpenseByVendorSummary."
2371
+ },
2372
+ {
2373
+ "qbo": "CustomerSales / ItemSales (aliases SalesByCustomer / SalesByProduct)",
2374
+ "support": "full",
2375
+ "note": "SalesByCustomerSummary / SalesByItemSummary. ItemSales carries Desktop's extra columns (% of Sales, Avg Price, COGS, Gross Margin)."
2376
+ },
2377
+ {
2378
+ "qbo": "InventoryValuationSummary",
2379
+ "support": "full",
2380
+ "note": "InventoryValuationSummary, as-of (report_date), item filter only. Desktop refuses ReportBasis and SummarizeColumnsBy here."
2381
+ },
2382
+ {
2383
+ "qbo": "ProfitAndLossDetail / GeneralLedger",
2384
+ "support": "partial",
2385
+ "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)."
2386
+ },
2387
+ {
2388
+ "qbo": "JournalReport / TransactionList",
2389
+ "support": "partial",
2390
+ "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."
2391
+ },
2392
+ {
2393
+ "qbo": "CustomerBalanceDetail / VendorBalanceDetail",
2394
+ "support": "partial",
2395
+ "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."
2396
+ },
2397
+ {
2398
+ "qbo": "AgedReceivableDetail / AgedPayableDetail",
2399
+ "support": "partial",
2400
+ "note": "AgingReportQueryRq ARAgingDetail / APAgingDetail, as-of (report_date), with the receivable (customer) or payable (vendor) filter. ColKeys best-effort."
2401
+ },
2185
2402
  {
2186
2403
  "qbo": "start_date / end_date / date_macro",
2187
2404
  "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."
2405
+ "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
2406
  },
2190
2407
  {
2191
2408
  "qbo": "report_date",
2192
2409
  "support": "full",
2193
- "note": "The aging reports are as-of a single date. Omit it and QBO's default (today) is used."
2410
+ "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
2411
  },
2195
2412
  {
2196
2413
  "qbo": "accounting_method",
2197
2414
  "support": "partial",
2198
- "note": "Cash/Accrual on the three summary reports. Aging reports reject it \u2014 qbXML has no ReportBasis there.",
2415
+ "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.",
2416
+ "error": "REPORT_UNSUPPORTED_OPTION"
2417
+ },
2418
+ {
2419
+ "qbo": "summarize_column_by",
2420
+ "support": "partial",
2421
+ "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.",
2422
+ "error": "REPORT_UNSUPPORTED_OPTION"
2423
+ },
2424
+ {
2425
+ "qbo": "customer / vendor / item / class",
2426
+ "support": "partial",
2427
+ "note": "Comma-separated Ids \u2192 ReportEntityFilter (customer + vendor) / ReportItemFilter / ReportClassFilter. AR reports accept customer only, AP reports vendor only; InventoryValuationSummary accepts item only.",
2199
2428
  "error": "REPORT_UNSUPPORTED_OPTION"
2200
2429
  },
2201
2430
  {
2202
2431
  "qbo": "Column titles",
2203
2432
  "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."
2433
+ "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
2434
  }
2206
2435
  ],
2207
2436
  "unsupported": [
2208
2437
  {
2209
- "case": "columns / customer / vendor / item / class / department / qzurl / adjusted_gain_loss",
2438
+ "case": "CashFlow",
2439
+ "error": "REPORT_UNKNOWN",
2440
+ "note": "QuickBooks Desktop's SDK has no cash-flow report (StatementOfCashFlows is refused with 3110 on every qbXML version)."
2441
+ },
2442
+ {
2443
+ "case": "columns / department / qzurl / adjusted_gain_loss",
2210
2444
  "error": "REPORT_UNSUPPORTED_OPTION",
2211
- "note": "Column and filter customization is v2. Desktop returns its standard report layout."
2445
+ "note": "Column selection has no qbXML equivalent; Desktop has no departments (use class); QuickZoom URLs and multicurrency gain/loss adjustment are QBO-only."
2212
2446
  },
2213
2447
  {
2214
2448
  "case": "aging_period / num_periods / aging_method",
@@ -2216,14 +2450,14 @@ var CATALOG = {
2216
2450
  "note": "Desktop aging buckets are company-file configuration, not request parameters."
2217
2451
  },
2218
2452
  {
2219
- "case": "summarize_column_by other than Total",
2453
+ "case": "summarize_column_by = Employees / ProductsAndServices / Departments / Location",
2220
2454
  "error": "REPORT_UNSUPPORTED_OPTION",
2221
- "note": "qbXML SummarizeColumnsBy exists \u2014 clean v2 upgrade path."
2455
+ "note": "qbXML's SummarizeColumnsBy has no per-item, per-employee or per-location split (ItemType splits by item type, not by item)."
2222
2456
  },
2223
2457
  {
2224
- "case": "other QBO report names (CashFlow, detail/aging-detail variants, \u2026)",
2458
+ "case": "other QBO report names (class/department sales, tax, account list, ...)",
2225
2459
  "error": "REPORT_UNKNOWN",
2226
- "note": "Planned. The fault lists the five supported reports."
2460
+ "note": "Not shipped. The fault lists the supported reports."
2227
2461
  }
2228
2462
  ]
2229
2463
  },
@@ -2280,12 +2514,12 @@ var CATALOG = {
2280
2514
  {
2281
2515
  "qbo": "Line",
2282
2516
  "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)."
2517
+ "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
2518
  },
2285
2519
  {
2286
2520
  "qbo": "TxnTaxDetail",
2287
2521
  "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)."
2522
+ "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
2523
  },
2290
2524
  {
2291
2525
  "qbo": "LinkedTxn",
@@ -2295,7 +2529,7 @@ var CATALOG = {
2295
2529
  {
2296
2530
  "qbo": "CustomField",
2297
2531
  "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."
2532
+ "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
2533
  },
2300
2534
  {
2301
2535
  "qbo": "TotalAmt",
@@ -2318,11 +2552,42 @@ var CATALOG = {
2318
2552
  "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
2553
  }
2320
2554
  ],
2555
+ "unsupported": []
2556
+ },
2557
+ "Tag": {
2558
+ "entity": "Tag",
2559
+ "verdict": "gap",
2560
+ "group": "gaps",
2561
+ "read": "none",
2562
+ "write": "none",
2563
+ "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.",
2564
+ "fields": [],
2321
2565
  "unsupported": [
2322
2566
  {
2323
- "case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
2567
+ "case": "read",
2568
+ "error": "UNSUPPORTED_BY_DESKTOP",
2569
+ "note": "qbXML has no Tag or TagClassification message; Desktop has no equivalent many-to-many labeling of transactions.",
2570
+ "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."
2571
+ },
2572
+ {
2573
+ "case": "query",
2574
+ "error": "UNSUPPORTED_BY_DESKTOP",
2575
+ "note": "There is no Desktop tag list to query."
2576
+ },
2577
+ {
2578
+ "case": "create",
2579
+ "error": "UNSUPPORTED_BY_DESKTOP",
2580
+ "note": "Desktop cannot store tags, so none can be created."
2581
+ },
2582
+ {
2583
+ "case": "update",
2584
+ "error": "UNSUPPORTED_BY_DESKTOP",
2585
+ "note": "Desktop cannot store tags, so none can be updated."
2586
+ },
2587
+ {
2588
+ "case": "delete",
2324
2589
  "error": "UNSUPPORTED_BY_DESKTOP",
2325
- "note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
2590
+ "note": "Desktop cannot store tags, so none can be deleted."
2326
2591
  }
2327
2592
  ]
2328
2593
  },
@@ -2437,6 +2702,43 @@ var CATALOG = {
2437
2702
  ],
2438
2703
  "unsupported": []
2439
2704
  },
2705
+ "TaxPayment": {
2706
+ "entity": "TaxPayment",
2707
+ "verdict": "planned",
2708
+ "group": "planned",
2709
+ "read": "none",
2710
+ "write": "none",
2711
+ "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.",
2712
+ "fields": [],
2713
+ "unsupported": [
2714
+ {
2715
+ "case": "read",
2716
+ "error": "UNSUPPORTED_BY_DESKTOP",
2717
+ "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.",
2718
+ "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."
2719
+ },
2720
+ {
2721
+ "case": "query",
2722
+ "error": "UNSUPPORTED_BY_DESKTOP",
2723
+ "note": "Not implemented; see read."
2724
+ },
2725
+ {
2726
+ "case": "create",
2727
+ "error": "UNSUPPORTED_BY_DESKTOP",
2728
+ "note": "QBO's TaxPayment is read-only via the API; TenkeyBridge matches that."
2729
+ },
2730
+ {
2731
+ "case": "update",
2732
+ "error": "UNSUPPORTED_BY_DESKTOP",
2733
+ "note": "QBO's TaxPayment is read-only via the API; TenkeyBridge matches that."
2734
+ },
2735
+ {
2736
+ "case": "delete",
2737
+ "error": "UNSUPPORTED_BY_DESKTOP",
2738
+ "note": "QBO's TaxPayment is read-only via the API; TenkeyBridge matches that."
2739
+ }
2740
+ ]
2741
+ },
2440
2742
  "TaxRate": {
2441
2743
  "entity": "TaxRate",
2442
2744
  "verdict": "live",
@@ -2757,7 +3059,7 @@ var CATALOG = {
2757
3059
  {
2758
3060
  "case": "Delete",
2759
3061
  "error": "UNSUPPORTED_BY_DESKTOP",
2760
- "note": '"Transfer" is not a valid qbXML TxnDelType enum value, so delete is not wired for this entity.'
3062
+ "note": '"Transfer" is not a valid qbXML TxnDelType enum value (verified live: status 3110), so delete is not wired for this entity.'
2761
3063
  }
2762
3064
  ]
2763
3065
  },
@@ -2844,7 +3146,7 @@ var CATALOG = {
2844
3146
  {
2845
3147
  "qbo": "CustomField",
2846
3148
  "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."
3149
+ "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
3150
  },
2849
3151
  {
2850
3152
  "qbo": "CurrencyRef",
@@ -2917,6 +3219,43 @@ var CATALOG = {
2917
3219
  }
2918
3220
  ],
2919
3221
  "unsupported": []
3222
+ },
3223
+ "VendorType": {
3224
+ "entity": "VendorType",
3225
+ "verdict": "gap",
3226
+ "group": "gaps",
3227
+ "read": "none",
3228
+ "write": "none",
3229
+ "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.",
3230
+ "fields": [],
3231
+ "unsupported": [
3232
+ {
3233
+ "case": "read",
3234
+ "error": "UNSUPPORTED_BY_DESKTOP",
3235
+ "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.",
3236
+ "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."
3237
+ },
3238
+ {
3239
+ "case": "query",
3240
+ "error": "UNSUPPORTED_BY_DESKTOP",
3241
+ "note": "No QBO VendorType resource to mirror, so no query is exposed."
3242
+ },
3243
+ {
3244
+ "case": "create",
3245
+ "error": "UNSUPPORTED_BY_DESKTOP",
3246
+ "note": "No QBO VendorType resource to mirror, so no create is exposed."
3247
+ },
3248
+ {
3249
+ "case": "update",
3250
+ "error": "UNSUPPORTED_BY_DESKTOP",
3251
+ "note": "No QBO VendorType resource to mirror, so no update is exposed."
3252
+ },
3253
+ {
3254
+ "case": "delete",
3255
+ "error": "UNSUPPORTED_BY_DESKTOP",
3256
+ "note": "No QBO VendorType resource to mirror, so no delete is exposed."
3257
+ }
3258
+ ]
2920
3259
  }
2921
3260
  };
2922
3261
 
@@ -3045,10 +3384,10 @@ function registerTools(server, client) {
3045
3384
  server.registerTool(
3046
3385
  "query",
3047
3386
  {
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.",
3387
+ 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
3388
  inputSchema: {
3050
3389
  entity: entityArg,
3051
- where: z.string().optional().describe(`Single WHERE condition in QBO query grammar, e.g. "TxnDate >= '2026-01-01'"`),
3390
+ 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
3391
  startPosition: z.number().int().positive().optional(),
3053
3392
  maxResults: z.number().int().positive().max(1e3).optional()
3054
3393
  }
@@ -3154,10 +3493,34 @@ function registerTools(server, client) {
3154
3493
  }
3155
3494
  }
3156
3495
  );
3496
+ server.registerTool(
3497
+ "void",
3498
+ {
3499
+ 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.',
3500
+ inputSchema: {
3501
+ entity: entityArg,
3502
+ id: z.string(),
3503
+ syncToken: z.string().describe("Current SyncToken of the transaction (required; a stale token is rejected).")
3504
+ }
3505
+ },
3506
+ async ({ entity, id, syncToken }) => {
3507
+ const name = resolveEntityName(entity);
3508
+ if (!name) return unknownEntity(entity);
3509
+ if (!ENTITIES2[name].voidable) {
3510
+ const supported = Object.values(ENTITIES2).filter((e) => e.voidable).map((e) => e.name).join(", ");
3511
+ return fail(`${name} cannot be voided through TenkeyBridge. Voidable entities: ${supported}.`);
3512
+ }
3513
+ try {
3514
+ return ok(await accessor(client, name).void({ Id: id, SyncToken: syncToken }));
3515
+ } catch (err) {
3516
+ return failure(err);
3517
+ }
3518
+ }
3519
+ );
3157
3520
  }
3158
3521
 
3159
3522
  // src/version.ts
3160
- var PKG_VERSION = "0.2.0";
3523
+ var PKG_VERSION = "0.3.0";
3161
3524
 
3162
3525
  // src/server.ts
3163
3526
  var SERVER_NAME = "tenkeybridge";