@tenkeybridge/mcp 0.1.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
@@ -151,6 +151,11 @@ var CATALOG = {
151
151
  "support": "full",
152
152
  "note": "Required and unique per request; echoed verbatim on each BatchItemResponse slot."
153
153
  },
154
+ {
155
+ "qbo": "operation (create | update | delete) + optionsData: void",
156
+ "support": "partial",
157
+ "note": "Void is QBO's `operation: update` + `optionsData: void` (`operation: void` is accepted as an alias). Same pipeline and limits as single-shot ?operation=void (Invoice, SalesReceipt, Purchase, BillPayment; Payment refused). Any other optionsData value faults."
158
+ },
154
159
  {
155
160
  "qbo": "operation (create | update | delete)",
156
161
  "support": "full",
@@ -159,7 +164,7 @@ var CATALOG = {
159
164
  {
160
165
  "qbo": "Query items",
161
166
  "support": "full",
162
- "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."
163
168
  },
164
169
  {
165
170
  "qbo": "per-item faults",
@@ -174,9 +179,9 @@ var CATALOG = {
174
179
  "note": "QBO's own per-request cap, cloned. Split into multiple batch calls."
175
180
  },
176
181
  {
177
- "case": "optionsData (e.g. void)",
182
+ "case": "optionsData other than void (or void paired with create/delete)",
178
183
  "error": "BATCH_UNSUPPORTED_OPTION",
179
- "note": "No wired TxnVoid path against Desktop yet \u2014 the item faults loud; the rest of the batch runs."
184
+ "note": 'Only optionsData "void" on an update item is wired \u2014 any other value faults that item loud; the rest of the batch runs.'
180
185
  },
181
186
  {
182
187
  "case": "transactional rollback",
@@ -212,7 +217,8 @@ var CATALOG = {
212
217
  },
213
218
  {
214
219
  "qbo": "DocNumber",
215
- "support": "full"
220
+ "support": "full",
221
+ "note": "Desktop RefNumber: max 20 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."
216
222
  },
217
223
  {
218
224
  "qbo": "SalesTermRef",
@@ -236,12 +242,12 @@ var CATALOG = {
236
242
  {
237
243
  "qbo": "Balance",
238
244
  "support": "full",
239
- "note": "Read-only, as in QBO."
245
+ "note": "Read-only. Desktop's BillRet.OpenAmount is the VENDOR's total open balance across every open bill for that vendor, not this bill's own remaining amount (verified live, 2026-09-24) \u2014 never used directly. Computed instead as 0 when IsPaid, else AmountDue minus whatever BillPaymentCheck/BillPaymentCreditCard/VendorCredit amounts LinkedTxn shows applied to this bill."
240
246
  },
241
247
  {
242
248
  "qbo": "CustomField",
243
249
  "support": "partial",
244
- "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'."
245
251
  },
246
252
  {
247
253
  "qbo": "CurrencyRef",
@@ -256,7 +262,7 @@ var CATALOG = {
256
262
  {
257
263
  "qbo": "LinkedTxn",
258
264
  "support": "none",
259
- "note": "QBO Bill has no paid-by LinkedTxn field. Desktop may return LinkedTxnRet when IncludeLinkedTxns is set, but there is no honest QBO home \u2014 not projected.",
265
+ "note": "QBO Bill has no paid-by LinkedTxn field. Desktop may return LinkedTxn when IncludeLinkedTxns is set, but there is no honest QBO home \u2014 not projected.",
260
266
  "error": "UNSUPPORTED_BY_DESKTOP"
261
267
  }
262
268
  ],
@@ -286,7 +292,8 @@ var CATALOG = {
286
292
  },
287
293
  {
288
294
  "qbo": "DocNumber",
289
- "support": "full"
295
+ "support": "full",
296
+ "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."
290
297
  },
291
298
  {
292
299
  "qbo": "PrivateNote",
@@ -315,7 +322,7 @@ var CATALOG = {
315
322
  {
316
323
  "qbo": "Line",
317
324
  "support": "partial",
318
- "note": "LinkedTxn bills \u2192 AppliedToTxnAdd; additional LinkedTxn VendorCredit \u2192 SetCredit. Sparse updates cannot modify lines yet."
325
+ "note": "Required \u2014 at least one; QuickBooks Desktop's BillPaymentCheckAdd/BillPaymentCreditCardAdd schema requires one or more AppliedToTxnAdd. Write: LinkedTxn bills \u2192 AppliedToTxnAdd; additional LinkedTxn VendorCredit \u2192 SetCredit (the Add request shape). Read: an applied vendor credit comes back nested as AppliedToTxnRet.LinkedTxn (TxnType VendorCredit, Amount negative \u2014 absolute value surfaced as QBO LinkedTxn.Amount), not SetCreditRet/SetCredit, which Desktop never returns on this Ret (verified live, 2026-09-28). Sparse updates cannot modify lines yet."
319
326
  },
320
327
  {
321
328
  "qbo": "CurrencyRef",
@@ -328,6 +335,11 @@ var CATALOG = {
328
335
  "support": "none",
329
336
  "note": "Multicurrency not yet supported.",
330
337
  "error": "UNSUPPORTED_BY_DESKTOP"
338
+ },
339
+ {
340
+ "qbo": "operation=void",
341
+ "support": "partial",
342
+ "note": "POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType BillPaymentCheck / BillPaymentCreditCard, 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, the applied-to-bill Line entries are removed and the paid bills reopen, PrivateNote prefixed `VOID: `; voiding again succeeds. The response is whatever Desktop returns on the post-void re-read (nothing is fabricated)."
331
343
  }
332
344
  ],
333
345
  "unsupported": [
@@ -340,24 +352,82 @@ var CATALOG = {
340
352
  },
341
353
  "Budget": {
342
354
  "entity": "Budget",
343
- "verdict": "planned",
344
- "group": "planned",
345
- "read": "none",
355
+ "verdict": "live",
356
+ "group": "company",
357
+ "read": "partial",
346
358
  "write": "none",
347
- "headline": "qbXML has no Budget records, but budget figures are readable through BudgetSummaryReportQuery \u2014 a read-only Budget synthesized from that report is planned; budget writes stay in the Desktop UI forever.",
348
- "fields": [],
359
+ "headline": 'Read-only, synthesized from BudgetSummaryReportQuery \u2014 qbXML has no Budget record, so Id is synthetic and deterministic ({fiscalYear}-{BudgetType}, e.g. 2026-ProfitAndLoss) with SyncToken pinned to "0", SELECT * probes the current calendar year \xB11 against both statement types, and budget writes stay in the QuickBooks Desktop UI forever',
360
+ "fields": [
361
+ {
362
+ "qbo": "Name",
363
+ "support": "partial",
364
+ "note": 'Synthesized from the id \u2014 "FY2026 Profit and Loss Budget", "FY2026 Balance Sheet Budget". Desktop budget names are not exposed by BudgetSummaryReportQuery, so this is a stable derived label, not the name you typed in QuickBooks.'
365
+ },
366
+ {
367
+ "qbo": "StartDate",
368
+ "support": "full",
369
+ "note": "The 1st of the first budgeted month column, e.g. January 1 for a calendar-year budget. Never taken from the report's ReportSubtitle prose, which can state a mid-year as-of window (a year-to-date subtitle) even though the report's money columns cover the full fiscal year."
370
+ },
371
+ {
372
+ "qbo": "EndDate",
373
+ "support": "full",
374
+ "note": "The last day of the last budgeted month column, e.g. December 31 for a calendar-year budget \u2014 not the report's ReportSubtitle, which can understate this (a year-to-date subtitle names today's date, not the budget's fiscal-year end)."
375
+ },
376
+ {
377
+ "qbo": "BudgetType",
378
+ "support": "partial",
379
+ "note": "ProfitAndLoss (ProfitAndLossBudgetOverview) and BalanceSheet (BalanceSheetBudgetOverview). Desktop's three budget-vs-actual report types mix actuals and variance into the same table \u2014 those are reports, not budgets, and are not exposed here."
380
+ },
381
+ {
382
+ "qbo": "BudgetEntryType",
383
+ "support": "partial",
384
+ "note": 'Always "Monthly". Desktop budgets are entered by month, and the report is requested with monthly columns; Yearly entry is not represented.'
385
+ },
386
+ {
387
+ "qbo": "Active",
388
+ "support": "partial",
389
+ "note": "Always true. A budget that returns amounts exists; Desktop has no inactive flag for budgets."
390
+ },
391
+ {
392
+ "qbo": "BudgetDetail",
393
+ "support": "partial",
394
+ "note": 'One entry per account \xD7 budgeted month, with BudgetDate (first of the month), Amount, and AccountRef. Months with no budgeted amount are omitted, matching QBO \u2014 a Desktop 0.00 cell is indistinguishable from "not budgeted".'
395
+ },
396
+ {
397
+ "qbo": "MetaData",
398
+ "support": "none",
399
+ "note": "Desktop's budget report carries no created/modified stamp, so CreateTime/LastUpdatedTime are omitted rather than invented."
400
+ }
401
+ ],
349
402
  "unsupported": [
350
403
  {
351
- "case": "read",
404
+ "case": "query \u2014 SELECT * cannot enumerate every budget",
405
+ "error": "UNSUPPORTED_QUERY",
406
+ "note": "qbXML cannot list budgets: BudgetSummaryReportQueryRq requires a FiscalYear. SELECT * FROM Budget probes a fixed window \u2014 the current calendar year, the one before it, and the one after it \u2014 against both statement types (six report requests in one round-trip) and returns the ones that come back with budgeted amounts. A budget outside that window is invisible to SELECT *. Because the probe is speculative, the query never faults on an individual report's status: a company with no budgets gets an empty list, exactly as QBO answers. GET by id has one report and does surface its status.",
407
+ "workaround": "Fetch it by id: GET /v3/company/{realmId}/budget/{fiscalYear}-{BudgetType}, e.g. 2023-ProfitAndLoss, which issues exactly one report request for that year."
408
+ },
409
+ {
410
+ "case": "query \u2014 WHERE on anything but Id, ORDERBY, COUNT(*), column lists",
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. ORDERBY, COUNT(*) and column lists are rejected too.",
413
+ "workaround": "Fetch the window with SELECT * FROM Budget and filter the (at most six) rows client-side."
414
+ },
415
+ {
416
+ "case": "read \u2014 Class and Customer budget breakdowns",
352
417
  "error": "UNSUPPORTED_BY_DESKTOP",
353
- "note": "Not yet implemented. qbXML has no Budget record API (no BudgetQuery in the qbxmlops130 message set), but BudgetSummaryReportQuery returns budget amounts by account \xD7 period (optionally \xD7 class or \xD7 customer), which is the data QBO's read-only Budget carries. A synthesized read is planned \u2014 see the tracking issue.",
354
- "workaround": "Until the read path ships, pull the budget-vs-actual reports from Desktop directly (or export), not via the Accounting API."
418
+ "note": "Desktop's BudgetCriterion also offers AccountsAndClasses and AccountsAndCustomers, which QBO would carry as ClassRef/CustomerRef on BudgetDetail. TenkeyBridge sends the Accounts criterion only: the extra breakdowns come back as report rows whose sole identity is a display label, and splitting a label into account + class would be a guess.",
419
+ "workaround": "Read the class- or customer-level figures from the budget reports in QuickBooks Desktop directly."
355
420
  },
356
421
  {
357
- "case": "query",
422
+ "case": "read \u2014 budget-vs-actual report types",
358
423
  "error": "UNSUPPORTED_BY_DESKTOP",
359
- "note": "Not yet implemented. qbXML cannot enumerate budgets \u2014 BudgetSummaryReportQuery requires a FiscalYear \u2014 so the planned query path probes a bounded fiscal-year window and synthesizes deterministic Ids. See the tracking issue for the design.",
360
- "workaround": "Until the read path ships, pull the budget-vs-actual reports from Desktop directly (or export), not via the Accounting API."
424
+ "note": "BalanceSheetBudgetVsActual, ProfitAndLossBudgetVsActual and ProfitAndLossBudgetPerformance mix actuals and variance columns into the budget table. Those are reports, not budgets; putting non-budget money in BudgetDetail.Amount would be wrong.",
425
+ "workaround": "Pull the actuals with the Reports surface (ProfitAndLoss / BalanceSheet) and compare them against this Budget client-side."
426
+ },
427
+ {
428
+ "case": "read \u2014 AccountRef.value on an unrecognised row label",
429
+ "error": "UNSUPPORTED_BY_DESKTOP",
430
+ "note": `Desktop report rows name an account by display label only; there is no ListID anywhere in the report. TenkeyBridge resolves the label against the chart of accounts it fetches in the same round-trip \u2014 matching FullName (stripping a leading "{AccountNumber} \xB7 " from every colon-separated segment of a qualified/subaccount label, e.g. "40100 \xB7 Construction Income:40130 \xB7 Labor Income") and, failing that, the leaf segment's own AccountNumber \u2014 but a label neither can explain yields AccountRef with a name and no value rather than an invented id.`
361
431
  },
362
432
  {
363
433
  "case": "create",
@@ -421,6 +491,12 @@ var CATALOG = {
421
491
  "case": "deleted TaxAgency / ExchangeRate / Transfer detection",
422
492
  "error": "UNSUPPORTED_BY_DESKTOP",
423
493
  "note": "Tax agencies are vendors on Desktop (deletion indistinguishable); exchange rates ride the Currency list; 'Transfer' is not a valid TxnDelType."
494
+ },
495
+ {
496
+ "case": "Budget in the entities list",
497
+ "error": "UNSUPPORTED_BY_DESKTOP",
498
+ "note": "Budget is synthesized from a Desktop report rather than stored as a record, so there is no created/modified timestamp to compare a CDC window against. It returns a per-entity Fault slot; the other entities in the same request still return data.",
499
+ "workaround": "Re-read it with SELECT * FROM Budget (or GET /budget/{fiscalYear}-{BudgetType}) whenever you need the current figures."
424
500
  }
425
501
  ]
426
502
  },
@@ -577,12 +653,51 @@ var CATALOG = {
577
653
  "note": "CompanyInfo is read/query only \u2014 there is exactly one company record, and Desktop has no API to create or modify it."
578
654
  },
579
655
  {
580
- "case": "Any WHERE clause, or STARTPOSITION/MAXRESULTS",
656
+ "case": "Any WHERE clause, ORDERBY, COUNT(*), column list, or STARTPOSITION/MAXRESULTS",
581
657
  "error": "UNSUPPORTED_QUERY",
582
658
  "note": "CompanyQueryRq takes no filters and always returns the single open company record. Use SELECT * FROM CompanyInfo."
583
659
  }
584
660
  ]
585
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
+ },
586
701
  "CreditMemo": {
587
702
  "entity": "CreditMemo",
588
703
  "verdict": "live",
@@ -601,7 +716,8 @@ var CATALOG = {
601
716
  },
602
717
  {
603
718
  "qbo": "DocNumber",
604
- "support": "full"
719
+ "support": "full",
720
+ "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."
605
721
  },
606
722
  {
607
723
  "qbo": "BillAddr",
@@ -627,6 +743,11 @@ var CATALOG = {
627
743
  "qbo": "PrivateNote",
628
744
  "support": "full"
629
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
+ },
630
751
  {
631
752
  "qbo": "CustomerMemo",
632
753
  "support": "full",
@@ -635,12 +756,12 @@ var CATALOG = {
635
756
  {
636
757
  "qbo": "Line",
637
758
  "support": "partial",
638
- "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."
639
760
  },
640
761
  {
641
762
  "qbo": "TxnTaxDetail",
642
763
  "support": "partial",
643
- "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)."
644
765
  },
645
766
  {
646
767
  "qbo": "LinkedTxn",
@@ -670,15 +791,10 @@ var CATALOG = {
670
791
  }
671
792
  ],
672
793
  "unsupported": [
673
- {
674
- "case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
675
- "error": "UNSUPPORTED_BY_DESKTOP",
676
- "note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
677
- },
678
794
  {
679
795
  "case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
680
796
  "error": "MISSING_REQUIRED_DESKTOP_ITEM",
681
- "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."
682
798
  },
683
799
  {
684
800
  "case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly",
@@ -803,7 +919,7 @@ var CATALOG = {
803
919
  {
804
920
  "qbo": "CustomField",
805
921
  "support": "partial",
806
- "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)."
807
923
  },
808
924
  {
809
925
  "qbo": "CurrencyRef",
@@ -872,9 +988,10 @@ var CATALOG = {
872
988
  ],
873
989
  "unsupported": [
874
990
  {
875
- "case": "Create or update",
991
+ "case": "Create, update or deactivate",
876
992
  "error": "UNSUPPORTED_BY_DESKTOP",
877
- "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."
878
995
  }
879
996
  ]
880
997
  },
@@ -939,12 +1056,12 @@ var CATALOG = {
939
1056
  {
940
1057
  "qbo": "Line",
941
1058
  "support": "partial",
942
- "note": "LinkedTxn (PaymentTxnID path) for undeposited payments, or DepositLineDetail{Entity, AccountRef, PaymentMethodRef, CheckNum}. 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."
943
1060
  },
944
1061
  {
945
1062
  "qbo": "CashBack",
946
- "support": "full",
947
- "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."
948
1065
  },
949
1066
  {
950
1067
  "qbo": "TotalAmt",
@@ -971,8 +1088,8 @@ var CATALOG = {
971
1088
  "verdict": "live",
972
1089
  "group": "lists",
973
1090
  "read": "full",
974
- "write": "none",
975
- "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",
976
1093
  "fields": [
977
1094
  {
978
1095
  "qbo": "GivenName",
@@ -992,7 +1109,8 @@ var CATALOG = {
992
1109
  },
993
1110
  {
994
1111
  "qbo": "DisplayName",
995
- "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)."
996
1114
  },
997
1115
  {
998
1116
  "qbo": "PrintOnCheckName",
@@ -1001,7 +1119,8 @@ var CATALOG = {
1001
1119
  },
1002
1120
  {
1003
1121
  "qbo": "Active",
1004
- "support": "full"
1122
+ "support": "full",
1123
+ "note": "Deactivate with a sparse update of Active:false; Desktop employees cannot be deleted through qbXML."
1005
1124
  },
1006
1125
  {
1007
1126
  "qbo": "PrimaryPhone",
@@ -1017,7 +1136,8 @@ var CATALOG = {
1017
1136
  },
1018
1137
  {
1019
1138
  "qbo": "PrimaryAddr",
1020
- "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."
1021
1141
  },
1022
1142
  {
1023
1143
  "qbo": "HiredDate",
@@ -1033,12 +1153,24 @@ var CATALOG = {
1033
1153
  },
1034
1154
  {
1035
1155
  "qbo": "Gender",
1036
- "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."
1037
1163
  },
1038
1164
  {
1039
1165
  "qbo": "CustomField",
1040
1166
  "support": "partial",
1041
- "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"
1042
1174
  },
1043
1175
  {
1044
1176
  "qbo": "TargetBonus",
@@ -1055,9 +1187,42 @@ var CATALOG = {
1055
1187
  ],
1056
1188
  "unsupported": [
1057
1189
  {
1058
- "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",
1059
1224
  "error": "UNSUPPORTED_BY_DESKTOP",
1060
- "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."
1061
1226
  }
1062
1227
  ]
1063
1228
  },
@@ -1067,7 +1232,7 @@ var CATALOG = {
1067
1232
  "group": "sales",
1068
1233
  "read": "full",
1069
1234
  "write": "partial",
1070
- "headline": "Same shape as Invoice; no expiration/acceptance tracking",
1235
+ "headline": "Same shape as Invoice; expiration date and active/closed status, no acceptance tracking",
1071
1236
  "fields": [
1072
1237
  {
1073
1238
  "qbo": "CustomerRef",
@@ -1079,7 +1244,8 @@ var CATALOG = {
1079
1244
  },
1080
1245
  {
1081
1246
  "qbo": "DocNumber",
1082
- "support": "full"
1247
+ "support": "full",
1248
+ "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."
1083
1249
  },
1084
1250
  {
1085
1251
  "qbo": "BillAddr",
@@ -1099,7 +1265,18 @@ var CATALOG = {
1099
1265
  },
1100
1266
  {
1101
1267
  "qbo": "DueDate",
1102
- "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."
1103
1280
  },
1104
1281
  {
1105
1282
  "qbo": "PrivateNote",
@@ -1113,22 +1290,22 @@ var CATALOG = {
1113
1290
  {
1114
1291
  "qbo": "Line",
1115
1292
  "support": "partial",
1116
- "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."
1117
1294
  },
1118
1295
  {
1119
1296
  "qbo": "TxnTaxDetail",
1120
1297
  "support": "partial",
1121
- "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)."
1122
1299
  },
1123
1300
  {
1124
1301
  "qbo": "LinkedTxn",
1125
1302
  "support": "full",
1126
- "note": "Populated on read from LinkedTxnRet (IncludeLinkedTxns automatic) \u2014 progress-invoicing links when present. Links to Desktop-only transaction types (SalesOrder, ItemReceipt, \u2026) are omitted rather than guessed at. Accepted and ignored on write."
1303
+ "note": "Populated on read from LinkedTxn (IncludeLinkedTxns automatic) \u2014 progress-invoicing links when present. Links to Desktop-only transaction types (SalesOrder, ItemReceipt, \u2026) are omitted rather than guessed at. Accepted and ignored on write."
1127
1304
  },
1128
1305
  {
1129
1306
  "qbo": "CustomField",
1130
1307
  "support": "partial",
1131
- "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."
1132
1309
  },
1133
1310
  {
1134
1311
  "qbo": "TotalAmt",
@@ -1145,12 +1322,6 @@ var CATALOG = {
1145
1322
  "support": "partial",
1146
1323
  "note": "Accepted and ignored \u2014 Desktop manages this itself; multi-currency mapping lands later."
1147
1324
  },
1148
- {
1149
- "qbo": "ExpirationDate",
1150
- "support": "none",
1151
- "note": "Desktop estimates have no expiration date. Track it in your own system if needed.",
1152
- "error": "UNSUPPORTED_BY_DESKTOP"
1153
- },
1154
1325
  {
1155
1326
  "qbo": "AcceptedBy",
1156
1327
  "support": "none",
@@ -1162,24 +1333,13 @@ var CATALOG = {
1162
1333
  "support": "none",
1163
1334
  "note": "Desktop estimates have no accepted-date field. Track acceptance in your own system.",
1164
1335
  "error": "UNSUPPORTED_BY_DESKTOP"
1165
- },
1166
- {
1167
- "qbo": "TxnStatus",
1168
- "support": "none",
1169
- "note": "Desktop estimates have no status field matching QBO's Pending/Accepted/Closed/Rejected enum. Track status in your own system.",
1170
- "error": "UNSUPPORTED_BY_DESKTOP"
1171
1336
  }
1172
1337
  ],
1173
1338
  "unsupported": [
1174
- {
1175
- "case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
1176
- "error": "UNSUPPORTED_BY_DESKTOP",
1177
- "note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
1178
- },
1179
1339
  {
1180
1340
  "case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
1181
1341
  "error": "MISSING_REQUIRED_DESKTOP_ITEM",
1182
- "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."
1183
1343
  },
1184
1344
  {
1185
1345
  "case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly",
@@ -1236,6 +1396,65 @@ var CATALOG = {
1236
1396
  }
1237
1397
  ]
1238
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
+ },
1239
1458
  "Invoice": {
1240
1459
  "entity": "Invoice",
1241
1460
  "verdict": "live",
@@ -1254,7 +1473,8 @@ var CATALOG = {
1254
1473
  },
1255
1474
  {
1256
1475
  "qbo": "DocNumber",
1257
- "support": "full"
1476
+ "support": "full",
1477
+ "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."
1258
1478
  },
1259
1479
  {
1260
1480
  "qbo": "BillAddr",
@@ -1296,22 +1516,22 @@ var CATALOG = {
1296
1516
  {
1297
1517
  "qbo": "Line",
1298
1518
  "support": "partial",
1299
- "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."
1300
1520
  },
1301
1521
  {
1302
1522
  "qbo": "TxnTaxDetail",
1303
1523
  "support": "partial",
1304
- "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)."
1305
1525
  },
1306
1526
  {
1307
1527
  "qbo": "LinkedTxn",
1308
1528
  "support": "full",
1309
- "note": "Populated on read from LinkedTxnRet when IncludeLinkedTxns is requested (automatic). Desktop ReceivePayment \u2192 QBO Payment; links to Desktop-only transaction types (SalesOrder, ItemReceipt, \u2026) are omitted rather than guessed at. Accepted and ignored on write \u2014 same as QBO treats it as read-only."
1529
+ "note": "Populated on read from LinkedTxn when IncludeLinkedTxns is requested (automatic). Desktop ReceivePayment \u2192 QBO Payment; links to Desktop-only transaction types (SalesOrder, ItemReceipt, \u2026) are omitted rather than guessed at. Accepted and ignored on write \u2014 same as QBO treats it as read-only."
1310
1530
  },
1311
1531
  {
1312
1532
  "qbo": "CustomField",
1313
1533
  "support": "partial",
1314
- "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)."
1315
1535
  },
1316
1536
  {
1317
1537
  "qbo": "TotalAmt",
@@ -1332,18 +1552,18 @@ var CATALOG = {
1332
1552
  "qbo": "ExchangeRate",
1333
1553
  "support": "partial",
1334
1554
  "note": "Accepted and ignored \u2014 Desktop manages this itself; multi-currency mapping lands later."
1555
+ },
1556
+ {
1557
+ "qbo": "operation=void",
1558
+ "support": "partial",
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)."
1335
1560
  }
1336
1561
  ],
1337
1562
  "unsupported": [
1338
- {
1339
- "case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
1340
- "error": "UNSUPPORTED_BY_DESKTOP",
1341
- "note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
1342
- },
1343
1563
  {
1344
1564
  "case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
1345
1565
  "error": "MISSING_REQUIRED_DESKTOP_ITEM",
1346
- "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."
1347
1567
  },
1348
1568
  {
1349
1569
  "case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly (e.g. SubTotalLineDetail)",
@@ -1357,72 +1577,83 @@ var CATALOG = {
1357
1577
  "verdict": "live",
1358
1578
  "group": "sales",
1359
1579
  "read": "partial",
1360
- "write": "none",
1580
+ "write": "partial",
1361
1581
  "headline": "One Item becomes several Desktop item types",
1362
1582
  "fields": [
1363
1583
  {
1364
1584
  "qbo": "Name",
1365
- "support": "full"
1585
+ "support": "full",
1586
+ "note": "Desktop item Name is the leaf name (max 31 characters); FullyQualifiedName is derived."
1366
1587
  },
1367
1588
  {
1368
1589
  "qbo": "FullyQualifiedName",
1369
1590
  "support": "full",
1370
- "note": "Read-only in this release."
1591
+ "note": "Read-only; derived from the Desktop FullName. Echoed values on update are ignored."
1371
1592
  },
1372
1593
  {
1373
1594
  "qbo": "Active",
1374
1595
  "support": "full",
1375
- "note": "Read-only in this release."
1596
+ "note": "Deactivate with a sparse update setting Active to false; items are never deleted."
1376
1597
  },
1377
1598
  {
1378
1599
  "qbo": "Type",
1379
1600
  "support": "partial",
1380
- "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."
1381
1602
  },
1382
1603
  {
1383
1604
  "qbo": "Description",
1384
1605
  "support": "full",
1385
- "note": "Read-only in this release."
1606
+ "note": "Desktop sales description: SalesOrPurchase/Desc, SalesAndPurchase/SalesDesc, or SalesDesc on Inventory."
1386
1607
  },
1387
1608
  {
1388
1609
  "qbo": "UnitPrice",
1389
1610
  "support": "full",
1390
- "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."
1391
1612
  },
1392
1613
  {
1393
1614
  "qbo": "Sku",
1394
1615
  "support": "partial",
1395
- "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."
1396
1622
  },
1397
1623
  {
1398
1624
  "qbo": "QtyOnHand",
1399
- "support": "full",
1400
- "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."
1401
1632
  },
1402
1633
  {
1403
1634
  "qbo": "IncomeAccountRef",
1404
1635
  "support": "full",
1405
- "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)."
1406
1637
  },
1407
1638
  {
1408
1639
  "qbo": "ExpenseAccountRef",
1409
1640
  "support": "partial",
1410
- "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."
1411
1642
  },
1412
1643
  {
1413
1644
  "qbo": "AssetAccountRef",
1414
1645
  "support": "full",
1415
- "note": "Read-only in this release; Inventory only."
1646
+ "note": "Inventory only; required on create."
1416
1647
  },
1417
1648
  {
1418
1649
  "qbo": "PurchaseDesc",
1419
1650
  "support": "full",
1420
- "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."
1421
1652
  },
1422
1653
  {
1423
1654
  "qbo": "PurchaseCost",
1424
1655
  "support": "full",
1425
- "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."
1426
1657
  },
1427
1658
  {
1428
1659
  "qbo": "PrefVendorRef",
@@ -1432,29 +1663,54 @@ var CATALOG = {
1432
1663
  {
1433
1664
  "qbo": "ParentRef",
1434
1665
  "support": "full",
1435
- "note": "Desktop item hierarchy."
1666
+ "note": "Desktop item hierarchy; sub-items are FullName paths (Parent:Child)."
1436
1667
  },
1437
1668
  {
1438
1669
  "qbo": "SubItem",
1439
1670
  "support": "full",
1440
- "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."
1441
1687
  },
1442
1688
  {
1443
1689
  "qbo": "CustomField",
1444
1690
  "support": "partial",
1445
- "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)."
1446
1692
  }
1447
1693
  ],
1448
1694
  "unsupported": [
1449
1695
  {
1450
- "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)",
1451
1697
  "error": "UNSUPPORTED_BY_DESKTOP",
1452
1698
  "note": "Omitted from query results; a direct get by id on one of these Desktop items returns a 422 UNSUPPORTED_BY_DESKTOP fault."
1453
1699
  },
1454
1700
  {
1455
- "case": "Item create/update",
1701
+ "case": "Creating or updating Group (and Category) items, or updating discount items",
1456
1702
  "error": "UNSUPPORTED_BY_DESKTOP",
1457
- "note": "Lands in a later release."
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",
1707
+ "error": "UNSUPPORTED_BY_DESKTOP",
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.)"
1458
1714
  }
1459
1715
  ]
1460
1716
  },
@@ -1508,7 +1764,8 @@ var CATALOG = {
1508
1764
  },
1509
1765
  {
1510
1766
  "qbo": "DocNumber",
1511
- "support": "full"
1767
+ "support": "full",
1768
+ "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."
1512
1769
  },
1513
1770
  {
1514
1771
  "qbo": "PrivateNote",
@@ -1523,7 +1780,7 @@ var CATALOG = {
1523
1780
  {
1524
1781
  "qbo": "Line",
1525
1782
  "support": "partial",
1526
- "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."
1527
1784
  },
1528
1785
  {
1529
1786
  "qbo": "TotalAmt",
@@ -1579,7 +1836,7 @@ var CATALOG = {
1579
1836
  {
1580
1837
  "qbo": "PaymentRefNum",
1581
1838
  "support": "full",
1582
- "note": "Desktop RefNumber. 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)."
1583
1840
  },
1584
1841
  {
1585
1842
  "qbo": "TotalAmt",
@@ -1601,7 +1858,7 @@ var CATALOG = {
1601
1858
  {
1602
1859
  "qbo": "Line",
1603
1860
  "support": "partial",
1604
- "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."
1605
1862
  },
1606
1863
  {
1607
1864
  "qbo": "UnappliedAmt",
@@ -1641,7 +1898,13 @@ var CATALOG = {
1641
1898
  "error": "UNSUPPORTED_BY_DESKTOP"
1642
1899
  }
1643
1900
  ],
1644
- "unsupported": []
1901
+ "unsupported": [
1902
+ {
1903
+ "case": "operation=void",
1904
+ "error": "UNSUPPORTED_BY_DESKTOP",
1905
+ "note": "qbXML's TxnVoidType has no ReceivePayment value \u2014 a customer payment cannot be voided through the SDK (HTTP 400). Delete it (?operation=delete) and re-enter it if needed."
1906
+ }
1907
+ ]
1645
1908
  },
1646
1909
  "PaymentMethod": {
1647
1910
  "entity": "PaymentMethod",
@@ -1742,7 +2005,7 @@ var CATALOG = {
1742
2005
  "note": "Preferences is read/query only in QBO and Desktop \u2014 there is no PreferencesAdd/Mod."
1743
2006
  },
1744
2007
  {
1745
- "case": "Any WHERE clause, or STARTPOSITION/MAXRESULTS",
2008
+ "case": "Any WHERE clause, ORDERBY, COUNT(*), column list, or STARTPOSITION/MAXRESULTS",
1746
2009
  "error": "UNSUPPORTED_QUERY",
1747
2010
  "note": "PreferencesQueryRq takes no filters and always returns the single open company PreferencesRet. Use SELECT * FROM Preferences."
1748
2011
  }
@@ -1782,7 +2045,8 @@ var CATALOG = {
1782
2045
  },
1783
2046
  {
1784
2047
  "qbo": "DocNumber",
1785
- "support": "full"
2048
+ "support": "full",
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."
1786
2050
  },
1787
2051
  {
1788
2052
  "qbo": "PrivateNote",
@@ -1814,6 +2078,11 @@ var CATALOG = {
1814
2078
  "support": "none",
1815
2079
  "note": "Multicurrency not yet supported.",
1816
2080
  "error": "UNSUPPORTED_BY_DESKTOP"
2081
+ },
2082
+ {
2083
+ "qbo": "operation=void",
2084
+ "support": "partial",
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)."
1817
2086
  }
1818
2087
  ],
1819
2088
  "unsupported": [
@@ -1847,7 +2116,8 @@ var CATALOG = {
1847
2116
  },
1848
2117
  {
1849
2118
  "qbo": "DocNumber",
1850
- "support": "full"
2119
+ "support": "full",
2120
+ "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."
1851
2121
  },
1852
2122
  {
1853
2123
  "qbo": "VendorAddr",
@@ -1873,10 +2143,15 @@ var CATALOG = {
1873
2143
  "qbo": "PrivateNote",
1874
2144
  "support": "full"
1875
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
+ },
1876
2151
  {
1877
2152
  "qbo": "Line",
1878
2153
  "support": "partial",
1879
- "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."
1880
2155
  },
1881
2156
  {
1882
2157
  "qbo": "TotalAmt",
@@ -1886,7 +2161,7 @@ var CATALOG = {
1886
2161
  {
1887
2162
  "qbo": "POStatus",
1888
2163
  "support": "partial",
1889
- "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."
1890
2165
  },
1891
2166
  {
1892
2167
  "qbo": "APAccountRef",
@@ -1985,7 +2260,8 @@ var CATALOG = {
1985
2260
  },
1986
2261
  {
1987
2262
  "qbo": "DocNumber",
1988
- "support": "full"
2263
+ "support": "full",
2264
+ "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."
1989
2265
  },
1990
2266
  {
1991
2267
  "qbo": "PrivateNote",
@@ -2018,7 +2294,7 @@ var CATALOG = {
2018
2294
  {
2019
2295
  "case": "Item-line RefundReceipt (SalesItemLineDetail etc.)",
2020
2296
  "error": "UNSUPPORTED_BY_DESKTOP",
2021
- "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."
2022
2298
  },
2023
2299
  {
2024
2300
  "case": "Update / sparse update",
@@ -2070,46 +2346,103 @@ var CATALOG = {
2070
2346
  "group": "platform",
2071
2347
  "read": "partial",
2072
2348
  "write": "none",
2073
- "headline": "Five QBO-compatible reports translated live from Desktop's report engine.",
2074
- "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",
2075
2351
  "fields": [
2076
2352
  {
2077
2353
  "qbo": "ProfitAndLoss / BalanceSheet / TrialBalance",
2078
2354
  "support": "full",
2079
- "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."
2080
2356
  },
2081
2357
  {
2082
2358
  "qbo": "AgedReceivables / AgedPayables",
2083
2359
  "support": "full",
2084
2360
  "note": "AgingReportQueryRq (ARAgingSummary / APAgingSummary). Desktop's file-configured aging buckets come back as columns, honestly."
2085
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
+ },
2086
2402
  {
2087
2403
  "qbo": "start_date / end_date / date_macro",
2088
2404
  "support": "full",
2089
- "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."
2090
2406
  },
2091
2407
  {
2092
2408
  "qbo": "report_date",
2093
2409
  "support": "full",
2094
- "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."
2095
2411
  },
2096
2412
  {
2097
2413
  "qbo": "accounting_method",
2098
2414
  "support": "partial",
2099
- "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.",
2100
2428
  "error": "REPORT_UNSUPPORTED_OPTION"
2101
2429
  },
2102
2430
  {
2103
2431
  "qbo": "Column titles",
2104
2432
  "support": "partial",
2105
- "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)."
2106
2434
  }
2107
2435
  ],
2108
2436
  "unsupported": [
2109
2437
  {
2110
- "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",
2111
2444
  "error": "REPORT_UNSUPPORTED_OPTION",
2112
- "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."
2113
2446
  },
2114
2447
  {
2115
2448
  "case": "aging_period / num_periods / aging_method",
@@ -2117,14 +2450,14 @@ var CATALOG = {
2117
2450
  "note": "Desktop aging buckets are company-file configuration, not request parameters."
2118
2451
  },
2119
2452
  {
2120
- "case": "summarize_column_by other than Total",
2453
+ "case": "summarize_column_by = Employees / ProductsAndServices / Departments / Location",
2121
2454
  "error": "REPORT_UNSUPPORTED_OPTION",
2122
- "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)."
2123
2456
  },
2124
2457
  {
2125
- "case": "other QBO report names (CashFlow, detail/aging-detail variants, \u2026)",
2458
+ "case": "other QBO report names (class/department sales, tax, account list, ...)",
2126
2459
  "error": "REPORT_UNKNOWN",
2127
- "note": "Planned. The fault lists the five supported reports."
2460
+ "note": "Not shipped. The fault lists the supported reports."
2128
2461
  }
2129
2462
  ]
2130
2463
  },
@@ -2146,7 +2479,8 @@ var CATALOG = {
2146
2479
  },
2147
2480
  {
2148
2481
  "qbo": "DocNumber",
2149
- "support": "full"
2482
+ "support": "full",
2483
+ "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."
2150
2484
  },
2151
2485
  {
2152
2486
  "qbo": "BillAddr",
@@ -2180,12 +2514,12 @@ var CATALOG = {
2180
2514
  {
2181
2515
  "qbo": "Line",
2182
2516
  "support": "partial",
2183
- "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."
2184
2518
  },
2185
2519
  {
2186
2520
  "qbo": "TxnTaxDetail",
2187
2521
  "support": "partial",
2188
- "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)."
2189
2523
  },
2190
2524
  {
2191
2525
  "qbo": "LinkedTxn",
@@ -2195,7 +2529,7 @@ var CATALOG = {
2195
2529
  {
2196
2530
  "qbo": "CustomField",
2197
2531
  "support": "partial",
2198
- "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."
2199
2533
  },
2200
2534
  {
2201
2535
  "qbo": "TotalAmt",
@@ -2211,13 +2545,49 @@ var CATALOG = {
2211
2545
  "qbo": "ExchangeRate",
2212
2546
  "support": "partial",
2213
2547
  "note": "Accepted and ignored \u2014 Desktop manages this itself; multi-currency mapping lands later."
2548
+ },
2549
+ {
2550
+ "qbo": "operation=void",
2551
+ "support": "partial",
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)."
2214
2553
  }
2215
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": [],
2216
2565
  "unsupported": [
2217
2566
  {
2218
- "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",
2219
2589
  "error": "UNSUPPORTED_BY_DESKTOP",
2220
- "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."
2221
2591
  }
2222
2592
  ]
2223
2593
  },
@@ -2332,6 +2702,43 @@ var CATALOG = {
2332
2702
  ],
2333
2703
  "unsupported": []
2334
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
+ },
2335
2742
  "TaxRate": {
2336
2743
  "entity": "TaxRate",
2337
2744
  "verdict": "live",
@@ -2652,7 +3059,7 @@ var CATALOG = {
2652
3059
  {
2653
3060
  "case": "Delete",
2654
3061
  "error": "UNSUPPORTED_BY_DESKTOP",
2655
- "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.'
2656
3063
  }
2657
3064
  ]
2658
3065
  },
@@ -2739,7 +3146,7 @@ var CATALOG = {
2739
3146
  {
2740
3147
  "qbo": "CustomField",
2741
3148
  "support": "partial",
2742
- "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)."
2743
3150
  },
2744
3151
  {
2745
3152
  "qbo": "CurrencyRef",
@@ -2776,7 +3183,8 @@ var CATALOG = {
2776
3183
  },
2777
3184
  {
2778
3185
  "qbo": "DocNumber",
2779
- "support": "full"
3186
+ "support": "full",
3187
+ "note": "Desktop RefNumber: max 20 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."
2780
3188
  },
2781
3189
  {
2782
3190
  "qbo": "PrivateNote",
@@ -2811,6 +3219,43 @@ var CATALOG = {
2811
3219
  }
2812
3220
  ],
2813
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
+ ]
2814
3259
  }
2815
3260
  };
2816
3261
 
@@ -2939,10 +3384,10 @@ function registerTools(server, client) {
2939
3384
  server.registerTool(
2940
3385
  "query",
2941
3386
  {
2942
- 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.",
2943
3388
  inputSchema: {
2944
3389
  entity: entityArg,
2945
- 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'"`),
2946
3391
  startPosition: z.number().int().positive().optional(),
2947
3392
  maxResults: z.number().int().positive().max(1e3).optional()
2948
3393
  }
@@ -3048,10 +3493,34 @@ function registerTools(server, client) {
3048
3493
  }
3049
3494
  }
3050
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
+ );
3051
3520
  }
3052
3521
 
3053
3522
  // src/version.ts
3054
- var PKG_VERSION = "0.1.0";
3523
+ var PKG_VERSION = "0.3.0";
3055
3524
 
3056
3525
  // src/server.ts
3057
3526
  var SERVER_NAME = "tenkeybridge";