@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.cjs CHANGED
@@ -202,7 +202,7 @@ var CATALOG = {
202
202
  {
203
203
  "qbo": "Query items",
204
204
  "support": "full",
205
- "note": "Full /query parity: the shared WHERE subset, STARTPOSITION/MAXRESULTS, iterator-backed deep pages."
205
+ "note": "Full /query parity: the same query language (AND-joined WHERE with =, !=, <, >, <=, >=, IN, LIKE; ORDERBY; COUNT(*); column lists; STARTPOSITION/MAXRESULTS), iterator-backed deep pages."
206
206
  },
207
207
  {
208
208
  "qbo": "per-item faults",
@@ -285,7 +285,7 @@ var CATALOG = {
285
285
  {
286
286
  "qbo": "CustomField",
287
287
  "support": "partial",
288
- "note": "Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only for now. Accepted and ignored on write."
288
+ "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'."
289
289
  },
290
290
  {
291
291
  "qbo": "CurrencyRef",
@@ -445,9 +445,9 @@ var CATALOG = {
445
445
  "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."
446
446
  },
447
447
  {
448
- "case": "query \u2014 WHERE on anything but Id",
448
+ "case": "query \u2014 WHERE on anything but Id, ORDERBY, COUNT(*), column lists",
449
449
  "error": "UNSUPPORTED_QUERY",
450
- "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.",
450
+ "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.",
451
451
  "workaround": "Fetch the window with SELECT * FROM Budget and filter the (at most six) rows client-side."
452
452
  },
453
453
  {
@@ -691,12 +691,51 @@ var CATALOG = {
691
691
  "note": "CompanyInfo is read/query only \u2014 there is exactly one company record, and Desktop has no API to create or modify it."
692
692
  },
693
693
  {
694
- "case": "Any WHERE clause, or STARTPOSITION/MAXRESULTS",
694
+ "case": "Any WHERE clause, ORDERBY, COUNT(*), column list, or STARTPOSITION/MAXRESULTS",
695
695
  "error": "UNSUPPORTED_QUERY",
696
696
  "note": "CompanyQueryRq takes no filters and always returns the single open company record. Use SELECT * FROM CompanyInfo."
697
697
  }
698
698
  ]
699
699
  },
700
+ "CreditCardPayment": {
701
+ "entity": "CreditCardPayment",
702
+ "verdict": "gap",
703
+ "group": "gaps",
704
+ "read": "none",
705
+ "write": "none",
706
+ "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.",
707
+ "fields": [],
708
+ "unsupported": [
709
+ {
710
+ "case": "read",
711
+ "error": "UNSUPPORTED_BY_DESKTOP",
712
+ "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.",
713
+ "workaround": "Read the same events as Transfer (ToAccountRef = the credit card account) or as a Purchase of type Check. Both are live in TenkeyBridge."
714
+ },
715
+ {
716
+ "case": "query",
717
+ "error": "UNSUPPORTED_BY_DESKTOP",
718
+ "note": "No Desktop CreditCardPayment exists to query; card paydowns appear under Transfer or Purchase.",
719
+ "workaround": "Query Transfer or Purchase and filter client-side by the credit card account."
720
+ },
721
+ {
722
+ "case": "create",
723
+ "error": "UNSUPPORTED_BY_DESKTOP",
724
+ "note": "TenkeyBridge will not guess which Desktop transaction to create in place of a CreditCardPayment.",
725
+ "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."
726
+ },
727
+ {
728
+ "case": "update",
729
+ "error": "UNSUPPORTED_BY_DESKTOP",
730
+ "note": "No Desktop CreditCardPayment to update; update the Transfer or Purchase instead."
731
+ },
732
+ {
733
+ "case": "delete",
734
+ "error": "UNSUPPORTED_BY_DESKTOP",
735
+ "note": "No Desktop CreditCardPayment to delete; delete the Purchase instead (Transfer cannot be deleted through qbXML)."
736
+ }
737
+ ]
738
+ },
700
739
  "CreditMemo": {
701
740
  "entity": "CreditMemo",
702
741
  "verdict": "live",
@@ -742,6 +781,11 @@ var CATALOG = {
742
781
  "qbo": "PrivateNote",
743
782
  "support": "full"
744
783
  },
784
+ {
785
+ "qbo": "CustomField",
786
+ "support": "partial",
787
+ "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."
788
+ },
745
789
  {
746
790
  "qbo": "CustomerMemo",
747
791
  "support": "full",
@@ -750,12 +794,12 @@ var CATALOG = {
750
794
  {
751
795
  "qbo": "Line",
752
796
  "support": "partial",
753
- "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)."
797
+ "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."
754
798
  },
755
799
  {
756
800
  "qbo": "TxnTaxDetail",
757
801
  "support": "partial",
758
- "note": "Set TxnTaxCodeRef explicitly; computed TotalTax alone is rejected. Updatable via sparse update (#55)."
802
+ "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)."
759
803
  },
760
804
  {
761
805
  "qbo": "LinkedTxn",
@@ -785,15 +829,10 @@ var CATALOG = {
785
829
  }
786
830
  ],
787
831
  "unsupported": [
788
- {
789
- "case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
790
- "error": "UNSUPPORTED_BY_DESKTOP",
791
- "note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
792
- },
793
832
  {
794
833
  "case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
795
834
  "error": "MISSING_REQUIRED_DESKTOP_ITEM",
796
- "note": "Desktop discounts are items. Create a discount item in the company file and reference it as DiscountLineDetail.ItemRef. See COMPATIBILITY.md."
835
+ "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."
797
836
  },
798
837
  {
799
838
  "case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly",
@@ -918,7 +957,7 @@ var CATALOG = {
918
957
  {
919
958
  "qbo": "CustomField",
920
959
  "support": "partial",
921
- "note": "Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only for now. Accepted and ignored on write."
960
+ "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)."
922
961
  },
923
962
  {
924
963
  "qbo": "CurrencyRef",
@@ -987,9 +1026,10 @@ var CATALOG = {
987
1026
  ],
988
1027
  "unsupported": [
989
1028
  {
990
- "case": "Create or update",
1029
+ "case": "Create, update or deactivate",
991
1030
  "error": "UNSUPPORTED_BY_DESKTOP",
992
- "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."
1031
+ "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.",
1032
+ "workaround": "Create, rename or deactivate the type in QuickBooks Desktop itself; the change shows up on the next read."
993
1033
  }
994
1034
  ]
995
1035
  },
@@ -1054,12 +1094,12 @@ var CATALOG = {
1054
1094
  {
1055
1095
  "qbo": "Line",
1056
1096
  "support": "partial",
1057
- "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."
1097
+ "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."
1058
1098
  },
1059
1099
  {
1060
1100
  "qbo": "CashBack",
1061
- "support": "full",
1062
- "note": "Maps to Desktop CashBackInfo."
1101
+ "support": "partial",
1102
+ "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."
1063
1103
  },
1064
1104
  {
1065
1105
  "qbo": "TotalAmt",
@@ -1086,8 +1126,8 @@ var CATALOG = {
1086
1126
  "verdict": "live",
1087
1127
  "group": "lists",
1088
1128
  "read": "full",
1089
- "write": "none",
1090
- "headline": "Read/query only \u2014 no Desktop write path this release; payroll aggregates out of scope",
1129
+ "write": "partial",
1130
+ "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",
1091
1131
  "fields": [
1092
1132
  {
1093
1133
  "qbo": "GivenName",
@@ -1107,7 +1147,8 @@ var CATALOG = {
1107
1147
  },
1108
1148
  {
1109
1149
  "qbo": "DisplayName",
1110
- "support": "full"
1150
+ "support": "partial",
1151
+ "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)."
1111
1152
  },
1112
1153
  {
1113
1154
  "qbo": "PrintOnCheckName",
@@ -1116,7 +1157,8 @@ var CATALOG = {
1116
1157
  },
1117
1158
  {
1118
1159
  "qbo": "Active",
1119
- "support": "full"
1160
+ "support": "full",
1161
+ "note": "Deactivate with a sparse update of Active:false; Desktop employees cannot be deleted through qbXML."
1120
1162
  },
1121
1163
  {
1122
1164
  "qbo": "PrimaryPhone",
@@ -1132,7 +1174,8 @@ var CATALOG = {
1132
1174
  },
1133
1175
  {
1134
1176
  "qbo": "PrimaryAddr",
1135
- "support": "full"
1177
+ "support": "full",
1178
+ "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."
1136
1179
  },
1137
1180
  {
1138
1181
  "qbo": "HiredDate",
@@ -1148,12 +1191,24 @@ var CATALOG = {
1148
1191
  },
1149
1192
  {
1150
1193
  "qbo": "Gender",
1151
- "support": "full"
1194
+ "support": "full",
1195
+ "note": "Male or Female."
1196
+ },
1197
+ {
1198
+ "qbo": "SSN",
1199
+ "support": "partial",
1200
+ "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."
1152
1201
  },
1153
1202
  {
1154
1203
  "qbo": "CustomField",
1155
1204
  "support": "partial",
1156
- "note": "Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only."
1205
+ "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)."
1206
+ },
1207
+ {
1208
+ "qbo": "EmployeeNumber",
1209
+ "support": "none",
1210
+ "note": "Desktop's Employee record has no employee-number field; keep the number in your own system keyed by the TenkeyBridge Id.",
1211
+ "error": "UNSUPPORTED_BY_DESKTOP"
1157
1212
  },
1158
1213
  {
1159
1214
  "qbo": "TargetBonus",
@@ -1170,9 +1225,42 @@ var CATALOG = {
1170
1225
  ],
1171
1226
  "unsupported": [
1172
1227
  {
1173
- "case": "Create or update",
1228
+ "case": "Delete",
1229
+ "error": "UNSUPPORTED_BY_DESKTOP",
1230
+ "note": "QBO employees are deactivated, not deleted; TenkeyBridge follows that (sparse update with Active:false)."
1231
+ },
1232
+ {
1233
+ "case": "Payroll fields",
1234
+ "error": "UNSUPPORTED_BY_DESKTOP",
1235
+ "note": "Pay rates, pay periods, wage items and other EmployeePayrollInfo content are license-gated in Desktop and not exposed for read or write."
1236
+ }
1237
+ ]
1238
+ },
1239
+ "Entitlements": {
1240
+ "entity": "Entitlements",
1241
+ "verdict": "live",
1242
+ "group": "platform",
1243
+ "read": "partial",
1244
+ "write": "none",
1245
+ "headline": "GET /v3/company/{realmId}/entitlements \u2014 a static, honest capability document for a QuickBooks Desktop company (no per-file subscription data).",
1246
+ "usage": "GET /v3/company/{realmId}/entitlements",
1247
+ "fields": [
1248
+ {
1249
+ "qbo": "Entitlements.platform",
1250
+ "support": "full",
1251
+ "note": 'Always "QuickBooks Desktop" \u2014 TenkeyBridge talks to Desktop, never to a QBO subscription.'
1252
+ },
1253
+ {
1254
+ "qbo": "Entitlements.features",
1255
+ "support": "partial",
1256
+ "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."
1257
+ }
1258
+ ],
1259
+ "unsupported": [
1260
+ {
1261
+ "case": "QBO subscription tier, seats and add-ons",
1174
1262
  "error": "UNSUPPORTED_BY_DESKTOP",
1175
- "note": "Employee is read/query only this release; TenkeyBridge doesn't expose a Desktop write path for it."
1263
+ "note": "Desktop has no subscription entitlements exposed over qbXML; the response says so explicitly rather than inventing values."
1176
1264
  }
1177
1265
  ]
1178
1266
  },
@@ -1182,7 +1270,7 @@ var CATALOG = {
1182
1270
  "group": "sales",
1183
1271
  "read": "full",
1184
1272
  "write": "partial",
1185
- "headline": "Same shape as Invoice; no expiration/acceptance tracking",
1273
+ "headline": "Same shape as Invoice; expiration date and active/closed status, no acceptance tracking",
1186
1274
  "fields": [
1187
1275
  {
1188
1276
  "qbo": "CustomerRef",
@@ -1215,7 +1303,18 @@ var CATALOG = {
1215
1303
  },
1216
1304
  {
1217
1305
  "qbo": "DueDate",
1218
- "support": "full"
1306
+ "support": "full",
1307
+ "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."
1308
+ },
1309
+ {
1310
+ "qbo": "ExpirationDate",
1311
+ "support": "full",
1312
+ "note": "Maps to the Desktop estimate DueDate. Read and write."
1313
+ },
1314
+ {
1315
+ "qbo": "TxnStatus",
1316
+ "support": "partial",
1317
+ "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."
1219
1318
  },
1220
1319
  {
1221
1320
  "qbo": "PrivateNote",
@@ -1229,12 +1328,12 @@ var CATALOG = {
1229
1328
  {
1230
1329
  "qbo": "Line",
1231
1330
  "support": "partial",
1232
- "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)."
1331
+ "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."
1233
1332
  },
1234
1333
  {
1235
1334
  "qbo": "TxnTaxDetail",
1236
1335
  "support": "partial",
1237
- "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)."
1336
+ "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)."
1238
1337
  },
1239
1338
  {
1240
1339
  "qbo": "LinkedTxn",
@@ -1244,7 +1343,7 @@ var CATALOG = {
1244
1343
  {
1245
1344
  "qbo": "CustomField",
1246
1345
  "support": "partial",
1247
- "note": "Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only for now. Accepted and ignored on write."
1346
+ "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."
1248
1347
  },
1249
1348
  {
1250
1349
  "qbo": "TotalAmt",
@@ -1261,12 +1360,6 @@ var CATALOG = {
1261
1360
  "support": "partial",
1262
1361
  "note": "Accepted and ignored \u2014 Desktop manages this itself; multi-currency mapping lands later."
1263
1362
  },
1264
- {
1265
- "qbo": "ExpirationDate",
1266
- "support": "none",
1267
- "note": "Desktop estimates have no expiration date. Track it in your own system if needed.",
1268
- "error": "UNSUPPORTED_BY_DESKTOP"
1269
- },
1270
1363
  {
1271
1364
  "qbo": "AcceptedBy",
1272
1365
  "support": "none",
@@ -1278,24 +1371,13 @@ var CATALOG = {
1278
1371
  "support": "none",
1279
1372
  "note": "Desktop estimates have no accepted-date field. Track acceptance in your own system.",
1280
1373
  "error": "UNSUPPORTED_BY_DESKTOP"
1281
- },
1282
- {
1283
- "qbo": "TxnStatus",
1284
- "support": "none",
1285
- "note": "Desktop estimates have no status field matching QBO's Pending/Accepted/Closed/Rejected enum. Track status in your own system.",
1286
- "error": "UNSUPPORTED_BY_DESKTOP"
1287
1374
  }
1288
1375
  ],
1289
1376
  "unsupported": [
1290
- {
1291
- "case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
1292
- "error": "UNSUPPORTED_BY_DESKTOP",
1293
- "note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
1294
- },
1295
1377
  {
1296
1378
  "case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
1297
1379
  "error": "MISSING_REQUIRED_DESKTOP_ITEM",
1298
- "note": "Desktop discounts are items. Create a discount item in the company file and reference it as DiscountLineDetail.ItemRef. See COMPATIBILITY.md."
1380
+ "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."
1299
1381
  },
1300
1382
  {
1301
1383
  "case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly",
@@ -1352,6 +1434,65 @@ var CATALOG = {
1352
1434
  }
1353
1435
  ]
1354
1436
  },
1437
+ "InventoryAdjustment": {
1438
+ "entity": "InventoryAdjustment",
1439
+ "verdict": "live",
1440
+ "group": "purchasing",
1441
+ "read": "full",
1442
+ "write": "partial",
1443
+ "headline": "Quantity adjustments to inventory items \u2014 create, read, header update and delete (live-verified); line edits need delete + re-create",
1444
+ "fields": [
1445
+ {
1446
+ "qbo": "AdjustAccountRef",
1447
+ "support": "full",
1448
+ "note": "Desktop AccountRef \u2014 the adjustment (offset) account. Required on create."
1449
+ },
1450
+ {
1451
+ "qbo": "TxnDate",
1452
+ "support": "full"
1453
+ },
1454
+ {
1455
+ "qbo": "DocNumber",
1456
+ "support": "full",
1457
+ "note": "Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050)."
1458
+ },
1459
+ {
1460
+ "qbo": "PrivateNote",
1461
+ "support": "full",
1462
+ "note": "Desktop Memo."
1463
+ },
1464
+ {
1465
+ "qbo": "Line",
1466
+ "support": "partial",
1467
+ "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."
1468
+ },
1469
+ {
1470
+ "qbo": "CurrencyRef",
1471
+ "support": "none",
1472
+ "note": "Multicurrency not yet supported.",
1473
+ "error": "UNSUPPORTED_BY_DESKTOP"
1474
+ },
1475
+ {
1476
+ "qbo": "ExchangeRate",
1477
+ "support": "none",
1478
+ "note": "Multicurrency not yet supported.",
1479
+ "error": "UNSUPPORTED_BY_DESKTOP"
1480
+ }
1481
+ ],
1482
+ "unsupported": [
1483
+ {
1484
+ "case": "Line update",
1485
+ "error": "UNSUPPORTED_BY_DESKTOP",
1486
+ "note": "A sparse update can change header fields only (AdjustAccountRef, TxnDate, DocNumber, PrivateNote). To change quantities, delete the adjustment and create a new one.",
1487
+ "workaround": "POST ?operation=delete with the Id, then create a corrected InventoryAdjustment."
1488
+ },
1489
+ {
1490
+ "case": "Absolute quantity (NewQuantity) and value adjustments",
1491
+ "error": "UNSUPPORTED_BY_DESKTOP",
1492
+ "note": "QBO's InventoryAdjustment only has QtyDiff (a delta), so Desktop's NewQuantity/NewValue forms have no QBO field to map from."
1493
+ }
1494
+ ]
1495
+ },
1355
1496
  "Invoice": {
1356
1497
  "entity": "Invoice",
1357
1498
  "verdict": "live",
@@ -1413,12 +1554,12 @@ var CATALOG = {
1413
1554
  {
1414
1555
  "qbo": "Line",
1415
1556
  "support": "partial",
1416
- "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)."
1557
+ "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."
1417
1558
  },
1418
1559
  {
1419
1560
  "qbo": "TxnTaxDetail",
1420
1561
  "support": "partial",
1421
- "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)."
1562
+ "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)."
1422
1563
  },
1423
1564
  {
1424
1565
  "qbo": "LinkedTxn",
@@ -1428,7 +1569,7 @@ var CATALOG = {
1428
1569
  {
1429
1570
  "qbo": "CustomField",
1430
1571
  "support": "partial",
1431
- "note": "Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only for now. Accepted and ignored on write."
1572
+ "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)."
1432
1573
  },
1433
1574
  {
1434
1575
  "qbo": "TotalAmt",
@@ -1453,19 +1594,14 @@ var CATALOG = {
1453
1594
  {
1454
1595
  "qbo": "operation=void",
1455
1596
  "support": "partial",
1456
- "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)."
1597
+ "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)."
1457
1598
  }
1458
1599
  ],
1459
1600
  "unsupported": [
1460
- {
1461
- "case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
1462
- "error": "UNSUPPORTED_BY_DESKTOP",
1463
- "note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
1464
- },
1465
1601
  {
1466
1602
  "case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
1467
1603
  "error": "MISSING_REQUIRED_DESKTOP_ITEM",
1468
- "note": "Desktop discounts are items. Create a discount item in the company file and reference it as DiscountLineDetail.ItemRef. See COMPATIBILITY.md."
1604
+ "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."
1469
1605
  },
1470
1606
  {
1471
1607
  "case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly (e.g. SubTotalLineDetail)",
@@ -1479,72 +1615,83 @@ var CATALOG = {
1479
1615
  "verdict": "live",
1480
1616
  "group": "sales",
1481
1617
  "read": "partial",
1482
- "write": "none",
1618
+ "write": "partial",
1483
1619
  "headline": "One Item becomes several Desktop item types",
1484
1620
  "fields": [
1485
1621
  {
1486
1622
  "qbo": "Name",
1487
- "support": "full"
1623
+ "support": "full",
1624
+ "note": "Desktop item Name is the leaf name (max 31 characters); FullyQualifiedName is derived."
1488
1625
  },
1489
1626
  {
1490
1627
  "qbo": "FullyQualifiedName",
1491
1628
  "support": "full",
1492
- "note": "Read-only in this release."
1629
+ "note": "Read-only; derived from the Desktop FullName. Echoed values on update are ignored."
1493
1630
  },
1494
1631
  {
1495
1632
  "qbo": "Active",
1496
1633
  "support": "full",
1497
- "note": "Read-only in this release."
1634
+ "note": "Deactivate with a sparse update setting Active to false; items are never deleted."
1498
1635
  },
1499
1636
  {
1500
1637
  "qbo": "Type",
1501
1638
  "support": "partial",
1502
- "note": "Service, NonInventory, Inventory, Group map; other Desktop types are omitted from query results."
1639
+ "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."
1503
1640
  },
1504
1641
  {
1505
1642
  "qbo": "Description",
1506
1643
  "support": "full",
1507
- "note": "Read-only in this release."
1644
+ "note": "Desktop sales description: SalesOrPurchase/Desc, SalesAndPurchase/SalesDesc, or SalesDesc on Inventory."
1508
1645
  },
1509
1646
  {
1510
1647
  "qbo": "UnitPrice",
1511
1648
  "support": "full",
1512
- "note": "Read-only in this release."
1649
+ "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."
1513
1650
  },
1514
1651
  {
1515
1652
  "qbo": "Sku",
1516
1653
  "support": "partial",
1517
- "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."
1654
+ "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."
1655
+ },
1656
+ {
1657
+ "qbo": "TrackQtyOnHand",
1658
+ "support": "partial",
1659
+ "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."
1518
1660
  },
1519
1661
  {
1520
1662
  "qbo": "QtyOnHand",
1521
- "support": "full",
1522
- "note": "Read-only in this release."
1663
+ "support": "partial",
1664
+ "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."
1665
+ },
1666
+ {
1667
+ "qbo": "InvStartDate",
1668
+ "support": "partial",
1669
+ "note": "Write-only, create only (Desktop InventoryDate). Not returned on read."
1523
1670
  },
1524
1671
  {
1525
1672
  "qbo": "IncomeAccountRef",
1526
1673
  "support": "full",
1527
- "note": "Read-only in this release."
1674
+ "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)."
1528
1675
  },
1529
1676
  {
1530
1677
  "qbo": "ExpenseAccountRef",
1531
1678
  "support": "partial",
1532
- "note": "Inventory: COGSAccountRef. Two-sided Service/NonInventory (SalesAndPurchase): ExpenseAccountRef. One-sided Service/NonInventory have no expense account."
1679
+ "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."
1533
1680
  },
1534
1681
  {
1535
1682
  "qbo": "AssetAccountRef",
1536
1683
  "support": "full",
1537
- "note": "Read-only in this release; Inventory only."
1684
+ "note": "Inventory only; required on create."
1538
1685
  },
1539
1686
  {
1540
1687
  "qbo": "PurchaseDesc",
1541
1688
  "support": "full",
1542
- "note": "Inventory and two-sided Service/NonInventory (SalesAndPurchase)."
1689
+ "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."
1543
1690
  },
1544
1691
  {
1545
1692
  "qbo": "PurchaseCost",
1546
1693
  "support": "full",
1547
- "note": "Inventory and two-sided Service/NonInventory (SalesAndPurchase)."
1694
+ "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."
1548
1695
  },
1549
1696
  {
1550
1697
  "qbo": "PrefVendorRef",
@@ -1554,29 +1701,54 @@ var CATALOG = {
1554
1701
  {
1555
1702
  "qbo": "ParentRef",
1556
1703
  "support": "full",
1557
- "note": "Desktop item hierarchy."
1704
+ "note": "Desktop item hierarchy; sub-items are FullName paths (Parent:Child)."
1558
1705
  },
1559
1706
  {
1560
1707
  "qbo": "SubItem",
1561
1708
  "support": "full",
1562
- "note": "Derived from Desktop Sublevel."
1709
+ "note": "Derived from Desktop Sublevel; read-only."
1710
+ },
1711
+ {
1712
+ "qbo": "ClassRef",
1713
+ "support": "full",
1714
+ "note": "Desktop ClassRef."
1715
+ },
1716
+ {
1717
+ "qbo": "SalesTaxCodeRef",
1718
+ "support": "full",
1719
+ "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."
1720
+ },
1721
+ {
1722
+ "qbo": "Taxable",
1723
+ "support": "partial",
1724
+ "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."
1563
1725
  },
1564
1726
  {
1565
1727
  "qbo": "CustomField",
1566
1728
  "support": "partial",
1567
- "note": "Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only for now."
1729
+ "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)."
1568
1730
  }
1569
1731
  ],
1570
1732
  "unsupported": [
1571
1733
  {
1572
- "case": "Item types other than Service, NonInventory, Inventory, and Group (assemblies, discounts, sales tax items, payment items, fixed assets, other charge, subtotal)",
1734
+ "case": "Item types other than Service, NonInventory, Inventory, Group, other-charge and discount (assemblies, sales tax items, payment items, fixed assets, subtotal)",
1573
1735
  "error": "UNSUPPORTED_BY_DESKTOP",
1574
1736
  "note": "Omitted from query results; a direct get by id on one of these Desktop items returns a 422 UNSUPPORTED_BY_DESKTOP fault."
1575
1737
  },
1576
1738
  {
1577
- "case": "Item create/update",
1739
+ "case": "Creating or updating Group (and Category) items, or updating discount items",
1740
+ "error": "UNSUPPORTED_BY_DESKTOP",
1741
+ "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."
1742
+ },
1743
+ {
1744
+ "case": "Adding purchase-side fields to an existing sales-only Service/NonInventory item",
1578
1745
  "error": "UNSUPPORTED_BY_DESKTOP",
1579
- "note": "Lands in a later release."
1746
+ "note": "Desktop rejects the SalesOrPurchase to SalesAndPurchase conversion (error 3170). Include PurchaseDesc, PurchaseCost, ExpenseAccountRef or PrefVendorRef when the item is created."
1747
+ },
1748
+ {
1749
+ "case": "Changing QtyOnHand after creation",
1750
+ "error": "UNSUPPORTED_BY_DESKTOP",
1751
+ "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.)"
1580
1752
  }
1581
1753
  ]
1582
1754
  },
@@ -1646,7 +1818,7 @@ var CATALOG = {
1646
1818
  {
1647
1819
  "qbo": "Line",
1648
1820
  "support": "partial",
1649
- "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."
1821
+ "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."
1650
1822
  },
1651
1823
  {
1652
1824
  "qbo": "TotalAmt",
@@ -1702,7 +1874,7 @@ var CATALOG = {
1702
1874
  {
1703
1875
  "qbo": "PaymentRefNum",
1704
1876
  "support": "full",
1705
- "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."
1877
+ "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)."
1706
1878
  },
1707
1879
  {
1708
1880
  "qbo": "TotalAmt",
@@ -1724,7 +1896,7 @@ var CATALOG = {
1724
1896
  {
1725
1897
  "qbo": "Line",
1726
1898
  "support": "partial",
1727
- "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."
1899
+ "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."
1728
1900
  },
1729
1901
  {
1730
1902
  "qbo": "UnappliedAmt",
@@ -1871,7 +2043,7 @@ var CATALOG = {
1871
2043
  "note": "Preferences is read/query only in QBO and Desktop \u2014 there is no PreferencesAdd/Mod."
1872
2044
  },
1873
2045
  {
1874
- "case": "Any WHERE clause, or STARTPOSITION/MAXRESULTS",
2046
+ "case": "Any WHERE clause, ORDERBY, COUNT(*), column list, or STARTPOSITION/MAXRESULTS",
1875
2047
  "error": "UNSUPPORTED_QUERY",
1876
2048
  "note": "PreferencesQueryRq takes no filters and always returns the single open company PreferencesRet. Use SELECT * FROM Preferences."
1877
2049
  }
@@ -1912,7 +2084,7 @@ var CATALOG = {
1912
2084
  {
1913
2085
  "qbo": "DocNumber",
1914
2086
  "support": "full",
1915
- "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."
2087
+ "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."
1916
2088
  },
1917
2089
  {
1918
2090
  "qbo": "PrivateNote",
@@ -1948,7 +2120,7 @@ var CATALOG = {
1948
2120
  {
1949
2121
  "qbo": "operation=void",
1950
2122
  "support": "partial",
1951
- "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)."
2123
+ "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)."
1952
2124
  }
1953
2125
  ],
1954
2126
  "unsupported": [
@@ -2009,10 +2181,15 @@ var CATALOG = {
2009
2181
  "qbo": "PrivateNote",
2010
2182
  "support": "full"
2011
2183
  },
2184
+ {
2185
+ "qbo": "CustomField",
2186
+ "support": "partial",
2187
+ "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)."
2188
+ },
2012
2189
  {
2013
2190
  "qbo": "Line",
2014
2191
  "support": "partial",
2015
- "note": "ItemBasedExpenseLineDetail only (PurchaseOrderLineAdd). AccountBasedExpenseLineDetail returns UNSUPPORTED_BY_DESKTOP. ReceivedQty maps from ReceivedQuantity on read (read-only). Sparse updates cannot modify lines yet."
2192
+ "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."
2016
2193
  },
2017
2194
  {
2018
2195
  "qbo": "TotalAmt",
@@ -2022,7 +2199,7 @@ var CATALOG = {
2022
2199
  {
2023
2200
  "qbo": "POStatus",
2024
2201
  "support": "partial",
2025
- "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."
2202
+ "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."
2026
2203
  },
2027
2204
  {
2028
2205
  "qbo": "APAccountRef",
@@ -2155,7 +2332,7 @@ var CATALOG = {
2155
2332
  {
2156
2333
  "case": "Item-line RefundReceipt (SalesItemLineDetail etc.)",
2157
2334
  "error": "UNSUPPORTED_BY_DESKTOP",
2158
- "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."
2335
+ "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."
2159
2336
  },
2160
2337
  {
2161
2338
  "case": "Update / sparse update",
@@ -2207,46 +2384,103 @@ var CATALOG = {
2207
2384
  "group": "platform",
2208
2385
  "read": "partial",
2209
2386
  "write": "none",
2210
- "headline": "Five QBO-compatible reports translated live from Desktop's report engine.",
2211
- "usage": "GET /v3/company/{realmId}/reports/ProfitAndLoss?start_date=2026-01-01&end_date=2026-12-31",
2387
+ "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.",
2388
+ "usage": "GET /v3/company/{realmId}/reports/ProfitAndLoss?start_date=2026-01-01&end_date=2026-12-31&summarize_column_by=Month",
2212
2389
  "fields": [
2213
2390
  {
2214
2391
  "qbo": "ProfitAndLoss / BalanceSheet / TrialBalance",
2215
2392
  "support": "full",
2216
- "note": "GeneralSummaryReportQueryRq (ProfitAndLossStandard / BalanceSheetStandard / TrialBalance). Values verbatim from Desktop \u2014 no recomputation."
2393
+ "note": "GeneralSummaryReportQueryRq (ProfitAndLossStandard / BalanceSheetStandard / TrialBalance). Values verbatim from Desktop \u2014 no recomputation. BalanceSheet also takes report_date as an as-of."
2217
2394
  },
2218
2395
  {
2219
2396
  "qbo": "AgedReceivables / AgedPayables",
2220
2397
  "support": "full",
2221
2398
  "note": "AgingReportQueryRq (ARAgingSummary / APAgingSummary). Desktop's file-configured aging buckets come back as columns, honestly."
2222
2399
  },
2400
+ {
2401
+ "qbo": "CustomerBalance / VendorBalance",
2402
+ "support": "full",
2403
+ "note": "CustomerBalanceSummary / VendorBalanceSummary. As-of (report_date). Month (and the other period splits) are accepted; Desktop refuses ReportBasis here."
2404
+ },
2405
+ {
2406
+ "qbo": "CustomerIncome / VendorExpenses",
2407
+ "support": "full",
2408
+ "note": "IncomeByCustomerSummary / ExpenseByVendorSummary."
2409
+ },
2410
+ {
2411
+ "qbo": "CustomerSales / ItemSales (aliases SalesByCustomer / SalesByProduct)",
2412
+ "support": "full",
2413
+ "note": "SalesByCustomerSummary / SalesByItemSummary. ItemSales carries Desktop's extra columns (% of Sales, Avg Price, COGS, Gross Margin)."
2414
+ },
2415
+ {
2416
+ "qbo": "InventoryValuationSummary",
2417
+ "support": "full",
2418
+ "note": "InventoryValuationSummary, as-of (report_date), item filter only. Desktop refuses ReportBasis and SummarizeColumnsBy here."
2419
+ },
2420
+ {
2421
+ "qbo": "ProfitAndLossDetail / GeneralLedger",
2422
+ "support": "partial",
2423
+ "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)."
2424
+ },
2425
+ {
2426
+ "qbo": "JournalReport / TransactionList",
2427
+ "support": "partial",
2428
+ "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."
2429
+ },
2430
+ {
2431
+ "qbo": "CustomerBalanceDetail / VendorBalanceDetail",
2432
+ "support": "partial",
2433
+ "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."
2434
+ },
2435
+ {
2436
+ "qbo": "AgedReceivableDetail / AgedPayableDetail",
2437
+ "support": "partial",
2438
+ "note": "AgingReportQueryRq ARAgingDetail / APAgingDetail, as-of (report_date), with the receivable (customer) or payable (vendor) filter. ColKeys best-effort."
2439
+ },
2223
2440
  {
2224
2441
  "qbo": "start_date / end_date / date_macro",
2225
2442
  "support": "full",
2226
- "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."
2443
+ "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."
2227
2444
  },
2228
2445
  {
2229
2446
  "qbo": "report_date",
2230
2447
  "support": "full",
2231
- "note": "The aging reports are as-of a single date. Omit it and QBO's default (today) is used."
2448
+ "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."
2232
2449
  },
2233
2450
  {
2234
2451
  "qbo": "accounting_method",
2235
2452
  "support": "partial",
2236
- "note": "Cash/Accrual on the three summary reports. Aging reports reject it \u2014 qbXML has no ReportBasis there.",
2453
+ "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.",
2454
+ "error": "REPORT_UNSUPPORTED_OPTION"
2455
+ },
2456
+ {
2457
+ "qbo": "summarize_column_by",
2458
+ "support": "partial",
2459
+ "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.",
2460
+ "error": "REPORT_UNSUPPORTED_OPTION"
2461
+ },
2462
+ {
2463
+ "qbo": "customer / vendor / item / class",
2464
+ "support": "partial",
2465
+ "note": "Comma-separated Ids \u2192 ReportEntityFilter (customer + vendor) / ReportItemFilter / ReportClassFilter. AR reports accept customer only, AP reports vendor only; InventoryValuationSummary accepts item only.",
2237
2466
  "error": "REPORT_UNSUPPORTED_OPTION"
2238
2467
  },
2239
2468
  {
2240
2469
  "qbo": "Column titles",
2241
2470
  "support": "partial",
2242
- "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."
2471
+ "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)."
2243
2472
  }
2244
2473
  ],
2245
2474
  "unsupported": [
2246
2475
  {
2247
- "case": "columns / customer / vendor / item / class / department / qzurl / adjusted_gain_loss",
2476
+ "case": "CashFlow",
2477
+ "error": "REPORT_UNKNOWN",
2478
+ "note": "QuickBooks Desktop's SDK has no cash-flow report (StatementOfCashFlows is refused with 3110 on every qbXML version)."
2479
+ },
2480
+ {
2481
+ "case": "columns / department / qzurl / adjusted_gain_loss",
2248
2482
  "error": "REPORT_UNSUPPORTED_OPTION",
2249
- "note": "Column and filter customization is v2. Desktop returns its standard report layout."
2483
+ "note": "Column selection has no qbXML equivalent; Desktop has no departments (use class); QuickZoom URLs and multicurrency gain/loss adjustment are QBO-only."
2250
2484
  },
2251
2485
  {
2252
2486
  "case": "aging_period / num_periods / aging_method",
@@ -2254,14 +2488,14 @@ var CATALOG = {
2254
2488
  "note": "Desktop aging buckets are company-file configuration, not request parameters."
2255
2489
  },
2256
2490
  {
2257
- "case": "summarize_column_by other than Total",
2491
+ "case": "summarize_column_by = Employees / ProductsAndServices / Departments / Location",
2258
2492
  "error": "REPORT_UNSUPPORTED_OPTION",
2259
- "note": "qbXML SummarizeColumnsBy exists \u2014 clean v2 upgrade path."
2493
+ "note": "qbXML's SummarizeColumnsBy has no per-item, per-employee or per-location split (ItemType splits by item type, not by item)."
2260
2494
  },
2261
2495
  {
2262
- "case": "other QBO report names (CashFlow, detail/aging-detail variants, \u2026)",
2496
+ "case": "other QBO report names (class/department sales, tax, account list, ...)",
2263
2497
  "error": "REPORT_UNKNOWN",
2264
- "note": "Planned. The fault lists the five supported reports."
2498
+ "note": "Not shipped. The fault lists the supported reports."
2265
2499
  }
2266
2500
  ]
2267
2501
  },
@@ -2318,12 +2552,12 @@ var CATALOG = {
2318
2552
  {
2319
2553
  "qbo": "Line",
2320
2554
  "support": "partial",
2321
- "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)."
2555
+ "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."
2322
2556
  },
2323
2557
  {
2324
2558
  "qbo": "TxnTaxDetail",
2325
2559
  "support": "partial",
2326
- "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)."
2560
+ "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)."
2327
2561
  },
2328
2562
  {
2329
2563
  "qbo": "LinkedTxn",
@@ -2333,7 +2567,7 @@ var CATALOG = {
2333
2567
  {
2334
2568
  "qbo": "CustomField",
2335
2569
  "support": "partial",
2336
- "note": "Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only for now. Accepted and ignored on write."
2570
+ "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."
2337
2571
  },
2338
2572
  {
2339
2573
  "qbo": "TotalAmt",
@@ -2356,11 +2590,42 @@ var CATALOG = {
2356
2590
  "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)."
2357
2591
  }
2358
2592
  ],
2593
+ "unsupported": []
2594
+ },
2595
+ "Tag": {
2596
+ "entity": "Tag",
2597
+ "verdict": "gap",
2598
+ "group": "gaps",
2599
+ "read": "none",
2600
+ "write": "none",
2601
+ "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.",
2602
+ "fields": [],
2359
2603
  "unsupported": [
2360
2604
  {
2361
- "case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
2605
+ "case": "read",
2606
+ "error": "UNSUPPORTED_BY_DESKTOP",
2607
+ "note": "qbXML has no Tag or TagClassification message; Desktop has no equivalent many-to-many labeling of transactions.",
2608
+ "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."
2609
+ },
2610
+ {
2611
+ "case": "query",
2612
+ "error": "UNSUPPORTED_BY_DESKTOP",
2613
+ "note": "There is no Desktop tag list to query."
2614
+ },
2615
+ {
2616
+ "case": "create",
2617
+ "error": "UNSUPPORTED_BY_DESKTOP",
2618
+ "note": "Desktop cannot store tags, so none can be created."
2619
+ },
2620
+ {
2621
+ "case": "update",
2622
+ "error": "UNSUPPORTED_BY_DESKTOP",
2623
+ "note": "Desktop cannot store tags, so none can be updated."
2624
+ },
2625
+ {
2626
+ "case": "delete",
2362
2627
  "error": "UNSUPPORTED_BY_DESKTOP",
2363
- "note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
2628
+ "note": "Desktop cannot store tags, so none can be deleted."
2364
2629
  }
2365
2630
  ]
2366
2631
  },
@@ -2475,6 +2740,43 @@ var CATALOG = {
2475
2740
  ],
2476
2741
  "unsupported": []
2477
2742
  },
2743
+ "TaxPayment": {
2744
+ "entity": "TaxPayment",
2745
+ "verdict": "planned",
2746
+ "group": "planned",
2747
+ "read": "none",
2748
+ "write": "none",
2749
+ "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.",
2750
+ "fields": [],
2751
+ "unsupported": [
2752
+ {
2753
+ "case": "read",
2754
+ "error": "UNSUPPORTED_BY_DESKTOP",
2755
+ "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.",
2756
+ "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."
2757
+ },
2758
+ {
2759
+ "case": "query",
2760
+ "error": "UNSUPPORTED_BY_DESKTOP",
2761
+ "note": "Not implemented; see read."
2762
+ },
2763
+ {
2764
+ "case": "create",
2765
+ "error": "UNSUPPORTED_BY_DESKTOP",
2766
+ "note": "QBO's TaxPayment is read-only via the API; TenkeyBridge matches that."
2767
+ },
2768
+ {
2769
+ "case": "update",
2770
+ "error": "UNSUPPORTED_BY_DESKTOP",
2771
+ "note": "QBO's TaxPayment is read-only via the API; TenkeyBridge matches that."
2772
+ },
2773
+ {
2774
+ "case": "delete",
2775
+ "error": "UNSUPPORTED_BY_DESKTOP",
2776
+ "note": "QBO's TaxPayment is read-only via the API; TenkeyBridge matches that."
2777
+ }
2778
+ ]
2779
+ },
2478
2780
  "TaxRate": {
2479
2781
  "entity": "TaxRate",
2480
2782
  "verdict": "live",
@@ -2795,7 +3097,7 @@ var CATALOG = {
2795
3097
  {
2796
3098
  "case": "Delete",
2797
3099
  "error": "UNSUPPORTED_BY_DESKTOP",
2798
- "note": '"Transfer" is not a valid qbXML TxnDelType enum value, so delete is not wired for this entity.'
3100
+ "note": '"Transfer" is not a valid qbXML TxnDelType enum value (verified live: status 3110), so delete is not wired for this entity.'
2799
3101
  }
2800
3102
  ]
2801
3103
  },
@@ -2882,7 +3184,7 @@ var CATALOG = {
2882
3184
  {
2883
3185
  "qbo": "CustomField",
2884
3186
  "support": "partial",
2885
- "note": "Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only for now. Accepted and ignored on write."
3187
+ "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)."
2886
3188
  },
2887
3189
  {
2888
3190
  "qbo": "CurrencyRef",
@@ -2955,6 +3257,43 @@ var CATALOG = {
2955
3257
  }
2956
3258
  ],
2957
3259
  "unsupported": []
3260
+ },
3261
+ "VendorType": {
3262
+ "entity": "VendorType",
3263
+ "verdict": "gap",
3264
+ "group": "gaps",
3265
+ "read": "none",
3266
+ "write": "none",
3267
+ "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.",
3268
+ "fields": [],
3269
+ "unsupported": [
3270
+ {
3271
+ "case": "read",
3272
+ "error": "UNSUPPORTED_BY_DESKTOP",
3273
+ "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.",
3274
+ "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."
3275
+ },
3276
+ {
3277
+ "case": "query",
3278
+ "error": "UNSUPPORTED_BY_DESKTOP",
3279
+ "note": "No QBO VendorType resource to mirror, so no query is exposed."
3280
+ },
3281
+ {
3282
+ "case": "create",
3283
+ "error": "UNSUPPORTED_BY_DESKTOP",
3284
+ "note": "No QBO VendorType resource to mirror, so no create is exposed."
3285
+ },
3286
+ {
3287
+ "case": "update",
3288
+ "error": "UNSUPPORTED_BY_DESKTOP",
3289
+ "note": "No QBO VendorType resource to mirror, so no update is exposed."
3290
+ },
3291
+ {
3292
+ "case": "delete",
3293
+ "error": "UNSUPPORTED_BY_DESKTOP",
3294
+ "note": "No QBO VendorType resource to mirror, so no delete is exposed."
3295
+ }
3296
+ ]
2958
3297
  }
2959
3298
  };
2960
3299
 
@@ -3083,10 +3422,10 @@ function registerTools(server, client) {
3083
3422
  server.registerTool(
3084
3423
  "query",
3085
3424
  {
3086
- 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.",
3425
+ 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.",
3087
3426
  inputSchema: {
3088
3427
  entity: entityArg,
3089
- where: import_zod.z.string().optional().describe(`Single WHERE condition in QBO query grammar, e.g. "TxnDate >= '2026-01-01'"`),
3428
+ where: import_zod.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'"`),
3090
3429
  startPosition: import_zod.z.number().int().positive().optional(),
3091
3430
  maxResults: import_zod.z.number().int().positive().max(1e3).optional()
3092
3431
  }
@@ -3192,10 +3531,34 @@ function registerTools(server, client) {
3192
3531
  }
3193
3532
  }
3194
3533
  );
3534
+ server.registerTool(
3535
+ "void",
3536
+ {
3537
+ 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.',
3538
+ inputSchema: {
3539
+ entity: entityArg,
3540
+ id: import_zod.z.string(),
3541
+ syncToken: import_zod.z.string().describe("Current SyncToken of the transaction (required; a stale token is rejected).")
3542
+ }
3543
+ },
3544
+ async ({ entity, id, syncToken }) => {
3545
+ const name = resolveEntityName(entity);
3546
+ if (!name) return unknownEntity(entity);
3547
+ if (!import_client2.ENTITIES[name].voidable) {
3548
+ const supported = Object.values(import_client2.ENTITIES).filter((e) => e.voidable).map((e) => e.name).join(", ");
3549
+ return fail(`${name} cannot be voided through TenkeyBridge. Voidable entities: ${supported}.`);
3550
+ }
3551
+ try {
3552
+ return ok(await accessor(client, name).void({ Id: id, SyncToken: syncToken }));
3553
+ } catch (err) {
3554
+ return failure(err);
3555
+ }
3556
+ }
3557
+ );
3195
3558
  }
3196
3559
 
3197
3560
  // src/version.ts
3198
- var PKG_VERSION = "0.2.0";
3561
+ var PKG_VERSION = "0.3.0";
3199
3562
 
3200
3563
  // src/server.ts
3201
3564
  var SERVER_NAME = "tenkeybridge";