@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/README.md +1 -1
- package/dist/cli.js +608 -139
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +608 -139
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +608 -139
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -214,6 +214,11 @@ var CATALOG = {
|
|
|
214
214
|
"support": "full",
|
|
215
215
|
"note": "Required and unique per request; echoed verbatim on each BatchItemResponse slot."
|
|
216
216
|
},
|
|
217
|
+
{
|
|
218
|
+
"qbo": "operation (create | update | delete) + optionsData: void",
|
|
219
|
+
"support": "partial",
|
|
220
|
+
"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."
|
|
221
|
+
},
|
|
217
222
|
{
|
|
218
223
|
"qbo": "operation (create | update | delete)",
|
|
219
224
|
"support": "full",
|
|
@@ -222,7 +227,7 @@ var CATALOG = {
|
|
|
222
227
|
{
|
|
223
228
|
"qbo": "Query items",
|
|
224
229
|
"support": "full",
|
|
225
|
-
"note": "Full /query parity: the
|
|
230
|
+
"note": "Full /query parity: the same query language (AND-joined WHERE with =, !=, <, >, <=, >=, IN, LIKE; ORDERBY; COUNT(*); column lists; STARTPOSITION/MAXRESULTS), iterator-backed deep pages."
|
|
226
231
|
},
|
|
227
232
|
{
|
|
228
233
|
"qbo": "per-item faults",
|
|
@@ -237,9 +242,9 @@ var CATALOG = {
|
|
|
237
242
|
"note": "QBO's own per-request cap, cloned. Split into multiple batch calls."
|
|
238
243
|
},
|
|
239
244
|
{
|
|
240
|
-
"case": "optionsData (
|
|
245
|
+
"case": "optionsData other than void (or void paired with create/delete)",
|
|
241
246
|
"error": "BATCH_UNSUPPORTED_OPTION",
|
|
242
|
-
"note": "
|
|
247
|
+
"note": 'Only optionsData "void" on an update item is wired \u2014 any other value faults that item loud; the rest of the batch runs.'
|
|
243
248
|
},
|
|
244
249
|
{
|
|
245
250
|
"case": "transactional rollback",
|
|
@@ -275,7 +280,8 @@ var CATALOG = {
|
|
|
275
280
|
},
|
|
276
281
|
{
|
|
277
282
|
"qbo": "DocNumber",
|
|
278
|
-
"support": "full"
|
|
283
|
+
"support": "full",
|
|
284
|
+
"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."
|
|
279
285
|
},
|
|
280
286
|
{
|
|
281
287
|
"qbo": "SalesTermRef",
|
|
@@ -299,12 +305,12 @@ var CATALOG = {
|
|
|
299
305
|
{
|
|
300
306
|
"qbo": "Balance",
|
|
301
307
|
"support": "full",
|
|
302
|
-
"note": "Read-only, as
|
|
308
|
+
"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."
|
|
303
309
|
},
|
|
304
310
|
{
|
|
305
311
|
"qbo": "CustomField",
|
|
306
312
|
"support": "partial",
|
|
307
|
-
"note": "Name/StringValue
|
|
313
|
+
"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'."
|
|
308
314
|
},
|
|
309
315
|
{
|
|
310
316
|
"qbo": "CurrencyRef",
|
|
@@ -319,7 +325,7 @@ var CATALOG = {
|
|
|
319
325
|
{
|
|
320
326
|
"qbo": "LinkedTxn",
|
|
321
327
|
"support": "none",
|
|
322
|
-
"note": "QBO Bill has no paid-by LinkedTxn field. Desktop may return
|
|
328
|
+
"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.",
|
|
323
329
|
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
324
330
|
}
|
|
325
331
|
],
|
|
@@ -349,7 +355,8 @@ var CATALOG = {
|
|
|
349
355
|
},
|
|
350
356
|
{
|
|
351
357
|
"qbo": "DocNumber",
|
|
352
|
-
"support": "full"
|
|
358
|
+
"support": "full",
|
|
359
|
+
"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."
|
|
353
360
|
},
|
|
354
361
|
{
|
|
355
362
|
"qbo": "PrivateNote",
|
|
@@ -378,7 +385,7 @@ var CATALOG = {
|
|
|
378
385
|
{
|
|
379
386
|
"qbo": "Line",
|
|
380
387
|
"support": "partial",
|
|
381
|
-
"note": "LinkedTxn bills \u2192 AppliedToTxnAdd; additional LinkedTxn VendorCredit \u2192 SetCredit. Sparse updates cannot modify lines yet."
|
|
388
|
+
"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."
|
|
382
389
|
},
|
|
383
390
|
{
|
|
384
391
|
"qbo": "CurrencyRef",
|
|
@@ -391,6 +398,11 @@ var CATALOG = {
|
|
|
391
398
|
"support": "none",
|
|
392
399
|
"note": "Multicurrency not yet supported.",
|
|
393
400
|
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"qbo": "operation=void",
|
|
404
|
+
"support": "partial",
|
|
405
|
+
"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)."
|
|
394
406
|
}
|
|
395
407
|
],
|
|
396
408
|
"unsupported": [
|
|
@@ -403,24 +415,82 @@ var CATALOG = {
|
|
|
403
415
|
},
|
|
404
416
|
"Budget": {
|
|
405
417
|
"entity": "Budget",
|
|
406
|
-
"verdict": "
|
|
407
|
-
"group": "
|
|
408
|
-
"read": "
|
|
418
|
+
"verdict": "live",
|
|
419
|
+
"group": "company",
|
|
420
|
+
"read": "partial",
|
|
409
421
|
"write": "none",
|
|
410
|
-
"headline":
|
|
411
|
-
"fields": [
|
|
422
|
+
"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',
|
|
423
|
+
"fields": [
|
|
424
|
+
{
|
|
425
|
+
"qbo": "Name",
|
|
426
|
+
"support": "partial",
|
|
427
|
+
"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.'
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"qbo": "StartDate",
|
|
431
|
+
"support": "full",
|
|
432
|
+
"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."
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"qbo": "EndDate",
|
|
436
|
+
"support": "full",
|
|
437
|
+
"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)."
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"qbo": "BudgetType",
|
|
441
|
+
"support": "partial",
|
|
442
|
+
"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."
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"qbo": "BudgetEntryType",
|
|
446
|
+
"support": "partial",
|
|
447
|
+
"note": 'Always "Monthly". Desktop budgets are entered by month, and the report is requested with monthly columns; Yearly entry is not represented.'
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"qbo": "Active",
|
|
451
|
+
"support": "partial",
|
|
452
|
+
"note": "Always true. A budget that returns amounts exists; Desktop has no inactive flag for budgets."
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"qbo": "BudgetDetail",
|
|
456
|
+
"support": "partial",
|
|
457
|
+
"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".'
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"qbo": "MetaData",
|
|
461
|
+
"support": "none",
|
|
462
|
+
"note": "Desktop's budget report carries no created/modified stamp, so CreateTime/LastUpdatedTime are omitted rather than invented."
|
|
463
|
+
}
|
|
464
|
+
],
|
|
412
465
|
"unsupported": [
|
|
413
466
|
{
|
|
414
|
-
"case": "
|
|
467
|
+
"case": "query \u2014 SELECT * cannot enumerate every budget",
|
|
468
|
+
"error": "UNSUPPORTED_QUERY",
|
|
469
|
+
"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.",
|
|
470
|
+
"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."
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"case": "query \u2014 WHERE on anything but Id, ORDERBY, COUNT(*), column lists",
|
|
474
|
+
"error": "UNSUPPORTED_QUERY",
|
|
475
|
+
"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.",
|
|
476
|
+
"workaround": "Fetch the window with SELECT * FROM Budget and filter the (at most six) rows client-side."
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"case": "read \u2014 Class and Customer budget breakdowns",
|
|
415
480
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
416
|
-
"note": "
|
|
417
|
-
"workaround": "
|
|
481
|
+
"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.",
|
|
482
|
+
"workaround": "Read the class- or customer-level figures from the budget reports in QuickBooks Desktop directly."
|
|
418
483
|
},
|
|
419
484
|
{
|
|
420
|
-
"case": "
|
|
485
|
+
"case": "read \u2014 budget-vs-actual report types",
|
|
421
486
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
422
|
-
"note": "
|
|
423
|
-
"workaround": "
|
|
487
|
+
"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.",
|
|
488
|
+
"workaround": "Pull the actuals with the Reports surface (ProfitAndLoss / BalanceSheet) and compare them against this Budget client-side."
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"case": "read \u2014 AccountRef.value on an unrecognised row label",
|
|
492
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
493
|
+
"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.`
|
|
424
494
|
},
|
|
425
495
|
{
|
|
426
496
|
"case": "create",
|
|
@@ -484,6 +554,12 @@ var CATALOG = {
|
|
|
484
554
|
"case": "deleted TaxAgency / ExchangeRate / Transfer detection",
|
|
485
555
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
486
556
|
"note": "Tax agencies are vendors on Desktop (deletion indistinguishable); exchange rates ride the Currency list; 'Transfer' is not a valid TxnDelType."
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"case": "Budget in the entities list",
|
|
560
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
561
|
+
"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.",
|
|
562
|
+
"workaround": "Re-read it with SELECT * FROM Budget (or GET /budget/{fiscalYear}-{BudgetType}) whenever you need the current figures."
|
|
487
563
|
}
|
|
488
564
|
]
|
|
489
565
|
},
|
|
@@ -640,12 +716,51 @@ var CATALOG = {
|
|
|
640
716
|
"note": "CompanyInfo is read/query only \u2014 there is exactly one company record, and Desktop has no API to create or modify it."
|
|
641
717
|
},
|
|
642
718
|
{
|
|
643
|
-
"case": "Any WHERE clause, or STARTPOSITION/MAXRESULTS",
|
|
719
|
+
"case": "Any WHERE clause, ORDERBY, COUNT(*), column list, or STARTPOSITION/MAXRESULTS",
|
|
644
720
|
"error": "UNSUPPORTED_QUERY",
|
|
645
721
|
"note": "CompanyQueryRq takes no filters and always returns the single open company record. Use SELECT * FROM CompanyInfo."
|
|
646
722
|
}
|
|
647
723
|
]
|
|
648
724
|
},
|
|
725
|
+
"CreditCardPayment": {
|
|
726
|
+
"entity": "CreditCardPayment",
|
|
727
|
+
"verdict": "gap",
|
|
728
|
+
"group": "gaps",
|
|
729
|
+
"read": "none",
|
|
730
|
+
"write": "none",
|
|
731
|
+
"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.",
|
|
732
|
+
"fields": [],
|
|
733
|
+
"unsupported": [
|
|
734
|
+
{
|
|
735
|
+
"case": "read",
|
|
736
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
737
|
+
"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.",
|
|
738
|
+
"workaround": "Read the same events as Transfer (ToAccountRef = the credit card account) or as a Purchase of type Check. Both are live in TenkeyBridge."
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"case": "query",
|
|
742
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
743
|
+
"note": "No Desktop CreditCardPayment exists to query; card paydowns appear under Transfer or Purchase.",
|
|
744
|
+
"workaround": "Query Transfer or Purchase and filter client-side by the credit card account."
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"case": "create",
|
|
748
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
749
|
+
"note": "TenkeyBridge will not guess which Desktop transaction to create in place of a CreditCardPayment.",
|
|
750
|
+
"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."
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"case": "update",
|
|
754
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
755
|
+
"note": "No Desktop CreditCardPayment to update; update the Transfer or Purchase instead."
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"case": "delete",
|
|
759
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
760
|
+
"note": "No Desktop CreditCardPayment to delete; delete the Purchase instead (Transfer cannot be deleted through qbXML)."
|
|
761
|
+
}
|
|
762
|
+
]
|
|
763
|
+
},
|
|
649
764
|
"CreditMemo": {
|
|
650
765
|
"entity": "CreditMemo",
|
|
651
766
|
"verdict": "live",
|
|
@@ -664,7 +779,8 @@ var CATALOG = {
|
|
|
664
779
|
},
|
|
665
780
|
{
|
|
666
781
|
"qbo": "DocNumber",
|
|
667
|
-
"support": "full"
|
|
782
|
+
"support": "full",
|
|
783
|
+
"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."
|
|
668
784
|
},
|
|
669
785
|
{
|
|
670
786
|
"qbo": "BillAddr",
|
|
@@ -690,6 +806,11 @@ var CATALOG = {
|
|
|
690
806
|
"qbo": "PrivateNote",
|
|
691
807
|
"support": "full"
|
|
692
808
|
},
|
|
809
|
+
{
|
|
810
|
+
"qbo": "CustomField",
|
|
811
|
+
"support": "partial",
|
|
812
|
+
"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."
|
|
813
|
+
},
|
|
693
814
|
{
|
|
694
815
|
"qbo": "CustomerMemo",
|
|
695
816
|
"support": "full",
|
|
@@ -698,12 +819,12 @@ var CATALOG = {
|
|
|
698
819
|
{
|
|
699
820
|
"qbo": "Line",
|
|
700
821
|
"support": "partial",
|
|
701
|
-
"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
|
|
822
|
+
"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."
|
|
702
823
|
},
|
|
703
824
|
{
|
|
704
825
|
"qbo": "TxnTaxDetail",
|
|
705
826
|
"support": "partial",
|
|
706
|
-
"note": "
|
|
827
|
+
"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)."
|
|
707
828
|
},
|
|
708
829
|
{
|
|
709
830
|
"qbo": "LinkedTxn",
|
|
@@ -733,15 +854,10 @@ var CATALOG = {
|
|
|
733
854
|
}
|
|
734
855
|
],
|
|
735
856
|
"unsupported": [
|
|
736
|
-
{
|
|
737
|
-
"case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
|
|
738
|
-
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
739
|
-
"note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
|
|
740
|
-
},
|
|
741
857
|
{
|
|
742
858
|
"case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
|
|
743
859
|
"error": "MISSING_REQUIRED_DESKTOP_ITEM",
|
|
744
|
-
"note": "Desktop discounts are items. Create a discount item in
|
|
860
|
+
"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."
|
|
745
861
|
},
|
|
746
862
|
{
|
|
747
863
|
"case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly",
|
|
@@ -866,7 +982,7 @@ var CATALOG = {
|
|
|
866
982
|
{
|
|
867
983
|
"qbo": "CustomField",
|
|
868
984
|
"support": "partial",
|
|
869
|
-
"note": "Name/StringValue
|
|
985
|
+
"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)."
|
|
870
986
|
},
|
|
871
987
|
{
|
|
872
988
|
"qbo": "CurrencyRef",
|
|
@@ -935,9 +1051,10 @@ var CATALOG = {
|
|
|
935
1051
|
],
|
|
936
1052
|
"unsupported": [
|
|
937
1053
|
{
|
|
938
|
-
"case": "Create or
|
|
1054
|
+
"case": "Create, update or deactivate",
|
|
939
1055
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
940
|
-
"note": "QBO's CustomerType is read-only via the API
|
|
1056
|
+
"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.",
|
|
1057
|
+
"workaround": "Create, rename or deactivate the type in QuickBooks Desktop itself; the change shows up on the next read."
|
|
941
1058
|
}
|
|
942
1059
|
]
|
|
943
1060
|
},
|
|
@@ -1002,12 +1119,12 @@ var CATALOG = {
|
|
|
1002
1119
|
{
|
|
1003
1120
|
"qbo": "Line",
|
|
1004
1121
|
"support": "partial",
|
|
1005
|
-
"note": "LinkedTxn (PaymentTxnID path) for undeposited payments, or DepositLineDetail{Entity, AccountRef, PaymentMethodRef, CheckNum}.
|
|
1122
|
+
"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."
|
|
1006
1123
|
},
|
|
1007
1124
|
{
|
|
1008
1125
|
"qbo": "CashBack",
|
|
1009
|
-
"support": "
|
|
1010
|
-
"note": "
|
|
1126
|
+
"support": "partial",
|
|
1127
|
+
"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."
|
|
1011
1128
|
},
|
|
1012
1129
|
{
|
|
1013
1130
|
"qbo": "TotalAmt",
|
|
@@ -1034,8 +1151,8 @@ var CATALOG = {
|
|
|
1034
1151
|
"verdict": "live",
|
|
1035
1152
|
"group": "lists",
|
|
1036
1153
|
"read": "full",
|
|
1037
|
-
"write": "
|
|
1038
|
-
"headline": "Read/query
|
|
1154
|
+
"write": "partial",
|
|
1155
|
+
"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",
|
|
1039
1156
|
"fields": [
|
|
1040
1157
|
{
|
|
1041
1158
|
"qbo": "GivenName",
|
|
@@ -1055,7 +1172,8 @@ var CATALOG = {
|
|
|
1055
1172
|
},
|
|
1056
1173
|
{
|
|
1057
1174
|
"qbo": "DisplayName",
|
|
1058
|
-
"support": "
|
|
1175
|
+
"support": "partial",
|
|
1176
|
+
"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)."
|
|
1059
1177
|
},
|
|
1060
1178
|
{
|
|
1061
1179
|
"qbo": "PrintOnCheckName",
|
|
@@ -1064,7 +1182,8 @@ var CATALOG = {
|
|
|
1064
1182
|
},
|
|
1065
1183
|
{
|
|
1066
1184
|
"qbo": "Active",
|
|
1067
|
-
"support": "full"
|
|
1185
|
+
"support": "full",
|
|
1186
|
+
"note": "Deactivate with a sparse update of Active:false; Desktop employees cannot be deleted through qbXML."
|
|
1068
1187
|
},
|
|
1069
1188
|
{
|
|
1070
1189
|
"qbo": "PrimaryPhone",
|
|
@@ -1080,7 +1199,8 @@ var CATALOG = {
|
|
|
1080
1199
|
},
|
|
1081
1200
|
{
|
|
1082
1201
|
"qbo": "PrimaryAddr",
|
|
1083
|
-
"support": "full"
|
|
1202
|
+
"support": "full",
|
|
1203
|
+
"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."
|
|
1084
1204
|
},
|
|
1085
1205
|
{
|
|
1086
1206
|
"qbo": "HiredDate",
|
|
@@ -1096,12 +1216,24 @@ var CATALOG = {
|
|
|
1096
1216
|
},
|
|
1097
1217
|
{
|
|
1098
1218
|
"qbo": "Gender",
|
|
1099
|
-
"support": "full"
|
|
1219
|
+
"support": "full",
|
|
1220
|
+
"note": "Male or Female."
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
"qbo": "SSN",
|
|
1224
|
+
"support": "partial",
|
|
1225
|
+
"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."
|
|
1100
1226
|
},
|
|
1101
1227
|
{
|
|
1102
1228
|
"qbo": "CustomField",
|
|
1103
1229
|
"support": "partial",
|
|
1104
|
-
"note": "Name/StringValue
|
|
1230
|
+
"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)."
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
"qbo": "EmployeeNumber",
|
|
1234
|
+
"support": "none",
|
|
1235
|
+
"note": "Desktop's Employee record has no employee-number field; keep the number in your own system keyed by the TenkeyBridge Id.",
|
|
1236
|
+
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1105
1237
|
},
|
|
1106
1238
|
{
|
|
1107
1239
|
"qbo": "TargetBonus",
|
|
@@ -1118,9 +1250,42 @@ var CATALOG = {
|
|
|
1118
1250
|
],
|
|
1119
1251
|
"unsupported": [
|
|
1120
1252
|
{
|
|
1121
|
-
"case": "
|
|
1253
|
+
"case": "Delete",
|
|
1254
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1255
|
+
"note": "QBO employees are deactivated, not deleted; TenkeyBridge follows that (sparse update with Active:false)."
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
"case": "Payroll fields",
|
|
1259
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1260
|
+
"note": "Pay rates, pay periods, wage items and other EmployeePayrollInfo content are license-gated in Desktop and not exposed for read or write."
|
|
1261
|
+
}
|
|
1262
|
+
]
|
|
1263
|
+
},
|
|
1264
|
+
"Entitlements": {
|
|
1265
|
+
"entity": "Entitlements",
|
|
1266
|
+
"verdict": "live",
|
|
1267
|
+
"group": "platform",
|
|
1268
|
+
"read": "partial",
|
|
1269
|
+
"write": "none",
|
|
1270
|
+
"headline": "GET /v3/company/{realmId}/entitlements \u2014 a static, honest capability document for a QuickBooks Desktop company (no per-file subscription data).",
|
|
1271
|
+
"usage": "GET /v3/company/{realmId}/entitlements",
|
|
1272
|
+
"fields": [
|
|
1273
|
+
{
|
|
1274
|
+
"qbo": "Entitlements.platform",
|
|
1275
|
+
"support": "full",
|
|
1276
|
+
"note": 'Always "QuickBooks Desktop" \u2014 TenkeyBridge talks to Desktop, never to a QBO subscription.'
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"qbo": "Entitlements.features",
|
|
1280
|
+
"support": "partial",
|
|
1281
|
+
"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."
|
|
1282
|
+
}
|
|
1283
|
+
],
|
|
1284
|
+
"unsupported": [
|
|
1285
|
+
{
|
|
1286
|
+
"case": "QBO subscription tier, seats and add-ons",
|
|
1122
1287
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1123
|
-
"note": "
|
|
1288
|
+
"note": "Desktop has no subscription entitlements exposed over qbXML; the response says so explicitly rather than inventing values."
|
|
1124
1289
|
}
|
|
1125
1290
|
]
|
|
1126
1291
|
},
|
|
@@ -1130,7 +1295,7 @@ var CATALOG = {
|
|
|
1130
1295
|
"group": "sales",
|
|
1131
1296
|
"read": "full",
|
|
1132
1297
|
"write": "partial",
|
|
1133
|
-
"headline": "Same shape as Invoice; no
|
|
1298
|
+
"headline": "Same shape as Invoice; expiration date and active/closed status, no acceptance tracking",
|
|
1134
1299
|
"fields": [
|
|
1135
1300
|
{
|
|
1136
1301
|
"qbo": "CustomerRef",
|
|
@@ -1142,7 +1307,8 @@ var CATALOG = {
|
|
|
1142
1307
|
},
|
|
1143
1308
|
{
|
|
1144
1309
|
"qbo": "DocNumber",
|
|
1145
|
-
"support": "full"
|
|
1310
|
+
"support": "full",
|
|
1311
|
+
"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."
|
|
1146
1312
|
},
|
|
1147
1313
|
{
|
|
1148
1314
|
"qbo": "BillAddr",
|
|
@@ -1162,7 +1328,18 @@ var CATALOG = {
|
|
|
1162
1328
|
},
|
|
1163
1329
|
{
|
|
1164
1330
|
"qbo": "DueDate",
|
|
1165
|
-
"support": "full"
|
|
1331
|
+
"support": "full",
|
|
1332
|
+
"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."
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
"qbo": "ExpirationDate",
|
|
1336
|
+
"support": "full",
|
|
1337
|
+
"note": "Maps to the Desktop estimate DueDate. Read and write."
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
"qbo": "TxnStatus",
|
|
1341
|
+
"support": "partial",
|
|
1342
|
+
"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."
|
|
1166
1343
|
},
|
|
1167
1344
|
{
|
|
1168
1345
|
"qbo": "PrivateNote",
|
|
@@ -1176,22 +1353,22 @@ var CATALOG = {
|
|
|
1176
1353
|
{
|
|
1177
1354
|
"qbo": "Line",
|
|
1178
1355
|
"support": "partial",
|
|
1179
|
-
"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
|
|
1356
|
+
"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."
|
|
1180
1357
|
},
|
|
1181
1358
|
{
|
|
1182
1359
|
"qbo": "TxnTaxDetail",
|
|
1183
1360
|
"support": "partial",
|
|
1184
|
-
"note": "
|
|
1361
|
+
"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)."
|
|
1185
1362
|
},
|
|
1186
1363
|
{
|
|
1187
1364
|
"qbo": "LinkedTxn",
|
|
1188
1365
|
"support": "full",
|
|
1189
|
-
"note": "Populated on read from
|
|
1366
|
+
"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."
|
|
1190
1367
|
},
|
|
1191
1368
|
{
|
|
1192
1369
|
"qbo": "CustomField",
|
|
1193
1370
|
"support": "partial",
|
|
1194
|
-
"note": "Name/StringValue
|
|
1371
|
+
"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."
|
|
1195
1372
|
},
|
|
1196
1373
|
{
|
|
1197
1374
|
"qbo": "TotalAmt",
|
|
@@ -1208,12 +1385,6 @@ var CATALOG = {
|
|
|
1208
1385
|
"support": "partial",
|
|
1209
1386
|
"note": "Accepted and ignored \u2014 Desktop manages this itself; multi-currency mapping lands later."
|
|
1210
1387
|
},
|
|
1211
|
-
{
|
|
1212
|
-
"qbo": "ExpirationDate",
|
|
1213
|
-
"support": "none",
|
|
1214
|
-
"note": "Desktop estimates have no expiration date. Track it in your own system if needed.",
|
|
1215
|
-
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1216
|
-
},
|
|
1217
1388
|
{
|
|
1218
1389
|
"qbo": "AcceptedBy",
|
|
1219
1390
|
"support": "none",
|
|
@@ -1225,24 +1396,13 @@ var CATALOG = {
|
|
|
1225
1396
|
"support": "none",
|
|
1226
1397
|
"note": "Desktop estimates have no accepted-date field. Track acceptance in your own system.",
|
|
1227
1398
|
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1228
|
-
},
|
|
1229
|
-
{
|
|
1230
|
-
"qbo": "TxnStatus",
|
|
1231
|
-
"support": "none",
|
|
1232
|
-
"note": "Desktop estimates have no status field matching QBO's Pending/Accepted/Closed/Rejected enum. Track status in your own system.",
|
|
1233
|
-
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1234
1399
|
}
|
|
1235
1400
|
],
|
|
1236
1401
|
"unsupported": [
|
|
1237
|
-
{
|
|
1238
|
-
"case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
|
|
1239
|
-
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1240
|
-
"note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
|
|
1241
|
-
},
|
|
1242
1402
|
{
|
|
1243
1403
|
"case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
|
|
1244
1404
|
"error": "MISSING_REQUIRED_DESKTOP_ITEM",
|
|
1245
|
-
"note": "Desktop discounts are items. Create a discount item in
|
|
1405
|
+
"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."
|
|
1246
1406
|
},
|
|
1247
1407
|
{
|
|
1248
1408
|
"case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly",
|
|
@@ -1299,6 +1459,65 @@ var CATALOG = {
|
|
|
1299
1459
|
}
|
|
1300
1460
|
]
|
|
1301
1461
|
},
|
|
1462
|
+
"InventoryAdjustment": {
|
|
1463
|
+
"entity": "InventoryAdjustment",
|
|
1464
|
+
"verdict": "live",
|
|
1465
|
+
"group": "purchasing",
|
|
1466
|
+
"read": "full",
|
|
1467
|
+
"write": "partial",
|
|
1468
|
+
"headline": "Quantity adjustments to inventory items \u2014 create, read, header update and delete (live-verified); line edits need delete + re-create",
|
|
1469
|
+
"fields": [
|
|
1470
|
+
{
|
|
1471
|
+
"qbo": "AdjustAccountRef",
|
|
1472
|
+
"support": "full",
|
|
1473
|
+
"note": "Desktop AccountRef \u2014 the adjustment (offset) account. Required on create."
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
"qbo": "TxnDate",
|
|
1477
|
+
"support": "full"
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
"qbo": "DocNumber",
|
|
1481
|
+
"support": "full",
|
|
1482
|
+
"note": "Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050)."
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
"qbo": "PrivateNote",
|
|
1486
|
+
"support": "full",
|
|
1487
|
+
"note": "Desktop Memo."
|
|
1488
|
+
},
|
|
1489
|
+
{
|
|
1490
|
+
"qbo": "Line",
|
|
1491
|
+
"support": "partial",
|
|
1492
|
+
"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."
|
|
1493
|
+
},
|
|
1494
|
+
{
|
|
1495
|
+
"qbo": "CurrencyRef",
|
|
1496
|
+
"support": "none",
|
|
1497
|
+
"note": "Multicurrency not yet supported.",
|
|
1498
|
+
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
"qbo": "ExchangeRate",
|
|
1502
|
+
"support": "none",
|
|
1503
|
+
"note": "Multicurrency not yet supported.",
|
|
1504
|
+
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1505
|
+
}
|
|
1506
|
+
],
|
|
1507
|
+
"unsupported": [
|
|
1508
|
+
{
|
|
1509
|
+
"case": "Line update",
|
|
1510
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1511
|
+
"note": "A sparse update can change header fields only (AdjustAccountRef, TxnDate, DocNumber, PrivateNote). To change quantities, delete the adjustment and create a new one.",
|
|
1512
|
+
"workaround": "POST ?operation=delete with the Id, then create a corrected InventoryAdjustment."
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
"case": "Absolute quantity (NewQuantity) and value adjustments",
|
|
1516
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1517
|
+
"note": "QBO's InventoryAdjustment only has QtyDiff (a delta), so Desktop's NewQuantity/NewValue forms have no QBO field to map from."
|
|
1518
|
+
}
|
|
1519
|
+
]
|
|
1520
|
+
},
|
|
1302
1521
|
"Invoice": {
|
|
1303
1522
|
"entity": "Invoice",
|
|
1304
1523
|
"verdict": "live",
|
|
@@ -1317,7 +1536,8 @@ var CATALOG = {
|
|
|
1317
1536
|
},
|
|
1318
1537
|
{
|
|
1319
1538
|
"qbo": "DocNumber",
|
|
1320
|
-
"support": "full"
|
|
1539
|
+
"support": "full",
|
|
1540
|
+
"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."
|
|
1321
1541
|
},
|
|
1322
1542
|
{
|
|
1323
1543
|
"qbo": "BillAddr",
|
|
@@ -1359,22 +1579,22 @@ var CATALOG = {
|
|
|
1359
1579
|
{
|
|
1360
1580
|
"qbo": "Line",
|
|
1361
1581
|
"support": "partial",
|
|
1362
|
-
"note": "SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail requires a Desktop discount item
|
|
1582
|
+
"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."
|
|
1363
1583
|
},
|
|
1364
1584
|
{
|
|
1365
1585
|
"qbo": "TxnTaxDetail",
|
|
1366
1586
|
"support": "partial",
|
|
1367
|
-
"note": "
|
|
1587
|
+
"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)."
|
|
1368
1588
|
},
|
|
1369
1589
|
{
|
|
1370
1590
|
"qbo": "LinkedTxn",
|
|
1371
1591
|
"support": "full",
|
|
1372
|
-
"note": "Populated on read from
|
|
1592
|
+
"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."
|
|
1373
1593
|
},
|
|
1374
1594
|
{
|
|
1375
1595
|
"qbo": "CustomField",
|
|
1376
1596
|
"support": "partial",
|
|
1377
|
-
"note": "Name/StringValue
|
|
1597
|
+
"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)."
|
|
1378
1598
|
},
|
|
1379
1599
|
{
|
|
1380
1600
|
"qbo": "TotalAmt",
|
|
@@ -1395,18 +1615,18 @@ var CATALOG = {
|
|
|
1395
1615
|
"qbo": "ExchangeRate",
|
|
1396
1616
|
"support": "partial",
|
|
1397
1617
|
"note": "Accepted and ignored \u2014 Desktop manages this itself; multi-currency mapping lands later."
|
|
1618
|
+
},
|
|
1619
|
+
{
|
|
1620
|
+
"qbo": "operation=void",
|
|
1621
|
+
"support": "partial",
|
|
1622
|
+
"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)."
|
|
1398
1623
|
}
|
|
1399
1624
|
],
|
|
1400
1625
|
"unsupported": [
|
|
1401
|
-
{
|
|
1402
|
-
"case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
|
|
1403
|
-
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1404
|
-
"note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
|
|
1405
|
-
},
|
|
1406
1626
|
{
|
|
1407
1627
|
"case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
|
|
1408
1628
|
"error": "MISSING_REQUIRED_DESKTOP_ITEM",
|
|
1409
|
-
"note": "Desktop discounts are items. Create a discount item in
|
|
1629
|
+
"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."
|
|
1410
1630
|
},
|
|
1411
1631
|
{
|
|
1412
1632
|
"case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly (e.g. SubTotalLineDetail)",
|
|
@@ -1420,72 +1640,83 @@ var CATALOG = {
|
|
|
1420
1640
|
"verdict": "live",
|
|
1421
1641
|
"group": "sales",
|
|
1422
1642
|
"read": "partial",
|
|
1423
|
-
"write": "
|
|
1643
|
+
"write": "partial",
|
|
1424
1644
|
"headline": "One Item becomes several Desktop item types",
|
|
1425
1645
|
"fields": [
|
|
1426
1646
|
{
|
|
1427
1647
|
"qbo": "Name",
|
|
1428
|
-
"support": "full"
|
|
1648
|
+
"support": "full",
|
|
1649
|
+
"note": "Desktop item Name is the leaf name (max 31 characters); FullyQualifiedName is derived."
|
|
1429
1650
|
},
|
|
1430
1651
|
{
|
|
1431
1652
|
"qbo": "FullyQualifiedName",
|
|
1432
1653
|
"support": "full",
|
|
1433
|
-
"note": "Read-only
|
|
1654
|
+
"note": "Read-only; derived from the Desktop FullName. Echoed values on update are ignored."
|
|
1434
1655
|
},
|
|
1435
1656
|
{
|
|
1436
1657
|
"qbo": "Active",
|
|
1437
1658
|
"support": "full",
|
|
1438
|
-
"note": "
|
|
1659
|
+
"note": "Deactivate with a sparse update setting Active to false; items are never deleted."
|
|
1439
1660
|
},
|
|
1440
1661
|
{
|
|
1441
1662
|
"qbo": "Type",
|
|
1442
1663
|
"support": "partial",
|
|
1443
|
-
"note": "Service, NonInventory, Inventory
|
|
1664
|
+
"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."
|
|
1444
1665
|
},
|
|
1445
1666
|
{
|
|
1446
1667
|
"qbo": "Description",
|
|
1447
1668
|
"support": "full",
|
|
1448
|
-
"note": "
|
|
1669
|
+
"note": "Desktop sales description: SalesOrPurchase/Desc, SalesAndPurchase/SalesDesc, or SalesDesc on Inventory."
|
|
1449
1670
|
},
|
|
1450
1671
|
{
|
|
1451
1672
|
"qbo": "UnitPrice",
|
|
1452
1673
|
"support": "full",
|
|
1453
|
-
"note": "
|
|
1674
|
+
"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."
|
|
1454
1675
|
},
|
|
1455
1676
|
{
|
|
1456
1677
|
"qbo": "Sku",
|
|
1457
1678
|
"support": "partial",
|
|
1458
|
-
"note": "QBO Sku
|
|
1679
|
+
"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."
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"qbo": "TrackQtyOnHand",
|
|
1683
|
+
"support": "partial",
|
|
1684
|
+
"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."
|
|
1459
1685
|
},
|
|
1460
1686
|
{
|
|
1461
1687
|
"qbo": "QtyOnHand",
|
|
1462
|
-
"support": "
|
|
1463
|
-
"note": "Read
|
|
1688
|
+
"support": "partial",
|
|
1689
|
+
"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."
|
|
1690
|
+
},
|
|
1691
|
+
{
|
|
1692
|
+
"qbo": "InvStartDate",
|
|
1693
|
+
"support": "partial",
|
|
1694
|
+
"note": "Write-only, create only (Desktop InventoryDate). Not returned on read."
|
|
1464
1695
|
},
|
|
1465
1696
|
{
|
|
1466
1697
|
"qbo": "IncomeAccountRef",
|
|
1467
1698
|
"support": "full",
|
|
1468
|
-
"note": "
|
|
1699
|
+
"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)."
|
|
1469
1700
|
},
|
|
1470
1701
|
{
|
|
1471
1702
|
"qbo": "ExpenseAccountRef",
|
|
1472
1703
|
"support": "partial",
|
|
1473
|
-
"note": "Inventory: COGSAccountRef. Two-sided Service/NonInventory (SalesAndPurchase): ExpenseAccountRef. One-sided Service/NonInventory have no expense account."
|
|
1704
|
+
"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."
|
|
1474
1705
|
},
|
|
1475
1706
|
{
|
|
1476
1707
|
"qbo": "AssetAccountRef",
|
|
1477
1708
|
"support": "full",
|
|
1478
|
-
"note": "
|
|
1709
|
+
"note": "Inventory only; required on create."
|
|
1479
1710
|
},
|
|
1480
1711
|
{
|
|
1481
1712
|
"qbo": "PurchaseDesc",
|
|
1482
1713
|
"support": "full",
|
|
1483
|
-
"note": "Inventory and two-sided Service/NonInventory (SalesAndPurchase)."
|
|
1714
|
+
"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."
|
|
1484
1715
|
},
|
|
1485
1716
|
{
|
|
1486
1717
|
"qbo": "PurchaseCost",
|
|
1487
1718
|
"support": "full",
|
|
1488
|
-
"note": "Inventory and two-sided Service/NonInventory (SalesAndPurchase)."
|
|
1719
|
+
"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."
|
|
1489
1720
|
},
|
|
1490
1721
|
{
|
|
1491
1722
|
"qbo": "PrefVendorRef",
|
|
@@ -1495,29 +1726,54 @@ var CATALOG = {
|
|
|
1495
1726
|
{
|
|
1496
1727
|
"qbo": "ParentRef",
|
|
1497
1728
|
"support": "full",
|
|
1498
|
-
"note": "Desktop item hierarchy."
|
|
1729
|
+
"note": "Desktop item hierarchy; sub-items are FullName paths (Parent:Child)."
|
|
1499
1730
|
},
|
|
1500
1731
|
{
|
|
1501
1732
|
"qbo": "SubItem",
|
|
1502
1733
|
"support": "full",
|
|
1503
|
-
"note": "Derived from Desktop Sublevel."
|
|
1734
|
+
"note": "Derived from Desktop Sublevel; read-only."
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
"qbo": "ClassRef",
|
|
1738
|
+
"support": "full",
|
|
1739
|
+
"note": "Desktop ClassRef."
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
"qbo": "SalesTaxCodeRef",
|
|
1743
|
+
"support": "full",
|
|
1744
|
+
"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."
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
"qbo": "Taxable",
|
|
1748
|
+
"support": "partial",
|
|
1749
|
+
"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."
|
|
1504
1750
|
},
|
|
1505
1751
|
{
|
|
1506
1752
|
"qbo": "CustomField",
|
|
1507
1753
|
"support": "partial",
|
|
1508
|
-
"note": "Name/StringValue
|
|
1754
|
+
"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)."
|
|
1509
1755
|
}
|
|
1510
1756
|
],
|
|
1511
1757
|
"unsupported": [
|
|
1512
1758
|
{
|
|
1513
|
-
"case": "Item types other than Service, NonInventory, Inventory, and
|
|
1759
|
+
"case": "Item types other than Service, NonInventory, Inventory, Group, other-charge and discount (assemblies, sales tax items, payment items, fixed assets, subtotal)",
|
|
1514
1760
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1515
1761
|
"note": "Omitted from query results; a direct get by id on one of these Desktop items returns a 422 UNSUPPORTED_BY_DESKTOP fault."
|
|
1516
1762
|
},
|
|
1517
1763
|
{
|
|
1518
|
-
"case": "
|
|
1764
|
+
"case": "Creating or updating Group (and Category) items, or updating discount items",
|
|
1519
1765
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1520
|
-
"note": "
|
|
1766
|
+
"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."
|
|
1767
|
+
},
|
|
1768
|
+
{
|
|
1769
|
+
"case": "Adding purchase-side fields to an existing sales-only Service/NonInventory item",
|
|
1770
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1771
|
+
"note": "Desktop rejects the SalesOrPurchase to SalesAndPurchase conversion (error 3170). Include PurchaseDesc, PurchaseCost, ExpenseAccountRef or PrefVendorRef when the item is created."
|
|
1772
|
+
},
|
|
1773
|
+
{
|
|
1774
|
+
"case": "Changing QtyOnHand after creation",
|
|
1775
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1776
|
+
"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.)"
|
|
1521
1777
|
}
|
|
1522
1778
|
]
|
|
1523
1779
|
},
|
|
@@ -1571,7 +1827,8 @@ var CATALOG = {
|
|
|
1571
1827
|
},
|
|
1572
1828
|
{
|
|
1573
1829
|
"qbo": "DocNumber",
|
|
1574
|
-
"support": "full"
|
|
1830
|
+
"support": "full",
|
|
1831
|
+
"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."
|
|
1575
1832
|
},
|
|
1576
1833
|
{
|
|
1577
1834
|
"qbo": "PrivateNote",
|
|
@@ -1586,7 +1843,7 @@ var CATALOG = {
|
|
|
1586
1843
|
{
|
|
1587
1844
|
"qbo": "Line",
|
|
1588
1845
|
"support": "partial",
|
|
1589
|
-
"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.
|
|
1846
|
+
"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."
|
|
1590
1847
|
},
|
|
1591
1848
|
{
|
|
1592
1849
|
"qbo": "TotalAmt",
|
|
@@ -1642,7 +1899,7 @@ var CATALOG = {
|
|
|
1642
1899
|
{
|
|
1643
1900
|
"qbo": "PaymentRefNum",
|
|
1644
1901
|
"support": "full",
|
|
1645
|
-
"note": "Desktop RefNumber.
|
|
1902
|
+
"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)."
|
|
1646
1903
|
},
|
|
1647
1904
|
{
|
|
1648
1905
|
"qbo": "TotalAmt",
|
|
@@ -1664,7 +1921,7 @@ var CATALOG = {
|
|
|
1664
1921
|
{
|
|
1665
1922
|
"qbo": "Line",
|
|
1666
1923
|
"support": "partial",
|
|
1667
|
-
"note": "LinkedTxn
|
|
1924
|
+
"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."
|
|
1668
1925
|
},
|
|
1669
1926
|
{
|
|
1670
1927
|
"qbo": "UnappliedAmt",
|
|
@@ -1704,7 +1961,13 @@ var CATALOG = {
|
|
|
1704
1961
|
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1705
1962
|
}
|
|
1706
1963
|
],
|
|
1707
|
-
"unsupported": [
|
|
1964
|
+
"unsupported": [
|
|
1965
|
+
{
|
|
1966
|
+
"case": "operation=void",
|
|
1967
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1968
|
+
"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."
|
|
1969
|
+
}
|
|
1970
|
+
]
|
|
1708
1971
|
},
|
|
1709
1972
|
"PaymentMethod": {
|
|
1710
1973
|
"entity": "PaymentMethod",
|
|
@@ -1805,7 +2068,7 @@ var CATALOG = {
|
|
|
1805
2068
|
"note": "Preferences is read/query only in QBO and Desktop \u2014 there is no PreferencesAdd/Mod."
|
|
1806
2069
|
},
|
|
1807
2070
|
{
|
|
1808
|
-
"case": "Any WHERE clause, or STARTPOSITION/MAXRESULTS",
|
|
2071
|
+
"case": "Any WHERE clause, ORDERBY, COUNT(*), column list, or STARTPOSITION/MAXRESULTS",
|
|
1809
2072
|
"error": "UNSUPPORTED_QUERY",
|
|
1810
2073
|
"note": "PreferencesQueryRq takes no filters and always returns the single open company PreferencesRet. Use SELECT * FROM Preferences."
|
|
1811
2074
|
}
|
|
@@ -1845,7 +2108,8 @@ var CATALOG = {
|
|
|
1845
2108
|
},
|
|
1846
2109
|
{
|
|
1847
2110
|
"qbo": "DocNumber",
|
|
1848
|
-
"support": "full"
|
|
2111
|
+
"support": "full",
|
|
2112
|
+
"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."
|
|
1849
2113
|
},
|
|
1850
2114
|
{
|
|
1851
2115
|
"qbo": "PrivateNote",
|
|
@@ -1877,6 +2141,11 @@ var CATALOG = {
|
|
|
1877
2141
|
"support": "none",
|
|
1878
2142
|
"note": "Multicurrency not yet supported.",
|
|
1879
2143
|
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
2144
|
+
},
|
|
2145
|
+
{
|
|
2146
|
+
"qbo": "operation=void",
|
|
2147
|
+
"support": "partial",
|
|
2148
|
+
"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)."
|
|
1880
2149
|
}
|
|
1881
2150
|
],
|
|
1882
2151
|
"unsupported": [
|
|
@@ -1910,7 +2179,8 @@ var CATALOG = {
|
|
|
1910
2179
|
},
|
|
1911
2180
|
{
|
|
1912
2181
|
"qbo": "DocNumber",
|
|
1913
|
-
"support": "full"
|
|
2182
|
+
"support": "full",
|
|
2183
|
+
"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."
|
|
1914
2184
|
},
|
|
1915
2185
|
{
|
|
1916
2186
|
"qbo": "VendorAddr",
|
|
@@ -1936,10 +2206,15 @@ var CATALOG = {
|
|
|
1936
2206
|
"qbo": "PrivateNote",
|
|
1937
2207
|
"support": "full"
|
|
1938
2208
|
},
|
|
2209
|
+
{
|
|
2210
|
+
"qbo": "CustomField",
|
|
2211
|
+
"support": "partial",
|
|
2212
|
+
"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)."
|
|
2213
|
+
},
|
|
1939
2214
|
{
|
|
1940
2215
|
"qbo": "Line",
|
|
1941
2216
|
"support": "partial",
|
|
1942
|
-
"note": "ItemBasedExpenseLineDetail only (PurchaseOrderLineAdd). AccountBasedExpenseLineDetail returns UNSUPPORTED_BY_DESKTOP. ReceivedQty maps from ReceivedQuantity on read (read-only).
|
|
2217
|
+
"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."
|
|
1943
2218
|
},
|
|
1944
2219
|
{
|
|
1945
2220
|
"qbo": "TotalAmt",
|
|
@@ -1949,7 +2224,7 @@ var CATALOG = {
|
|
|
1949
2224
|
{
|
|
1950
2225
|
"qbo": "POStatus",
|
|
1951
2226
|
"support": "partial",
|
|
1952
|
-
"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).
|
|
2227
|
+
"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."
|
|
1953
2228
|
},
|
|
1954
2229
|
{
|
|
1955
2230
|
"qbo": "APAccountRef",
|
|
@@ -2048,7 +2323,8 @@ var CATALOG = {
|
|
|
2048
2323
|
},
|
|
2049
2324
|
{
|
|
2050
2325
|
"qbo": "DocNumber",
|
|
2051
|
-
"support": "full"
|
|
2326
|
+
"support": "full",
|
|
2327
|
+
"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."
|
|
2052
2328
|
},
|
|
2053
2329
|
{
|
|
2054
2330
|
"qbo": "PrivateNote",
|
|
@@ -2081,7 +2357,7 @@ var CATALOG = {
|
|
|
2081
2357
|
{
|
|
2082
2358
|
"case": "Item-line RefundReceipt (SalesItemLineDetail etc.)",
|
|
2083
2359
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2084
|
-
"note": "Desktop has no
|
|
2360
|
+
"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."
|
|
2085
2361
|
},
|
|
2086
2362
|
{
|
|
2087
2363
|
"case": "Update / sparse update",
|
|
@@ -2133,46 +2409,103 @@ var CATALOG = {
|
|
|
2133
2409
|
"group": "platform",
|
|
2134
2410
|
"read": "partial",
|
|
2135
2411
|
"write": "none",
|
|
2136
|
-
"headline": "
|
|
2137
|
-
"usage": "GET /v3/company/{realmId}/reports/ProfitAndLoss?start_date=2026-01-01&end_date=2026-12-31",
|
|
2412
|
+
"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.",
|
|
2413
|
+
"usage": "GET /v3/company/{realmId}/reports/ProfitAndLoss?start_date=2026-01-01&end_date=2026-12-31&summarize_column_by=Month",
|
|
2138
2414
|
"fields": [
|
|
2139
2415
|
{
|
|
2140
2416
|
"qbo": "ProfitAndLoss / BalanceSheet / TrialBalance",
|
|
2141
2417
|
"support": "full",
|
|
2142
|
-
"note": "GeneralSummaryReportQueryRq (ProfitAndLossStandard / BalanceSheetStandard / TrialBalance). Values verbatim from Desktop \u2014 no recomputation."
|
|
2418
|
+
"note": "GeneralSummaryReportQueryRq (ProfitAndLossStandard / BalanceSheetStandard / TrialBalance). Values verbatim from Desktop \u2014 no recomputation. BalanceSheet also takes report_date as an as-of."
|
|
2143
2419
|
},
|
|
2144
2420
|
{
|
|
2145
2421
|
"qbo": "AgedReceivables / AgedPayables",
|
|
2146
2422
|
"support": "full",
|
|
2147
2423
|
"note": "AgingReportQueryRq (ARAgingSummary / APAgingSummary). Desktop's file-configured aging buckets come back as columns, honestly."
|
|
2148
2424
|
},
|
|
2425
|
+
{
|
|
2426
|
+
"qbo": "CustomerBalance / VendorBalance",
|
|
2427
|
+
"support": "full",
|
|
2428
|
+
"note": "CustomerBalanceSummary / VendorBalanceSummary. As-of (report_date). Month (and the other period splits) are accepted; Desktop refuses ReportBasis here."
|
|
2429
|
+
},
|
|
2430
|
+
{
|
|
2431
|
+
"qbo": "CustomerIncome / VendorExpenses",
|
|
2432
|
+
"support": "full",
|
|
2433
|
+
"note": "IncomeByCustomerSummary / ExpenseByVendorSummary."
|
|
2434
|
+
},
|
|
2435
|
+
{
|
|
2436
|
+
"qbo": "CustomerSales / ItemSales (aliases SalesByCustomer / SalesByProduct)",
|
|
2437
|
+
"support": "full",
|
|
2438
|
+
"note": "SalesByCustomerSummary / SalesByItemSummary. ItemSales carries Desktop's extra columns (% of Sales, Avg Price, COGS, Gross Margin)."
|
|
2439
|
+
},
|
|
2440
|
+
{
|
|
2441
|
+
"qbo": "InventoryValuationSummary",
|
|
2442
|
+
"support": "full",
|
|
2443
|
+
"note": "InventoryValuationSummary, as-of (report_date), item filter only. Desktop refuses ReportBasis and SummarizeColumnsBy here."
|
|
2444
|
+
},
|
|
2445
|
+
{
|
|
2446
|
+
"qbo": "ProfitAndLossDetail / GeneralLedger",
|
|
2447
|
+
"support": "partial",
|
|
2448
|
+
"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)."
|
|
2449
|
+
},
|
|
2450
|
+
{
|
|
2451
|
+
"qbo": "JournalReport / TransactionList",
|
|
2452
|
+
"support": "partial",
|
|
2453
|
+
"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."
|
|
2454
|
+
},
|
|
2455
|
+
{
|
|
2456
|
+
"qbo": "CustomerBalanceDetail / VendorBalanceDetail",
|
|
2457
|
+
"support": "partial",
|
|
2458
|
+
"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."
|
|
2459
|
+
},
|
|
2460
|
+
{
|
|
2461
|
+
"qbo": "AgedReceivableDetail / AgedPayableDetail",
|
|
2462
|
+
"support": "partial",
|
|
2463
|
+
"note": "AgingReportQueryRq ARAgingDetail / APAgingDetail, as-of (report_date), with the receivable (customer) or payable (vendor) filter. ColKeys best-effort."
|
|
2464
|
+
},
|
|
2149
2465
|
{
|
|
2150
2466
|
"qbo": "start_date / end_date / date_macro",
|
|
2151
2467
|
"support": "full",
|
|
2152
|
-
"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."
|
|
2468
|
+
"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."
|
|
2153
2469
|
},
|
|
2154
2470
|
{
|
|
2155
2471
|
"qbo": "report_date",
|
|
2156
2472
|
"support": "full",
|
|
2157
|
-
"note": "The
|
|
2473
|
+
"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."
|
|
2158
2474
|
},
|
|
2159
2475
|
{
|
|
2160
2476
|
"qbo": "accounting_method",
|
|
2161
2477
|
"support": "partial",
|
|
2162
|
-
"note": "Cash/Accrual on the
|
|
2478
|
+
"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.",
|
|
2479
|
+
"error": "REPORT_UNSUPPORTED_OPTION"
|
|
2480
|
+
},
|
|
2481
|
+
{
|
|
2482
|
+
"qbo": "summarize_column_by",
|
|
2483
|
+
"support": "partial",
|
|
2484
|
+
"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.",
|
|
2485
|
+
"error": "REPORT_UNSUPPORTED_OPTION"
|
|
2486
|
+
},
|
|
2487
|
+
{
|
|
2488
|
+
"qbo": "customer / vendor / item / class",
|
|
2489
|
+
"support": "partial",
|
|
2490
|
+
"note": "Comma-separated Ids \u2192 ReportEntityFilter (customer + vendor) / ReportItemFilter / ReportClassFilter. AR reports accept customer only, AP reports vendor only; InventoryValuationSummary accepts item only.",
|
|
2163
2491
|
"error": "REPORT_UNSUPPORTED_OPTION"
|
|
2164
2492
|
},
|
|
2165
2493
|
{
|
|
2166
2494
|
"qbo": "Column titles",
|
|
2167
2495
|
"support": "partial",
|
|
2168
|
-
"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."
|
|
2496
|
+
"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)."
|
|
2169
2497
|
}
|
|
2170
2498
|
],
|
|
2171
2499
|
"unsupported": [
|
|
2172
2500
|
{
|
|
2173
|
-
"case": "
|
|
2501
|
+
"case": "CashFlow",
|
|
2502
|
+
"error": "REPORT_UNKNOWN",
|
|
2503
|
+
"note": "QuickBooks Desktop's SDK has no cash-flow report (StatementOfCashFlows is refused with 3110 on every qbXML version)."
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
"case": "columns / department / qzurl / adjusted_gain_loss",
|
|
2174
2507
|
"error": "REPORT_UNSUPPORTED_OPTION",
|
|
2175
|
-
"note": "Column
|
|
2508
|
+
"note": "Column selection has no qbXML equivalent; Desktop has no departments (use class); QuickZoom URLs and multicurrency gain/loss adjustment are QBO-only."
|
|
2176
2509
|
},
|
|
2177
2510
|
{
|
|
2178
2511
|
"case": "aging_period / num_periods / aging_method",
|
|
@@ -2180,14 +2513,14 @@ var CATALOG = {
|
|
|
2180
2513
|
"note": "Desktop aging buckets are company-file configuration, not request parameters."
|
|
2181
2514
|
},
|
|
2182
2515
|
{
|
|
2183
|
-
"case": "summarize_column_by
|
|
2516
|
+
"case": "summarize_column_by = Employees / ProductsAndServices / Departments / Location",
|
|
2184
2517
|
"error": "REPORT_UNSUPPORTED_OPTION",
|
|
2185
|
-
"note": "qbXML SummarizeColumnsBy
|
|
2518
|
+
"note": "qbXML's SummarizeColumnsBy has no per-item, per-employee or per-location split (ItemType splits by item type, not by item)."
|
|
2186
2519
|
},
|
|
2187
2520
|
{
|
|
2188
|
-
"case": "other QBO report names (
|
|
2521
|
+
"case": "other QBO report names (class/department sales, tax, account list, ...)",
|
|
2189
2522
|
"error": "REPORT_UNKNOWN",
|
|
2190
|
-
"note": "
|
|
2523
|
+
"note": "Not shipped. The fault lists the supported reports."
|
|
2191
2524
|
}
|
|
2192
2525
|
]
|
|
2193
2526
|
},
|
|
@@ -2209,7 +2542,8 @@ var CATALOG = {
|
|
|
2209
2542
|
},
|
|
2210
2543
|
{
|
|
2211
2544
|
"qbo": "DocNumber",
|
|
2212
|
-
"support": "full"
|
|
2545
|
+
"support": "full",
|
|
2546
|
+
"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."
|
|
2213
2547
|
},
|
|
2214
2548
|
{
|
|
2215
2549
|
"qbo": "BillAddr",
|
|
@@ -2243,12 +2577,12 @@ var CATALOG = {
|
|
|
2243
2577
|
{
|
|
2244
2578
|
"qbo": "Line",
|
|
2245
2579
|
"support": "partial",
|
|
2246
|
-
"note": "SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail requires a Desktop discount item
|
|
2580
|
+
"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."
|
|
2247
2581
|
},
|
|
2248
2582
|
{
|
|
2249
2583
|
"qbo": "TxnTaxDetail",
|
|
2250
2584
|
"support": "partial",
|
|
2251
|
-
"note": "
|
|
2585
|
+
"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)."
|
|
2252
2586
|
},
|
|
2253
2587
|
{
|
|
2254
2588
|
"qbo": "LinkedTxn",
|
|
@@ -2258,7 +2592,7 @@ var CATALOG = {
|
|
|
2258
2592
|
{
|
|
2259
2593
|
"qbo": "CustomField",
|
|
2260
2594
|
"support": "partial",
|
|
2261
|
-
"note": "Name/StringValue
|
|
2595
|
+
"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."
|
|
2262
2596
|
},
|
|
2263
2597
|
{
|
|
2264
2598
|
"qbo": "TotalAmt",
|
|
@@ -2274,13 +2608,49 @@ var CATALOG = {
|
|
|
2274
2608
|
"qbo": "ExchangeRate",
|
|
2275
2609
|
"support": "partial",
|
|
2276
2610
|
"note": "Accepted and ignored \u2014 Desktop manages this itself; multi-currency mapping lands later."
|
|
2611
|
+
},
|
|
2612
|
+
{
|
|
2613
|
+
"qbo": "operation=void",
|
|
2614
|
+
"support": "partial",
|
|
2615
|
+
"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)."
|
|
2277
2616
|
}
|
|
2278
2617
|
],
|
|
2618
|
+
"unsupported": []
|
|
2619
|
+
},
|
|
2620
|
+
"Tag": {
|
|
2621
|
+
"entity": "Tag",
|
|
2622
|
+
"verdict": "gap",
|
|
2623
|
+
"group": "gaps",
|
|
2624
|
+
"read": "none",
|
|
2625
|
+
"write": "none",
|
|
2626
|
+
"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.",
|
|
2627
|
+
"fields": [],
|
|
2279
2628
|
"unsupported": [
|
|
2280
2629
|
{
|
|
2281
|
-
"case": "
|
|
2630
|
+
"case": "read",
|
|
2631
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2632
|
+
"note": "qbXML has no Tag or TagClassification message; Desktop has no equivalent many-to-many labeling of transactions.",
|
|
2633
|
+
"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."
|
|
2634
|
+
},
|
|
2635
|
+
{
|
|
2636
|
+
"case": "query",
|
|
2637
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2638
|
+
"note": "There is no Desktop tag list to query."
|
|
2639
|
+
},
|
|
2640
|
+
{
|
|
2641
|
+
"case": "create",
|
|
2642
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2643
|
+
"note": "Desktop cannot store tags, so none can be created."
|
|
2644
|
+
},
|
|
2645
|
+
{
|
|
2646
|
+
"case": "update",
|
|
2647
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2648
|
+
"note": "Desktop cannot store tags, so none can be updated."
|
|
2649
|
+
},
|
|
2650
|
+
{
|
|
2651
|
+
"case": "delete",
|
|
2282
2652
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2283
|
-
"note": "Desktop cannot
|
|
2653
|
+
"note": "Desktop cannot store tags, so none can be deleted."
|
|
2284
2654
|
}
|
|
2285
2655
|
]
|
|
2286
2656
|
},
|
|
@@ -2395,6 +2765,43 @@ var CATALOG = {
|
|
|
2395
2765
|
],
|
|
2396
2766
|
"unsupported": []
|
|
2397
2767
|
},
|
|
2768
|
+
"TaxPayment": {
|
|
2769
|
+
"entity": "TaxPayment",
|
|
2770
|
+
"verdict": "planned",
|
|
2771
|
+
"group": "planned",
|
|
2772
|
+
"read": "none",
|
|
2773
|
+
"write": "none",
|
|
2774
|
+
"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.",
|
|
2775
|
+
"fields": [],
|
|
2776
|
+
"unsupported": [
|
|
2777
|
+
{
|
|
2778
|
+
"case": "read",
|
|
2779
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2780
|
+
"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.",
|
|
2781
|
+
"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."
|
|
2782
|
+
},
|
|
2783
|
+
{
|
|
2784
|
+
"case": "query",
|
|
2785
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2786
|
+
"note": "Not implemented; see read."
|
|
2787
|
+
},
|
|
2788
|
+
{
|
|
2789
|
+
"case": "create",
|
|
2790
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2791
|
+
"note": "QBO's TaxPayment is read-only via the API; TenkeyBridge matches that."
|
|
2792
|
+
},
|
|
2793
|
+
{
|
|
2794
|
+
"case": "update",
|
|
2795
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2796
|
+
"note": "QBO's TaxPayment is read-only via the API; TenkeyBridge matches that."
|
|
2797
|
+
},
|
|
2798
|
+
{
|
|
2799
|
+
"case": "delete",
|
|
2800
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2801
|
+
"note": "QBO's TaxPayment is read-only via the API; TenkeyBridge matches that."
|
|
2802
|
+
}
|
|
2803
|
+
]
|
|
2804
|
+
},
|
|
2398
2805
|
"TaxRate": {
|
|
2399
2806
|
"entity": "TaxRate",
|
|
2400
2807
|
"verdict": "live",
|
|
@@ -2715,7 +3122,7 @@ var CATALOG = {
|
|
|
2715
3122
|
{
|
|
2716
3123
|
"case": "Delete",
|
|
2717
3124
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2718
|
-
"note": '"Transfer" is not a valid qbXML TxnDelType enum value, so delete is not wired for this entity.'
|
|
3125
|
+
"note": '"Transfer" is not a valid qbXML TxnDelType enum value (verified live: status 3110), so delete is not wired for this entity.'
|
|
2719
3126
|
}
|
|
2720
3127
|
]
|
|
2721
3128
|
},
|
|
@@ -2802,7 +3209,7 @@ var CATALOG = {
|
|
|
2802
3209
|
{
|
|
2803
3210
|
"qbo": "CustomField",
|
|
2804
3211
|
"support": "partial",
|
|
2805
|
-
"note": "Name/StringValue
|
|
3212
|
+
"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)."
|
|
2806
3213
|
},
|
|
2807
3214
|
{
|
|
2808
3215
|
"qbo": "CurrencyRef",
|
|
@@ -2839,7 +3246,8 @@ var CATALOG = {
|
|
|
2839
3246
|
},
|
|
2840
3247
|
{
|
|
2841
3248
|
"qbo": "DocNumber",
|
|
2842
|
-
"support": "full"
|
|
3249
|
+
"support": "full",
|
|
3250
|
+
"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."
|
|
2843
3251
|
},
|
|
2844
3252
|
{
|
|
2845
3253
|
"qbo": "PrivateNote",
|
|
@@ -2874,6 +3282,43 @@ var CATALOG = {
|
|
|
2874
3282
|
}
|
|
2875
3283
|
],
|
|
2876
3284
|
"unsupported": []
|
|
3285
|
+
},
|
|
3286
|
+
"VendorType": {
|
|
3287
|
+
"entity": "VendorType",
|
|
3288
|
+
"verdict": "gap",
|
|
3289
|
+
"group": "gaps",
|
|
3290
|
+
"read": "none",
|
|
3291
|
+
"write": "none",
|
|
3292
|
+
"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.",
|
|
3293
|
+
"fields": [],
|
|
3294
|
+
"unsupported": [
|
|
3295
|
+
{
|
|
3296
|
+
"case": "read",
|
|
3297
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
3298
|
+
"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.",
|
|
3299
|
+
"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."
|
|
3300
|
+
},
|
|
3301
|
+
{
|
|
3302
|
+
"case": "query",
|
|
3303
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
3304
|
+
"note": "No QBO VendorType resource to mirror, so no query is exposed."
|
|
3305
|
+
},
|
|
3306
|
+
{
|
|
3307
|
+
"case": "create",
|
|
3308
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
3309
|
+
"note": "No QBO VendorType resource to mirror, so no create is exposed."
|
|
3310
|
+
},
|
|
3311
|
+
{
|
|
3312
|
+
"case": "update",
|
|
3313
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
3314
|
+
"note": "No QBO VendorType resource to mirror, so no update is exposed."
|
|
3315
|
+
},
|
|
3316
|
+
{
|
|
3317
|
+
"case": "delete",
|
|
3318
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
3319
|
+
"note": "No QBO VendorType resource to mirror, so no delete is exposed."
|
|
3320
|
+
}
|
|
3321
|
+
]
|
|
2877
3322
|
}
|
|
2878
3323
|
};
|
|
2879
3324
|
|
|
@@ -3002,10 +3447,10 @@ function registerTools(server, client) {
|
|
|
3002
3447
|
server.registerTool(
|
|
3003
3448
|
"query",
|
|
3004
3449
|
{
|
|
3005
|
-
description: "Run a QBO-style query against the connected QuickBooks Desktop company file. Supports
|
|
3450
|
+
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.",
|
|
3006
3451
|
inputSchema: {
|
|
3007
3452
|
entity: entityArg,
|
|
3008
|
-
where: z.string().optional().describe(`
|
|
3453
|
+
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'"`),
|
|
3009
3454
|
startPosition: z.number().int().positive().optional(),
|
|
3010
3455
|
maxResults: z.number().int().positive().max(1e3).optional()
|
|
3011
3456
|
}
|
|
@@ -3111,10 +3556,34 @@ function registerTools(server, client) {
|
|
|
3111
3556
|
}
|
|
3112
3557
|
}
|
|
3113
3558
|
);
|
|
3559
|
+
server.registerTool(
|
|
3560
|
+
"void",
|
|
3561
|
+
{
|
|
3562
|
+
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.',
|
|
3563
|
+
inputSchema: {
|
|
3564
|
+
entity: entityArg,
|
|
3565
|
+
id: z.string(),
|
|
3566
|
+
syncToken: z.string().describe("Current SyncToken of the transaction (required; a stale token is rejected).")
|
|
3567
|
+
}
|
|
3568
|
+
},
|
|
3569
|
+
async ({ entity, id, syncToken }) => {
|
|
3570
|
+
const name = resolveEntityName(entity);
|
|
3571
|
+
if (!name) return unknownEntity(entity);
|
|
3572
|
+
if (!ENTITIES2[name].voidable) {
|
|
3573
|
+
const supported = Object.values(ENTITIES2).filter((e) => e.voidable).map((e) => e.name).join(", ");
|
|
3574
|
+
return fail(`${name} cannot be voided through TenkeyBridge. Voidable entities: ${supported}.`);
|
|
3575
|
+
}
|
|
3576
|
+
try {
|
|
3577
|
+
return ok(await accessor(client, name).void({ Id: id, SyncToken: syncToken }));
|
|
3578
|
+
} catch (err) {
|
|
3579
|
+
return failure(err);
|
|
3580
|
+
}
|
|
3581
|
+
}
|
|
3582
|
+
);
|
|
3114
3583
|
}
|
|
3115
3584
|
|
|
3116
3585
|
// src/version.ts
|
|
3117
|
-
var PKG_VERSION = "0.
|
|
3586
|
+
var PKG_VERSION = "0.3.0";
|
|
3118
3587
|
|
|
3119
3588
|
// src/server.ts
|
|
3120
3589
|
var SERVER_NAME = "tenkeybridge";
|