@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/index.cjs
CHANGED
|
@@ -189,6 +189,11 @@ var CATALOG = {
|
|
|
189
189
|
"support": "full",
|
|
190
190
|
"note": "Required and unique per request; echoed verbatim on each BatchItemResponse slot."
|
|
191
191
|
},
|
|
192
|
+
{
|
|
193
|
+
"qbo": "operation (create | update | delete) + optionsData: void",
|
|
194
|
+
"support": "partial",
|
|
195
|
+
"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."
|
|
196
|
+
},
|
|
192
197
|
{
|
|
193
198
|
"qbo": "operation (create | update | delete)",
|
|
194
199
|
"support": "full",
|
|
@@ -197,7 +202,7 @@ var CATALOG = {
|
|
|
197
202
|
{
|
|
198
203
|
"qbo": "Query items",
|
|
199
204
|
"support": "full",
|
|
200
|
-
"note": "Full /query parity: the
|
|
205
|
+
"note": "Full /query parity: the same query language (AND-joined WHERE with =, !=, <, >, <=, >=, IN, LIKE; ORDERBY; COUNT(*); column lists; STARTPOSITION/MAXRESULTS), iterator-backed deep pages."
|
|
201
206
|
},
|
|
202
207
|
{
|
|
203
208
|
"qbo": "per-item faults",
|
|
@@ -212,9 +217,9 @@ var CATALOG = {
|
|
|
212
217
|
"note": "QBO's own per-request cap, cloned. Split into multiple batch calls."
|
|
213
218
|
},
|
|
214
219
|
{
|
|
215
|
-
"case": "optionsData (
|
|
220
|
+
"case": "optionsData other than void (or void paired with create/delete)",
|
|
216
221
|
"error": "BATCH_UNSUPPORTED_OPTION",
|
|
217
|
-
"note": "
|
|
222
|
+
"note": 'Only optionsData "void" on an update item is wired \u2014 any other value faults that item loud; the rest of the batch runs.'
|
|
218
223
|
},
|
|
219
224
|
{
|
|
220
225
|
"case": "transactional rollback",
|
|
@@ -250,7 +255,8 @@ var CATALOG = {
|
|
|
250
255
|
},
|
|
251
256
|
{
|
|
252
257
|
"qbo": "DocNumber",
|
|
253
|
-
"support": "full"
|
|
258
|
+
"support": "full",
|
|
259
|
+
"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."
|
|
254
260
|
},
|
|
255
261
|
{
|
|
256
262
|
"qbo": "SalesTermRef",
|
|
@@ -274,12 +280,12 @@ var CATALOG = {
|
|
|
274
280
|
{
|
|
275
281
|
"qbo": "Balance",
|
|
276
282
|
"support": "full",
|
|
277
|
-
"note": "Read-only, as
|
|
283
|
+
"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."
|
|
278
284
|
},
|
|
279
285
|
{
|
|
280
286
|
"qbo": "CustomField",
|
|
281
287
|
"support": "partial",
|
|
282
|
-
"note": "Name/StringValue
|
|
288
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the transaction header. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Bill records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30). Desktop never assigns a custom field to Bills (only Customer/Vendor/Employee/Item fields can be defined, and they surface on sales forms and purchase orders), so a Bill CustomField is always a 400 'not assigned to Bill records'."
|
|
283
289
|
},
|
|
284
290
|
{
|
|
285
291
|
"qbo": "CurrencyRef",
|
|
@@ -294,7 +300,7 @@ var CATALOG = {
|
|
|
294
300
|
{
|
|
295
301
|
"qbo": "LinkedTxn",
|
|
296
302
|
"support": "none",
|
|
297
|
-
"note": "QBO Bill has no paid-by LinkedTxn field. Desktop may return
|
|
303
|
+
"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.",
|
|
298
304
|
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
299
305
|
}
|
|
300
306
|
],
|
|
@@ -324,7 +330,8 @@ var CATALOG = {
|
|
|
324
330
|
},
|
|
325
331
|
{
|
|
326
332
|
"qbo": "DocNumber",
|
|
327
|
-
"support": "full"
|
|
333
|
+
"support": "full",
|
|
334
|
+
"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."
|
|
328
335
|
},
|
|
329
336
|
{
|
|
330
337
|
"qbo": "PrivateNote",
|
|
@@ -353,7 +360,7 @@ var CATALOG = {
|
|
|
353
360
|
{
|
|
354
361
|
"qbo": "Line",
|
|
355
362
|
"support": "partial",
|
|
356
|
-
"note": "LinkedTxn bills \u2192 AppliedToTxnAdd; additional LinkedTxn VendorCredit \u2192 SetCredit. Sparse updates cannot modify lines yet."
|
|
363
|
+
"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."
|
|
357
364
|
},
|
|
358
365
|
{
|
|
359
366
|
"qbo": "CurrencyRef",
|
|
@@ -366,6 +373,11 @@ var CATALOG = {
|
|
|
366
373
|
"support": "none",
|
|
367
374
|
"note": "Multicurrency not yet supported.",
|
|
368
375
|
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"qbo": "operation=void",
|
|
379
|
+
"support": "partial",
|
|
380
|
+
"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)."
|
|
369
381
|
}
|
|
370
382
|
],
|
|
371
383
|
"unsupported": [
|
|
@@ -378,24 +390,82 @@ var CATALOG = {
|
|
|
378
390
|
},
|
|
379
391
|
"Budget": {
|
|
380
392
|
"entity": "Budget",
|
|
381
|
-
"verdict": "
|
|
382
|
-
"group": "
|
|
383
|
-
"read": "
|
|
393
|
+
"verdict": "live",
|
|
394
|
+
"group": "company",
|
|
395
|
+
"read": "partial",
|
|
384
396
|
"write": "none",
|
|
385
|
-
"headline":
|
|
386
|
-
"fields": [
|
|
397
|
+
"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',
|
|
398
|
+
"fields": [
|
|
399
|
+
{
|
|
400
|
+
"qbo": "Name",
|
|
401
|
+
"support": "partial",
|
|
402
|
+
"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.'
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"qbo": "StartDate",
|
|
406
|
+
"support": "full",
|
|
407
|
+
"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."
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"qbo": "EndDate",
|
|
411
|
+
"support": "full",
|
|
412
|
+
"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)."
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"qbo": "BudgetType",
|
|
416
|
+
"support": "partial",
|
|
417
|
+
"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."
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"qbo": "BudgetEntryType",
|
|
421
|
+
"support": "partial",
|
|
422
|
+
"note": 'Always "Monthly". Desktop budgets are entered by month, and the report is requested with monthly columns; Yearly entry is not represented.'
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"qbo": "Active",
|
|
426
|
+
"support": "partial",
|
|
427
|
+
"note": "Always true. A budget that returns amounts exists; Desktop has no inactive flag for budgets."
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"qbo": "BudgetDetail",
|
|
431
|
+
"support": "partial",
|
|
432
|
+
"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".'
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"qbo": "MetaData",
|
|
436
|
+
"support": "none",
|
|
437
|
+
"note": "Desktop's budget report carries no created/modified stamp, so CreateTime/LastUpdatedTime are omitted rather than invented."
|
|
438
|
+
}
|
|
439
|
+
],
|
|
387
440
|
"unsupported": [
|
|
388
441
|
{
|
|
389
|
-
"case": "
|
|
442
|
+
"case": "query \u2014 SELECT * cannot enumerate every budget",
|
|
443
|
+
"error": "UNSUPPORTED_QUERY",
|
|
444
|
+
"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.",
|
|
445
|
+
"workaround": "Fetch it by id: GET /v3/company/{realmId}/budget/{fiscalYear}-{BudgetType}, e.g. 2023-ProfitAndLoss, which issues exactly one report request for that year."
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"case": "query \u2014 WHERE on anything but Id, ORDERBY, COUNT(*), column lists",
|
|
449
|
+
"error": "UNSUPPORTED_QUERY",
|
|
450
|
+
"note": "Budget is not a Desktop list, so there is no query filter to compile a WHERE clause into. Only WHERE Id = '{fiscalYear}-{BudgetType}' is accepted; it resolves to the same single report request GET by id uses. ORDERBY, COUNT(*) and column lists are rejected too.",
|
|
451
|
+
"workaround": "Fetch the window with SELECT * FROM Budget and filter the (at most six) rows client-side."
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"case": "read \u2014 Class and Customer budget breakdowns",
|
|
390
455
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
391
|
-
"note": "
|
|
392
|
-
"workaround": "
|
|
456
|
+
"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.",
|
|
457
|
+
"workaround": "Read the class- or customer-level figures from the budget reports in QuickBooks Desktop directly."
|
|
393
458
|
},
|
|
394
459
|
{
|
|
395
|
-
"case": "
|
|
460
|
+
"case": "read \u2014 budget-vs-actual report types",
|
|
396
461
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
397
|
-
"note": "
|
|
398
|
-
"workaround": "
|
|
462
|
+
"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.",
|
|
463
|
+
"workaround": "Pull the actuals with the Reports surface (ProfitAndLoss / BalanceSheet) and compare them against this Budget client-side."
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"case": "read \u2014 AccountRef.value on an unrecognised row label",
|
|
467
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
468
|
+
"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.`
|
|
399
469
|
},
|
|
400
470
|
{
|
|
401
471
|
"case": "create",
|
|
@@ -459,6 +529,12 @@ var CATALOG = {
|
|
|
459
529
|
"case": "deleted TaxAgency / ExchangeRate / Transfer detection",
|
|
460
530
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
461
531
|
"note": "Tax agencies are vendors on Desktop (deletion indistinguishable); exchange rates ride the Currency list; 'Transfer' is not a valid TxnDelType."
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"case": "Budget in the entities list",
|
|
535
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
536
|
+
"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.",
|
|
537
|
+
"workaround": "Re-read it with SELECT * FROM Budget (or GET /budget/{fiscalYear}-{BudgetType}) whenever you need the current figures."
|
|
462
538
|
}
|
|
463
539
|
]
|
|
464
540
|
},
|
|
@@ -615,12 +691,51 @@ var CATALOG = {
|
|
|
615
691
|
"note": "CompanyInfo is read/query only \u2014 there is exactly one company record, and Desktop has no API to create or modify it."
|
|
616
692
|
},
|
|
617
693
|
{
|
|
618
|
-
"case": "Any WHERE clause, or STARTPOSITION/MAXRESULTS",
|
|
694
|
+
"case": "Any WHERE clause, ORDERBY, COUNT(*), column list, or STARTPOSITION/MAXRESULTS",
|
|
619
695
|
"error": "UNSUPPORTED_QUERY",
|
|
620
696
|
"note": "CompanyQueryRq takes no filters and always returns the single open company record. Use SELECT * FROM CompanyInfo."
|
|
621
697
|
}
|
|
622
698
|
]
|
|
623
699
|
},
|
|
700
|
+
"CreditCardPayment": {
|
|
701
|
+
"entity": "CreditCardPayment",
|
|
702
|
+
"verdict": "gap",
|
|
703
|
+
"group": "gaps",
|
|
704
|
+
"read": "none",
|
|
705
|
+
"write": "none",
|
|
706
|
+
"headline": "QBO's 'pay down a credit card' transaction has no Desktop record of its own \u2014 Desktop books the same event as a Transfer or a Check against the card account, so there is nothing to project a CreditCardPayment from.",
|
|
707
|
+
"fields": [],
|
|
708
|
+
"unsupported": [
|
|
709
|
+
{
|
|
710
|
+
"case": "read",
|
|
711
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
712
|
+
"note": "qbXML has no CreditCardPayment message. A card payment made in Desktop is stored as an ordinary Transfer (Transfer Funds) or a Check/Bill Payment whose target is the credit card liability account, and is indistinguishable from any other such transaction on read.",
|
|
713
|
+
"workaround": "Read the same events as Transfer (ToAccountRef = the credit card account) or as a Purchase of type Check. Both are live in TenkeyBridge."
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"case": "query",
|
|
717
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
718
|
+
"note": "No Desktop CreditCardPayment exists to query; card paydowns appear under Transfer or Purchase.",
|
|
719
|
+
"workaround": "Query Transfer or Purchase and filter client-side by the credit card account."
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"case": "create",
|
|
723
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
724
|
+
"note": "TenkeyBridge will not guess which Desktop transaction to create in place of a CreditCardPayment.",
|
|
725
|
+
"workaround": "To pay down a card, create a Transfer with FromAccountRef = your bank account and ToAccountRef = the credit card account (or a Purchase/Check whose account line is the credit card account). That is what QuickBooks Desktop records for the same action."
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
"case": "update",
|
|
729
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
730
|
+
"note": "No Desktop CreditCardPayment to update; update the Transfer or Purchase instead."
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"case": "delete",
|
|
734
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
735
|
+
"note": "No Desktop CreditCardPayment to delete; delete the Purchase instead (Transfer cannot be deleted through qbXML)."
|
|
736
|
+
}
|
|
737
|
+
]
|
|
738
|
+
},
|
|
624
739
|
"CreditMemo": {
|
|
625
740
|
"entity": "CreditMemo",
|
|
626
741
|
"verdict": "live",
|
|
@@ -639,7 +754,8 @@ var CATALOG = {
|
|
|
639
754
|
},
|
|
640
755
|
{
|
|
641
756
|
"qbo": "DocNumber",
|
|
642
|
-
"support": "full"
|
|
757
|
+
"support": "full",
|
|
758
|
+
"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."
|
|
643
759
|
},
|
|
644
760
|
{
|
|
645
761
|
"qbo": "BillAddr",
|
|
@@ -665,6 +781,11 @@ var CATALOG = {
|
|
|
665
781
|
"qbo": "PrivateNote",
|
|
666
782
|
"support": "full"
|
|
667
783
|
},
|
|
784
|
+
{
|
|
785
|
+
"qbo": "CustomField",
|
|
786
|
+
"support": "partial",
|
|
787
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the transaction header. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to CreditMemo records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). The mechanism was verified live on QuickBooks Enterprise 24 (2026-09-30) on Customer, Vendor, Item, Employee, Invoice and PurchaseOrder; this entity follows the same path."
|
|
788
|
+
},
|
|
668
789
|
{
|
|
669
790
|
"qbo": "CustomerMemo",
|
|
670
791
|
"support": "full",
|
|
@@ -673,12 +794,12 @@ var CATALOG = {
|
|
|
673
794
|
{
|
|
674
795
|
"qbo": "Line",
|
|
675
796
|
"support": "partial",
|
|
676
|
-
"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
|
|
797
|
+
"note": "Same DetailType support as Invoice: SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; DiscountLineDetail requires a Desktop discount item named by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount); other DetailTypes return UNSUPPORTED_BY_DESKTOP. Group lines read back as GroupLineDetail without nested line expansion; Desktop discount lines read back as SalesItemLineDetail lines (never DiscountLineDetail) referencing the discount item, with a negative Amount (verified live). An unknown Line.Id returns 3120 (REST 610); a malformed one returns 3000. Updates carrying Line send the full line table, as QBO requires: a line with the Id a read returned keeps that Desktop line (Id = TxnLineID, stable across updates), a line without an Id (or Id 0 / empty) is added, and any existing line omitted from the array is deleted. Send the whole array on sparse updates too; an Id listed twice is rejected (2010). Fields you omit from a line that carries an Id are filled from the current record before the full line is sent (Desktop would otherwise blank them), and line ClassRef and ServiceDate are written (ServiceDate not on Estimate). Re-sending an existing group line returns 422 (UNSUPPORTED_BY_DESKTOP); omit it to delete it and add a new group line without an Id."
|
|
677
798
|
},
|
|
678
799
|
{
|
|
679
800
|
"qbo": "TxnTaxDetail",
|
|
680
801
|
"support": "partial",
|
|
681
|
-
"note": "
|
|
802
|
+
"note": "TxnTaxCodeRef selects the tax item (Desktop ItemSalesTaxRef). TotalTax alone is accepted but not sent: QuickBooks then applies the customer's default sales tax item (or the company default) and computes the tax itself, so the tax on read can differ from the TotalTax you sent. When it differs, create/update responses carry a non-fatal X-TKB-Warning header (not emitted for /batch items). Updatable via sparse update (#55)."
|
|
682
803
|
},
|
|
683
804
|
{
|
|
684
805
|
"qbo": "LinkedTxn",
|
|
@@ -708,15 +829,10 @@ var CATALOG = {
|
|
|
708
829
|
}
|
|
709
830
|
],
|
|
710
831
|
"unsupported": [
|
|
711
|
-
{
|
|
712
|
-
"case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
|
|
713
|
-
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
714
|
-
"note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
|
|
715
|
-
},
|
|
716
832
|
{
|
|
717
833
|
"case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
|
|
718
834
|
"error": "MISSING_REQUIRED_DESKTOP_ITEM",
|
|
719
|
-
"note": "Desktop discounts are items. Create a discount item in
|
|
835
|
+
"note": "Desktop discounts are items and TenkeyBridge does not guess one: picking a default would silently post the discount to that item's account, and discount items are not readable through the Item API yet. Create a discount item in QuickBooks (Lists > Item List > New > Discount) and pass it as DiscountLineDetail.ItemRef by value (ListID) or name (full name). DiscountAccountRef is ignored; the item carries its own account. See COMPATIBILITY.md."
|
|
720
836
|
},
|
|
721
837
|
{
|
|
722
838
|
"case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly",
|
|
@@ -841,7 +957,7 @@ var CATALOG = {
|
|
|
841
957
|
{
|
|
842
958
|
"qbo": "CustomField",
|
|
843
959
|
"support": "partial",
|
|
844
|
-
"note": "Name/StringValue
|
|
960
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the record. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Customer records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30)."
|
|
845
961
|
},
|
|
846
962
|
{
|
|
847
963
|
"qbo": "CurrencyRef",
|
|
@@ -910,9 +1026,10 @@ var CATALOG = {
|
|
|
910
1026
|
],
|
|
911
1027
|
"unsupported": [
|
|
912
1028
|
{
|
|
913
|
-
"case": "Create or
|
|
1029
|
+
"case": "Create, update or deactivate",
|
|
914
1030
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
915
|
-
"note": "QBO's CustomerType is read-only via the API
|
|
1031
|
+
"note": "QBO's CustomerType is read-only via the API, and TenkeyBridge matches that. Desktop has CustomerTypeAdd but no CustomerTypeMod (verified live: a CustomerTypeMod is a qbXML parse error), so a type cannot be renamed or made inactive through the API at all; Desktop's hierarchy (ParentRef/Sublevel/FullName) has no QBO CustomerType fields and is not surfaced.",
|
|
1032
|
+
"workaround": "Create, rename or deactivate the type in QuickBooks Desktop itself; the change shows up on the next read."
|
|
916
1033
|
}
|
|
917
1034
|
]
|
|
918
1035
|
},
|
|
@@ -977,12 +1094,12 @@ var CATALOG = {
|
|
|
977
1094
|
{
|
|
978
1095
|
"qbo": "Line",
|
|
979
1096
|
"support": "partial",
|
|
980
|
-
"note": "LinkedTxn (PaymentTxnID path) for undeposited payments, or DepositLineDetail{Entity, AccountRef, PaymentMethodRef, CheckNum}.
|
|
1097
|
+
"note": "Write: LinkedTxn (PaymentTxnID path) for undeposited payments, or DepositLineDetail{Entity, AccountRef, PaymentMethodRef, CheckNum} for a manual line \u2014 one or the other, and a manual line's DepositLineDetail.AccountRef is required. Read: Desktop always returns DepositLineDetail; a line sourced from a deposited payment also carries LinkedTxn (TxnId/TxnType Payment) alongside it. Updates carrying Line send the full table as DepositLineMod: a line with the Id a read returned keeps that Desktop line, a line without an Id is added, and any existing line omitted from the array is deleted \u2014 send the whole array. A manual line has omitted fields filled from the current record; a line sourced from a deposited payment is re-sent as a bare TxnLineID (Desktop keeps the line and its payment link; re-sending PaymentTxnID is refused 3210 because the payment is already deposited), so edits to its amount, account and payer are not applied. A new line linking a still-undeposited payment is accepted. Verified live on QuickBooks Enterprise 24 (2026-09-30). CashBack cannot be updated (422): Desktop needs the cash-back line own TxnLineID, which a QBO read does not expose. An Id that is not a line of the deposit is a 400; an Id listed twice is 2010; an empty Line array is refused."
|
|
981
1098
|
},
|
|
982
1099
|
{
|
|
983
1100
|
"qbo": "CashBack",
|
|
984
|
-
"support": "
|
|
985
|
-
"note": "
|
|
1101
|
+
"support": "partial",
|
|
1102
|
+
"note": "Create and read map to Desktop CashBackInfo. Changing CashBack on an update is 422 UNSUPPORTED_BY_DESKTOP (CashBackInfoMod needs the cash-back line's own TxnLineID, which a read does not expose); an update that echoes the current CashBack unchanged is accepted."
|
|
986
1103
|
},
|
|
987
1104
|
{
|
|
988
1105
|
"qbo": "TotalAmt",
|
|
@@ -1009,8 +1126,8 @@ var CATALOG = {
|
|
|
1009
1126
|
"verdict": "live",
|
|
1010
1127
|
"group": "lists",
|
|
1011
1128
|
"read": "full",
|
|
1012
|
-
"write": "
|
|
1013
|
-
"headline": "Read/query
|
|
1129
|
+
"write": "partial",
|
|
1130
|
+
"headline": "Read/query plus create and update of core HR fields (live-verified); DisplayName is derived from first/middle/last; SSN is write-only and never returned; payroll fields out of scope",
|
|
1014
1131
|
"fields": [
|
|
1015
1132
|
{
|
|
1016
1133
|
"qbo": "GivenName",
|
|
@@ -1030,7 +1147,8 @@ var CATALOG = {
|
|
|
1030
1147
|
},
|
|
1031
1148
|
{
|
|
1032
1149
|
"qbo": "DisplayName",
|
|
1033
|
-
"support": "
|
|
1150
|
+
"support": "partial",
|
|
1151
|
+
"note": "Read-only: Desktop derives Name as GivenName MiddleName FamilyName (blanks skipped). A create/update naming a different DisplayName is refused with 400; one that matches is accepted and not sent. Create requires GivenName or FamilyName; DisplayName alone is refused (TenkeyBridge does not split it)."
|
|
1034
1152
|
},
|
|
1035
1153
|
{
|
|
1036
1154
|
"qbo": "PrintOnCheckName",
|
|
@@ -1039,7 +1157,8 @@ var CATALOG = {
|
|
|
1039
1157
|
},
|
|
1040
1158
|
{
|
|
1041
1159
|
"qbo": "Active",
|
|
1042
|
-
"support": "full"
|
|
1160
|
+
"support": "full",
|
|
1161
|
+
"note": "Deactivate with a sparse update of Active:false; Desktop employees cannot be deleted through qbXML."
|
|
1043
1162
|
},
|
|
1044
1163
|
{
|
|
1045
1164
|
"qbo": "PrimaryPhone",
|
|
@@ -1055,7 +1174,8 @@ var CATALOG = {
|
|
|
1055
1174
|
},
|
|
1056
1175
|
{
|
|
1057
1176
|
"qbo": "PrimaryAddr",
|
|
1058
|
-
"support": "full"
|
|
1177
|
+
"support": "full",
|
|
1178
|
+
"note": "Desktop's employee address has two street lines, City, State and PostalCode. Live limits: Line1/Line2 41 characters, City 31, PostalCode 13 (longer values are rejected up front with 2050; a State longer than Desktop's field fails with Desktop status 3110). Line3-Line5 and Country are rejected on write."
|
|
1059
1179
|
},
|
|
1060
1180
|
{
|
|
1061
1181
|
"qbo": "HiredDate",
|
|
@@ -1071,12 +1191,24 @@ var CATALOG = {
|
|
|
1071
1191
|
},
|
|
1072
1192
|
{
|
|
1073
1193
|
"qbo": "Gender",
|
|
1074
|
-
"support": "full"
|
|
1194
|
+
"support": "full",
|
|
1195
|
+
"note": "Male or Female."
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
"qbo": "SSN",
|
|
1199
|
+
"support": "partial",
|
|
1200
|
+
"note": "Write-only: accepted as 123-45-6789 or 123456789 on create/update and never returned by Desktop (verified live: absent from Add, Mod, Get and Query responses). A masked value (XXX-XX-1234) is rejected on create and skipped on update, never written."
|
|
1075
1201
|
},
|
|
1076
1202
|
{
|
|
1077
1203
|
"qbo": "CustomField",
|
|
1078
1204
|
"support": "partial",
|
|
1079
|
-
"note": "Name/StringValue
|
|
1205
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the record. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Employee records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30)."
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"qbo": "EmployeeNumber",
|
|
1209
|
+
"support": "none",
|
|
1210
|
+
"note": "Desktop's Employee record has no employee-number field; keep the number in your own system keyed by the TenkeyBridge Id.",
|
|
1211
|
+
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1080
1212
|
},
|
|
1081
1213
|
{
|
|
1082
1214
|
"qbo": "TargetBonus",
|
|
@@ -1093,9 +1225,42 @@ var CATALOG = {
|
|
|
1093
1225
|
],
|
|
1094
1226
|
"unsupported": [
|
|
1095
1227
|
{
|
|
1096
|
-
"case": "
|
|
1228
|
+
"case": "Delete",
|
|
1229
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1230
|
+
"note": "QBO employees are deactivated, not deleted; TenkeyBridge follows that (sparse update with Active:false)."
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
"case": "Payroll fields",
|
|
1234
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1235
|
+
"note": "Pay rates, pay periods, wage items and other EmployeePayrollInfo content are license-gated in Desktop and not exposed for read or write."
|
|
1236
|
+
}
|
|
1237
|
+
]
|
|
1238
|
+
},
|
|
1239
|
+
"Entitlements": {
|
|
1240
|
+
"entity": "Entitlements",
|
|
1241
|
+
"verdict": "live",
|
|
1242
|
+
"group": "platform",
|
|
1243
|
+
"read": "partial",
|
|
1244
|
+
"write": "none",
|
|
1245
|
+
"headline": "GET /v3/company/{realmId}/entitlements \u2014 a static, honest capability document for a QuickBooks Desktop company (no per-file subscription data).",
|
|
1246
|
+
"usage": "GET /v3/company/{realmId}/entitlements",
|
|
1247
|
+
"fields": [
|
|
1248
|
+
{
|
|
1249
|
+
"qbo": "Entitlements.platform",
|
|
1250
|
+
"support": "full",
|
|
1251
|
+
"note": 'Always "QuickBooks Desktop" \u2014 TenkeyBridge talks to Desktop, never to a QBO subscription.'
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
"qbo": "Entitlements.features",
|
|
1255
|
+
"support": "partial",
|
|
1256
|
+
"note": "Static list of what TenkeyBridge supports on Desktop (accounting API, query, CDC, batch, reports). It is not read from the company file; plan tiers, seats and add-ons (Payroll, Advanced) that QBO reports are not available from Desktop."
|
|
1257
|
+
}
|
|
1258
|
+
],
|
|
1259
|
+
"unsupported": [
|
|
1260
|
+
{
|
|
1261
|
+
"case": "QBO subscription tier, seats and add-ons",
|
|
1097
1262
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1098
|
-
"note": "
|
|
1263
|
+
"note": "Desktop has no subscription entitlements exposed over qbXML; the response says so explicitly rather than inventing values."
|
|
1099
1264
|
}
|
|
1100
1265
|
]
|
|
1101
1266
|
},
|
|
@@ -1105,7 +1270,7 @@ var CATALOG = {
|
|
|
1105
1270
|
"group": "sales",
|
|
1106
1271
|
"read": "full",
|
|
1107
1272
|
"write": "partial",
|
|
1108
|
-
"headline": "Same shape as Invoice; no
|
|
1273
|
+
"headline": "Same shape as Invoice; expiration date and active/closed status, no acceptance tracking",
|
|
1109
1274
|
"fields": [
|
|
1110
1275
|
{
|
|
1111
1276
|
"qbo": "CustomerRef",
|
|
@@ -1117,7 +1282,8 @@ var CATALOG = {
|
|
|
1117
1282
|
},
|
|
1118
1283
|
{
|
|
1119
1284
|
"qbo": "DocNumber",
|
|
1120
|
-
"support": "full"
|
|
1285
|
+
"support": "full",
|
|
1286
|
+
"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."
|
|
1121
1287
|
},
|
|
1122
1288
|
{
|
|
1123
1289
|
"qbo": "BillAddr",
|
|
@@ -1137,7 +1303,18 @@ var CATALOG = {
|
|
|
1137
1303
|
},
|
|
1138
1304
|
{
|
|
1139
1305
|
"qbo": "DueDate",
|
|
1140
|
-
"support": "full"
|
|
1306
|
+
"support": "full",
|
|
1307
|
+
"note": "Desktop has one estimate due date, which is also QBO's ExpirationDate; both names read back with the same value. Sending both with different values: on update the one that differs from the current record wins (ExpirationDate if both changed); on create ExpirationDate wins."
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
"qbo": "ExpirationDate",
|
|
1311
|
+
"support": "full",
|
|
1312
|
+
"note": "Maps to the Desktop estimate DueDate. Read and write."
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
"qbo": "TxnStatus",
|
|
1316
|
+
"support": "partial",
|
|
1317
|
+
"note": "Maps to Desktop IsActive: Pending = active, Closed = inactive (Mark as inactive). Closed means only that the estimate is marked inactive in Desktop; an estimate converted to an invoice still reads as Pending. Accepted and Rejected have no Desktop state and return UNSUPPORTED_BY_DESKTOP. Not independently verified against a live EstimateRet yet."
|
|
1141
1318
|
},
|
|
1142
1319
|
{
|
|
1143
1320
|
"qbo": "PrivateNote",
|
|
@@ -1151,22 +1328,22 @@ var CATALOG = {
|
|
|
1151
1328
|
{
|
|
1152
1329
|
"qbo": "Line",
|
|
1153
1330
|
"support": "partial",
|
|
1154
|
-
"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
|
|
1331
|
+
"note": "Same DetailType support as Invoice (for an item that has a cost, Desktop treats an Estimate line's Rate as cost plus markup, MarkupRatePercent, so Amount can differ from Qty x Rate; verified live): SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail requires a Desktop discount item named by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount); other DetailTypes return UNSUPPORTED_BY_DESKTOP. Group lines read back as GroupLineDetail without nested line expansion; Desktop discount lines read back as SalesItemLineDetail lines (never DiscountLineDetail) referencing the discount item, with a negative Amount (verified live). An unknown Line.Id returns 3120 (REST 610); a malformed one returns 3000. Updates carrying Line send the full line table, as QBO requires: a line with the Id a read returned keeps that Desktop line (Id = TxnLineID, stable across updates), a line without an Id (or Id 0 / empty) is added, and any existing line omitted from the array is deleted. Send the whole array on sparse updates too; an Id listed twice is rejected (2010). Fields you omit from a line that carries an Id are filled from the current record before the full line is sent (Desktop would otherwise blank them), and line ClassRef and ServiceDate are written (ServiceDate not on Estimate). Re-sending an existing group line returns 422 (UNSUPPORTED_BY_DESKTOP); omit it to delete it and add a new group line without an Id."
|
|
1155
1332
|
},
|
|
1156
1333
|
{
|
|
1157
1334
|
"qbo": "TxnTaxDetail",
|
|
1158
1335
|
"support": "partial",
|
|
1159
|
-
"note": "
|
|
1336
|
+
"note": "TxnTaxCodeRef on write selects the tax item (Desktop ItemSalesTaxRef). TotalTax alone is accepted but not sent: QuickBooks then applies the customer's default sales tax item (or the company default) and computes the tax itself, so the tax on read can differ from the TotalTax you sent. When it differs, create/update responses carry a non-fatal X-TKB-Warning header (not emitted for /batch items). On read: TotalTax, TxnTaxCodeRef, and TaxLine[{Amount, TaxLineDetail{TaxRateRef, TaxPercent}}]. NetAmountTaxable never returned. Updatable via sparse update (#55)."
|
|
1160
1337
|
},
|
|
1161
1338
|
{
|
|
1162
1339
|
"qbo": "LinkedTxn",
|
|
1163
1340
|
"support": "full",
|
|
1164
|
-
"note": "Populated on read from
|
|
1341
|
+
"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."
|
|
1165
1342
|
},
|
|
1166
1343
|
{
|
|
1167
1344
|
"qbo": "CustomField",
|
|
1168
1345
|
"support": "partial",
|
|
1169
|
-
"note": "Name/StringValue
|
|
1346
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the transaction header. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Estimate records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). The mechanism was verified live on QuickBooks Enterprise 24 (2026-09-30) on Customer, Vendor, Item, Employee, Invoice and PurchaseOrder; this entity follows the same path."
|
|
1170
1347
|
},
|
|
1171
1348
|
{
|
|
1172
1349
|
"qbo": "TotalAmt",
|
|
@@ -1183,12 +1360,6 @@ var CATALOG = {
|
|
|
1183
1360
|
"support": "partial",
|
|
1184
1361
|
"note": "Accepted and ignored \u2014 Desktop manages this itself; multi-currency mapping lands later."
|
|
1185
1362
|
},
|
|
1186
|
-
{
|
|
1187
|
-
"qbo": "ExpirationDate",
|
|
1188
|
-
"support": "none",
|
|
1189
|
-
"note": "Desktop estimates have no expiration date. Track it in your own system if needed.",
|
|
1190
|
-
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1191
|
-
},
|
|
1192
1363
|
{
|
|
1193
1364
|
"qbo": "AcceptedBy",
|
|
1194
1365
|
"support": "none",
|
|
@@ -1200,24 +1371,13 @@ var CATALOG = {
|
|
|
1200
1371
|
"support": "none",
|
|
1201
1372
|
"note": "Desktop estimates have no accepted-date field. Track acceptance in your own system.",
|
|
1202
1373
|
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1203
|
-
},
|
|
1204
|
-
{
|
|
1205
|
-
"qbo": "TxnStatus",
|
|
1206
|
-
"support": "none",
|
|
1207
|
-
"note": "Desktop estimates have no status field matching QBO's Pending/Accepted/Closed/Rejected enum. Track status in your own system.",
|
|
1208
|
-
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1209
1374
|
}
|
|
1210
1375
|
],
|
|
1211
1376
|
"unsupported": [
|
|
1212
|
-
{
|
|
1213
|
-
"case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
|
|
1214
|
-
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1215
|
-
"note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
|
|
1216
|
-
},
|
|
1217
1377
|
{
|
|
1218
1378
|
"case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
|
|
1219
1379
|
"error": "MISSING_REQUIRED_DESKTOP_ITEM",
|
|
1220
|
-
"note": "Desktop discounts are items. Create a discount item in
|
|
1380
|
+
"note": "Desktop discounts are items and TenkeyBridge does not guess one: picking a default would silently post the discount to that item's account, and discount items are not readable through the Item API yet. Create a discount item in QuickBooks (Lists > Item List > New > Discount) and pass it as DiscountLineDetail.ItemRef by value (ListID) or name (full name). DiscountAccountRef is ignored; the item carries its own account. See COMPATIBILITY.md."
|
|
1221
1381
|
},
|
|
1222
1382
|
{
|
|
1223
1383
|
"case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly",
|
|
@@ -1274,6 +1434,65 @@ var CATALOG = {
|
|
|
1274
1434
|
}
|
|
1275
1435
|
]
|
|
1276
1436
|
},
|
|
1437
|
+
"InventoryAdjustment": {
|
|
1438
|
+
"entity": "InventoryAdjustment",
|
|
1439
|
+
"verdict": "live",
|
|
1440
|
+
"group": "purchasing",
|
|
1441
|
+
"read": "full",
|
|
1442
|
+
"write": "partial",
|
|
1443
|
+
"headline": "Quantity adjustments to inventory items \u2014 create, read, header update and delete (live-verified); line edits need delete + re-create",
|
|
1444
|
+
"fields": [
|
|
1445
|
+
{
|
|
1446
|
+
"qbo": "AdjustAccountRef",
|
|
1447
|
+
"support": "full",
|
|
1448
|
+
"note": "Desktop AccountRef \u2014 the adjustment (offset) account. Required on create."
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
"qbo": "TxnDate",
|
|
1452
|
+
"support": "full"
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
"qbo": "DocNumber",
|
|
1456
|
+
"support": "full",
|
|
1457
|
+
"note": "Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050)."
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
"qbo": "PrivateNote",
|
|
1461
|
+
"support": "full",
|
|
1462
|
+
"note": "Desktop Memo."
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
"qbo": "Line",
|
|
1466
|
+
"support": "partial",
|
|
1467
|
+
"note": "DetailType ItemAdjustmentLineDetail with ItemRef and QtyDiff. QtyDiff is a signed change in quantity on hand (nonzero, at most 5 decimal places) and maps to Desktop QuantityAdjustment/QuantityDifference (never NewQuantity); quantity on hand changes by exactly that amount, verified live. The same item on two lines is refused (Desktop rejects it). Desktop's value elements (ValueAdjustment/NewValue) are not exposed for writing; Desktop's ValueDifference (quantity times the item's average cost, verified live) is returned read-only as Line.Amount; the Ret line is flat QuantityDifference/ValueDifference. Line.Description and Line.Amount cannot be written (Desktop has no line memo and computes the value from the item's average cost). Sparse updates cannot modify lines."
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
"qbo": "CurrencyRef",
|
|
1471
|
+
"support": "none",
|
|
1472
|
+
"note": "Multicurrency not yet supported.",
|
|
1473
|
+
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
"qbo": "ExchangeRate",
|
|
1477
|
+
"support": "none",
|
|
1478
|
+
"note": "Multicurrency not yet supported.",
|
|
1479
|
+
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1480
|
+
}
|
|
1481
|
+
],
|
|
1482
|
+
"unsupported": [
|
|
1483
|
+
{
|
|
1484
|
+
"case": "Line update",
|
|
1485
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1486
|
+
"note": "A sparse update can change header fields only (AdjustAccountRef, TxnDate, DocNumber, PrivateNote). To change quantities, delete the adjustment and create a new one.",
|
|
1487
|
+
"workaround": "POST ?operation=delete with the Id, then create a corrected InventoryAdjustment."
|
|
1488
|
+
},
|
|
1489
|
+
{
|
|
1490
|
+
"case": "Absolute quantity (NewQuantity) and value adjustments",
|
|
1491
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1492
|
+
"note": "QBO's InventoryAdjustment only has QtyDiff (a delta), so Desktop's NewQuantity/NewValue forms have no QBO field to map from."
|
|
1493
|
+
}
|
|
1494
|
+
]
|
|
1495
|
+
},
|
|
1277
1496
|
"Invoice": {
|
|
1278
1497
|
"entity": "Invoice",
|
|
1279
1498
|
"verdict": "live",
|
|
@@ -1292,7 +1511,8 @@ var CATALOG = {
|
|
|
1292
1511
|
},
|
|
1293
1512
|
{
|
|
1294
1513
|
"qbo": "DocNumber",
|
|
1295
|
-
"support": "full"
|
|
1514
|
+
"support": "full",
|
|
1515
|
+
"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."
|
|
1296
1516
|
},
|
|
1297
1517
|
{
|
|
1298
1518
|
"qbo": "BillAddr",
|
|
@@ -1334,22 +1554,22 @@ var CATALOG = {
|
|
|
1334
1554
|
{
|
|
1335
1555
|
"qbo": "Line",
|
|
1336
1556
|
"support": "partial",
|
|
1337
|
-
"note": "SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail requires a Desktop discount item
|
|
1557
|
+
"note": "SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail requires a Desktop discount item named by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount); other DetailTypes (e.g. SubTotalLineDetail) return UNSUPPORTED_BY_DESKTOP. Group lines read back as GroupLineDetail without nested line expansion; Desktop discount lines read back as SalesItemLineDetail lines (never DiscountLineDetail) referencing the discount item, with a negative Amount (verified live). An unknown Line.Id returns 3120 (REST 610); a malformed one returns 3000. Updates carrying Line send the full line table, as QBO requires: a line with the Id a read returned keeps that Desktop line (Id = TxnLineID, stable across updates), a line without an Id (or Id 0 / empty) is added, and any existing line omitted from the array is deleted. Send the whole array on sparse updates too; an Id listed twice is rejected (2010). Fields you omit from a line that carries an Id are filled from the current record before the full line is sent (Desktop would otherwise blank them), and line ClassRef and ServiceDate are written (ServiceDate not on Estimate). Re-sending an existing group line returns 422 (UNSUPPORTED_BY_DESKTOP); omit it to delete it and add a new group line without an Id."
|
|
1338
1558
|
},
|
|
1339
1559
|
{
|
|
1340
1560
|
"qbo": "TxnTaxDetail",
|
|
1341
1561
|
"support": "partial",
|
|
1342
|
-
"note": "
|
|
1562
|
+
"note": "TxnTaxCodeRef on write selects the tax item (Desktop ItemSalesTaxRef). TotalTax alone is accepted but not sent: QuickBooks then applies the customer's default sales tax item (or the company default) and computes the tax itself, so the tax on read can differ from the TotalTax you sent. When it differs, create/update responses carry a non-fatal X-TKB-Warning header (not emitted for /batch items). On read: TotalTax, TxnTaxCodeRef (from ItemSalesTaxRef), and TaxLine[{Amount, TaxLineDetail{TaxRateRef, TaxPercent}}] from SalesTaxTotal/ItemSalesTaxRef/SalesTaxPercentage. NetAmountTaxable is never returned (Desktop has no taxable basis). Updatable via sparse update (#55)."
|
|
1343
1563
|
},
|
|
1344
1564
|
{
|
|
1345
1565
|
"qbo": "LinkedTxn",
|
|
1346
1566
|
"support": "full",
|
|
1347
|
-
"note": "Populated on read from
|
|
1567
|
+
"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."
|
|
1348
1568
|
},
|
|
1349
1569
|
{
|
|
1350
1570
|
"qbo": "CustomField",
|
|
1351
1571
|
"support": "partial",
|
|
1352
|
-
"note": "Name/StringValue
|
|
1572
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the transaction header. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Invoice records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30)."
|
|
1353
1573
|
},
|
|
1354
1574
|
{
|
|
1355
1575
|
"qbo": "TotalAmt",
|
|
@@ -1370,18 +1590,18 @@ var CATALOG = {
|
|
|
1370
1590
|
"qbo": "ExchangeRate",
|
|
1371
1591
|
"support": "partial",
|
|
1372
1592
|
"note": "Accepted and ignored \u2014 Desktop manages this itself; multi-currency mapping lands later."
|
|
1593
|
+
},
|
|
1594
|
+
{
|
|
1595
|
+
"qbo": "operation=void",
|
|
1596
|
+
"support": "partial",
|
|
1597
|
+
"note": "POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType Invoice), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QB Enterprise 24 (2026-09-29): the re-read shows amounts and line Qty zeroed, PrivateNote prefixed `VOID: `, TxnDate unchanged, a new SyncToken; re-proven 2026-09-30 with a memo (PrivateNote becomes `VOID: <memo>`, DocNumber kept, Balance 0); voiding again succeeds. The response is whatever Desktop returns on the post-void re-read (nothing is fabricated)."
|
|
1373
1598
|
}
|
|
1374
1599
|
],
|
|
1375
1600
|
"unsupported": [
|
|
1376
|
-
{
|
|
1377
|
-
"case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
|
|
1378
|
-
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1379
|
-
"note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
|
|
1380
|
-
},
|
|
1381
1601
|
{
|
|
1382
1602
|
"case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
|
|
1383
1603
|
"error": "MISSING_REQUIRED_DESKTOP_ITEM",
|
|
1384
|
-
"note": "Desktop discounts are items. Create a discount item in
|
|
1604
|
+
"note": "Desktop discounts are items and TenkeyBridge does not guess one: picking a default would silently post the discount to that item's account, and discount items are not readable through the Item API yet. Create a discount item in QuickBooks (Lists > Item List > New > Discount) and pass it as DiscountLineDetail.ItemRef by value (ListID) or name (full name). DiscountAccountRef is ignored; the item carries its own account. See COMPATIBILITY.md."
|
|
1385
1605
|
},
|
|
1386
1606
|
{
|
|
1387
1607
|
"case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly (e.g. SubTotalLineDetail)",
|
|
@@ -1395,72 +1615,83 @@ var CATALOG = {
|
|
|
1395
1615
|
"verdict": "live",
|
|
1396
1616
|
"group": "sales",
|
|
1397
1617
|
"read": "partial",
|
|
1398
|
-
"write": "
|
|
1618
|
+
"write": "partial",
|
|
1399
1619
|
"headline": "One Item becomes several Desktop item types",
|
|
1400
1620
|
"fields": [
|
|
1401
1621
|
{
|
|
1402
1622
|
"qbo": "Name",
|
|
1403
|
-
"support": "full"
|
|
1623
|
+
"support": "full",
|
|
1624
|
+
"note": "Desktop item Name is the leaf name (max 31 characters); FullyQualifiedName is derived."
|
|
1404
1625
|
},
|
|
1405
1626
|
{
|
|
1406
1627
|
"qbo": "FullyQualifiedName",
|
|
1407
1628
|
"support": "full",
|
|
1408
|
-
"note": "Read-only
|
|
1629
|
+
"note": "Read-only; derived from the Desktop FullName. Echoed values on update are ignored."
|
|
1409
1630
|
},
|
|
1410
1631
|
{
|
|
1411
1632
|
"qbo": "Active",
|
|
1412
1633
|
"support": "full",
|
|
1413
|
-
"note": "
|
|
1634
|
+
"note": "Deactivate with a sparse update setting Active to false; items are never deleted."
|
|
1414
1635
|
},
|
|
1415
1636
|
{
|
|
1416
1637
|
"qbo": "Type",
|
|
1417
1638
|
"support": "partial",
|
|
1418
|
-
"note": "Service, NonInventory, Inventory
|
|
1639
|
+
"note": "Service, NonInventory, Inventory read and write; Group reads only. Desktop other-charge and discount items read as Service. Type cannot change after creation. Category and other Desktop types are unsupported."
|
|
1419
1640
|
},
|
|
1420
1641
|
{
|
|
1421
1642
|
"qbo": "Description",
|
|
1422
1643
|
"support": "full",
|
|
1423
|
-
"note": "
|
|
1644
|
+
"note": "Desktop sales description: SalesOrPurchase/Desc, SalesAndPurchase/SalesDesc, or SalesDesc on Inventory."
|
|
1424
1645
|
},
|
|
1425
1646
|
{
|
|
1426
1647
|
"qbo": "UnitPrice",
|
|
1427
1648
|
"support": "full",
|
|
1428
|
-
"note": "
|
|
1649
|
+
"note": "Desktop sales price. Sent with up to five decimals. On a Desktop discount item a flat rate reads as UnitPrice; a percentage discount has none. Discount items are read-only."
|
|
1429
1650
|
},
|
|
1430
1651
|
{
|
|
1431
1652
|
"qbo": "Sku",
|
|
1432
1653
|
"support": "partial",
|
|
1433
|
-
"note": "QBO Sku
|
|
1654
|
+
"note": "QBO Sku maps to Desktop ManufacturerPartNumber (max 31 characters) \u2014 Desktop has no first-class SKU field; barcode (Advanced Inventory) is intentionally not used. NonInventory and Inventory only; on a Service, Sku is refused with UNSUPPORTED_BY_DESKTOP."
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
"qbo": "TrackQtyOnHand",
|
|
1658
|
+
"support": "partial",
|
|
1659
|
+
"note": "Read as true for Inventory. On write it must agree with Type (Inventory always tracks quantity; Service and NonInventory never do) or the request is refused."
|
|
1434
1660
|
},
|
|
1435
1661
|
{
|
|
1436
1662
|
"qbo": "QtyOnHand",
|
|
1437
|
-
"support": "
|
|
1438
|
-
"note": "Read
|
|
1663
|
+
"support": "partial",
|
|
1664
|
+
"note": "Read for Inventory. Settable on create only (with InvStartDate); Desktop changes stock through inventory adjustments and transactions, so a different value on update is refused. Echoing the current value is accepted."
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
"qbo": "InvStartDate",
|
|
1668
|
+
"support": "partial",
|
|
1669
|
+
"note": "Write-only, create only (Desktop InventoryDate). Not returned on read."
|
|
1439
1670
|
},
|
|
1440
1671
|
{
|
|
1441
1672
|
"qbo": "IncomeAccountRef",
|
|
1442
1673
|
"support": "full",
|
|
1443
|
-
"note": "
|
|
1674
|
+
"note": "Service/NonInventory: SalesOrPurchase/AccountRef (one-sided) or SalesAndPurchase/IncomeAccountRef (two-sided). Inventory: IncomeAccountRef. Required on create for every writable type (Desktop rejects an item with no posting account; a missing one is a 400 with code 2020)."
|
|
1444
1675
|
},
|
|
1445
1676
|
{
|
|
1446
1677
|
"qbo": "ExpenseAccountRef",
|
|
1447
1678
|
"support": "partial",
|
|
1448
|
-
"note": "Inventory: COGSAccountRef. Two-sided Service/NonInventory (SalesAndPurchase): ExpenseAccountRef. One-sided Service/NonInventory have no expense account."
|
|
1679
|
+
"note": "Inventory: COGSAccountRef (required on create). Two-sided Service/NonInventory (SalesAndPurchase): ExpenseAccountRef. One-sided Service/NonInventory have no expense account; sending one at creation makes the item two-sided, and on update it is refused for a sales-only item."
|
|
1449
1680
|
},
|
|
1450
1681
|
{
|
|
1451
1682
|
"qbo": "AssetAccountRef",
|
|
1452
1683
|
"support": "full",
|
|
1453
|
-
"note": "
|
|
1684
|
+
"note": "Inventory only; required on create."
|
|
1454
1685
|
},
|
|
1455
1686
|
{
|
|
1456
1687
|
"qbo": "PurchaseDesc",
|
|
1457
1688
|
"support": "full",
|
|
1458
|
-
"note": "Inventory and two-sided Service/NonInventory (SalesAndPurchase)."
|
|
1689
|
+
"note": "Inventory and two-sided Service/NonInventory (SalesAndPurchase). Purchase-side fields must be present at creation: Desktop cannot turn an existing sales-only item into a two-sided one, so adding them on update is refused with UNSUPPORTED_BY_DESKTOP."
|
|
1459
1690
|
},
|
|
1460
1691
|
{
|
|
1461
1692
|
"qbo": "PurchaseCost",
|
|
1462
1693
|
"support": "full",
|
|
1463
|
-
"note": "Inventory and two-sided Service/NonInventory (SalesAndPurchase)."
|
|
1694
|
+
"note": "Inventory and two-sided Service/NonInventory (SalesAndPurchase). Sent with up to five decimals. On create with QtyOnHand, Desktop values the opening stock at PurchaseCost."
|
|
1464
1695
|
},
|
|
1465
1696
|
{
|
|
1466
1697
|
"qbo": "PrefVendorRef",
|
|
@@ -1470,29 +1701,54 @@ var CATALOG = {
|
|
|
1470
1701
|
{
|
|
1471
1702
|
"qbo": "ParentRef",
|
|
1472
1703
|
"support": "full",
|
|
1473
|
-
"note": "Desktop item hierarchy."
|
|
1704
|
+
"note": "Desktop item hierarchy; sub-items are FullName paths (Parent:Child)."
|
|
1474
1705
|
},
|
|
1475
1706
|
{
|
|
1476
1707
|
"qbo": "SubItem",
|
|
1477
1708
|
"support": "full",
|
|
1478
|
-
"note": "Derived from Desktop Sublevel."
|
|
1709
|
+
"note": "Derived from Desktop Sublevel; read-only."
|
|
1710
|
+
},
|
|
1711
|
+
{
|
|
1712
|
+
"qbo": "ClassRef",
|
|
1713
|
+
"support": "full",
|
|
1714
|
+
"note": "Desktop ClassRef."
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
"qbo": "SalesTaxCodeRef",
|
|
1718
|
+
"support": "full",
|
|
1719
|
+
"note": "Desktop SalesTaxCodeRef. QBO values TAX and NON map to Desktop's built-in Tax and Non codes; any other value is a ListID. Wins over Taxable if both are sent."
|
|
1720
|
+
},
|
|
1721
|
+
{
|
|
1722
|
+
"qbo": "Taxable",
|
|
1723
|
+
"support": "partial",
|
|
1724
|
+
"note": "Derived on read only when the sales tax code is the built-in Tax or Non code (a custom code leaves it unset). On write, true/false selects the Tax/Non code."
|
|
1479
1725
|
},
|
|
1480
1726
|
{
|
|
1481
1727
|
"qbo": "CustomField",
|
|
1482
1728
|
"support": "partial",
|
|
1483
|
-
"note": "Name/StringValue
|
|
1729
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the record. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Item records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30)."
|
|
1484
1730
|
}
|
|
1485
1731
|
],
|
|
1486
1732
|
"unsupported": [
|
|
1487
1733
|
{
|
|
1488
|
-
"case": "Item types other than Service, NonInventory, Inventory, and
|
|
1734
|
+
"case": "Item types other than Service, NonInventory, Inventory, Group, other-charge and discount (assemblies, sales tax items, payment items, fixed assets, subtotal)",
|
|
1489
1735
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1490
1736
|
"note": "Omitted from query results; a direct get by id on one of these Desktop items returns a 422 UNSUPPORTED_BY_DESKTOP fault."
|
|
1491
1737
|
},
|
|
1492
1738
|
{
|
|
1493
|
-
"case": "
|
|
1739
|
+
"case": "Creating or updating Group (and Category) items, or updating discount items",
|
|
1494
1740
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1495
|
-
"note": "
|
|
1741
|
+
"note": "Group items and discounts are read-only, and Category has no Desktop equivalent. A Desktop other-charge item reads as Type Service and can be updated (it is sent as ItemOtherChargeMod); it cannot be created."
|
|
1742
|
+
},
|
|
1743
|
+
{
|
|
1744
|
+
"case": "Adding purchase-side fields to an existing sales-only Service/NonInventory item",
|
|
1745
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1746
|
+
"note": "Desktop rejects the SalesOrPurchase to SalesAndPurchase conversion (error 3170). Include PurchaseDesc, PurchaseCost, ExpenseAccountRef or PrefVendorRef when the item is created."
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
"case": "Changing QtyOnHand after creation",
|
|
1750
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1751
|
+
"note": "Stock levels change only through inventory adjustments and transactions. (Changing Type after creation is a 400 Invalid Field Value, since a Desktop item's type is fixed.)"
|
|
1496
1752
|
}
|
|
1497
1753
|
]
|
|
1498
1754
|
},
|
|
@@ -1546,7 +1802,8 @@ var CATALOG = {
|
|
|
1546
1802
|
},
|
|
1547
1803
|
{
|
|
1548
1804
|
"qbo": "DocNumber",
|
|
1549
|
-
"support": "full"
|
|
1805
|
+
"support": "full",
|
|
1806
|
+
"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."
|
|
1550
1807
|
},
|
|
1551
1808
|
{
|
|
1552
1809
|
"qbo": "PrivateNote",
|
|
@@ -1561,7 +1818,7 @@ var CATALOG = {
|
|
|
1561
1818
|
{
|
|
1562
1819
|
"qbo": "Line",
|
|
1563
1820
|
"support": "partial",
|
|
1564
|
-
"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.
|
|
1821
|
+
"note": "JournalEntryLineDetail only. Write splits by PostingType into JournalDebitLine / JournalCreditLine; read interleaves debit then credit lists. Debits must equal credits or create fails UNSUPPORTED_BY_DESKTOP before the Desktop round-trip. Updates carrying Line send the full table as JournalLineMod (TxnLineID + JournalLineType Debit/Credit): a line with the Id a read returned keeps that Desktop line (and may flip Debit/Credit), a line without an Id is added, and any existing line omitted from the array is deleted \u2014 send the whole array. Fields you omit from a line that carries an Id (account, memo, entity, class) are filled from the current record. Balance is checked over the merged table before anything is sent. An Id that is not a line of the entry is a 400; an Id listed twice is 2010; an empty Line array is refused. Verified live on QuickBooks Enterprise 24 (2026-09-30): Debit/Credit flips and deletion of unlisted lines work. Desktop rejects a Mod whose existing lines are not in stored (ascending TxnLineID) order with 3290, and a read lists debit lines before credit lines, so the gateway sends existing lines in TxnLineID order whatever order you post them in. JournalEntryLineDetail.Entity: only EntityRef is populated on read \u2014 Desktop's line-level EntityRef carries no entity-kind flag, so we don't stamp a Type (Vendor/Customer/Employee); a wrong guess is worse than omitting it. Set Type yourself on write if you know it; it's accepted and simply not echoed back."
|
|
1565
1822
|
},
|
|
1566
1823
|
{
|
|
1567
1824
|
"qbo": "TotalAmt",
|
|
@@ -1617,7 +1874,7 @@ var CATALOG = {
|
|
|
1617
1874
|
{
|
|
1618
1875
|
"qbo": "PaymentRefNum",
|
|
1619
1876
|
"support": "full",
|
|
1620
|
-
"note": "Desktop RefNumber.
|
|
1877
|
+
"note": "Desktop RefNumber: max 20 characters; longer values are rejected up front with a 400 fault (code 2050). Queryable: WHERE PaymentRefNum = '...' / IN (...) / LIKE 'CHK%' is pushed to QuickBooks as RefNumber / RefNumberFilter (DocNumber is accepted as an alias)."
|
|
1621
1878
|
},
|
|
1622
1879
|
{
|
|
1623
1880
|
"qbo": "TotalAmt",
|
|
@@ -1639,7 +1896,7 @@ var CATALOG = {
|
|
|
1639
1896
|
{
|
|
1640
1897
|
"qbo": "Line",
|
|
1641
1898
|
"support": "partial",
|
|
1642
|
-
"note": "LinkedTxn
|
|
1899
|
+
"note": "One Line per Invoice (LinkedTxn[0] = the invoice; on write Amount = the total applied to the invoice, cash plus credit, which is the qbXML PaymentAmount; on read Amount = the cash only). Credits ride inside the invoice Line's LinkedTxn: credit memos applied to that invoice are extra LinkedTxn entries {TxnId, TxnType CreditMemo, Amount = credit applied, a number > 0} and are sent as SetCredit; a credit-only Line (no invoice) is rejected (2020), and so is a credit-only payment (credit memos with TotalAmt omitted or 0): live QB applies the credit and creates no payment, so there is nothing to return; it is refused up front with 422 UNSUPPORTED_BY_DESKTOP (apply credits together with a cash TotalAmt, or in QuickBooks). Read returns the applied credit memos as CreditMemo LinkedTxn entries (Amount positive) from the LinkedTxn Desktop nests inside AppliedToTxnRet (verified live on QB Enterprise 24: the nested LinkedTxn has TxnType CreditMemo and a negative Amount, AppliedToTxnRet/Amount is the cash only, and the request PaymentAmount is cash plus credit). Over-crediting returns 3210 ('The amount you entered is greater than the amount of the credit'). No Line means an unapplied payment (IsAutoApply=false). Deposit applications are not supported. AppliedToTxnRet.TxnDate/RefNumber/BalanceRemaining have no honest home in QBO Payment.Line.LinkedTxn ({TxnId, TxnType} only) and are not projected \u2014 re-fetch the invoice for balance/date/doc number."
|
|
1643
1900
|
},
|
|
1644
1901
|
{
|
|
1645
1902
|
"qbo": "UnappliedAmt",
|
|
@@ -1679,7 +1936,13 @@ var CATALOG = {
|
|
|
1679
1936
|
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1680
1937
|
}
|
|
1681
1938
|
],
|
|
1682
|
-
"unsupported": [
|
|
1939
|
+
"unsupported": [
|
|
1940
|
+
{
|
|
1941
|
+
"case": "operation=void",
|
|
1942
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1943
|
+
"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."
|
|
1944
|
+
}
|
|
1945
|
+
]
|
|
1683
1946
|
},
|
|
1684
1947
|
"PaymentMethod": {
|
|
1685
1948
|
"entity": "PaymentMethod",
|
|
@@ -1780,7 +2043,7 @@ var CATALOG = {
|
|
|
1780
2043
|
"note": "Preferences is read/query only in QBO and Desktop \u2014 there is no PreferencesAdd/Mod."
|
|
1781
2044
|
},
|
|
1782
2045
|
{
|
|
1783
|
-
"case": "Any WHERE clause, or STARTPOSITION/MAXRESULTS",
|
|
2046
|
+
"case": "Any WHERE clause, ORDERBY, COUNT(*), column list, or STARTPOSITION/MAXRESULTS",
|
|
1784
2047
|
"error": "UNSUPPORTED_QUERY",
|
|
1785
2048
|
"note": "PreferencesQueryRq takes no filters and always returns the single open company PreferencesRet. Use SELECT * FROM Preferences."
|
|
1786
2049
|
}
|
|
@@ -1820,7 +2083,8 @@ var CATALOG = {
|
|
|
1820
2083
|
},
|
|
1821
2084
|
{
|
|
1822
2085
|
"qbo": "DocNumber",
|
|
1823
|
-
"support": "full"
|
|
2086
|
+
"support": "full",
|
|
2087
|
+
"note": "Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050) rather than reaching Desktop. A check that is still to be printed (PrintStatus NeedToPrint, which Desktop may default to when PrintStatus is omitted) silently ignores RefNumber, on create and on a sparse DocNumber update alike (200, but no number is stored); send PrintStatus PrintComplete with DocNumber. On a PrintComplete check a DocNumber update changes RefNumber (verified live 2026-09-30). A single quote is allowed; query it with a backslash escape."
|
|
1824
2088
|
},
|
|
1825
2089
|
{
|
|
1826
2090
|
"qbo": "PrivateNote",
|
|
@@ -1852,6 +2116,11 @@ var CATALOG = {
|
|
|
1852
2116
|
"support": "none",
|
|
1853
2117
|
"note": "Multicurrency not yet supported.",
|
|
1854
2118
|
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
2119
|
+
},
|
|
2120
|
+
{
|
|
2121
|
+
"qbo": "operation=void",
|
|
2122
|
+
"support": "partial",
|
|
2123
|
+
"note": "POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType Check / CreditCardCharge / CreditCardCredit, picked by a read of the record), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QB Enterprise 24 (2026-09-29, Check family): amounts zeroed, PrintStatus becomes PrintComplete, and PrivateNote becomes `VOID: <memo> GJE, RGJE created on MM/DD/YYYY` \u2014 Desktop also posts two General Journal entries (live-proven again 2026-09-30, same-day and prior-month checks): a GJE dated the ORIGINAL check date that re-books the original check (Dr expense / Cr bank, memo 'For CHK voided on MM/DD/YYYY'), and a reversing RGJE (ref such as 7R, memo 'Reverse of GJE 7 -- ...') dated the VOID day that undoes it (Dr bank / Cr expense). The zeroed check keeps its TxnDate; the original period still shows the expense (via the GJE) and the reversal lands in the void day's period. Same-day voids net to zero on one date. Voiding again succeeds. Desktop's closing date is not exposed by PreferencesQuery; voids dated back to 2026-07-02 were accepted on the test file. CreditCardCharge/CreditCardCredit voids are not yet live-tested. The response is whatever Desktop returns on the post-void re-read (nothing is fabricated)."
|
|
1855
2124
|
}
|
|
1856
2125
|
],
|
|
1857
2126
|
"unsupported": [
|
|
@@ -1885,7 +2154,8 @@ var CATALOG = {
|
|
|
1885
2154
|
},
|
|
1886
2155
|
{
|
|
1887
2156
|
"qbo": "DocNumber",
|
|
1888
|
-
"support": "full"
|
|
2157
|
+
"support": "full",
|
|
2158
|
+
"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."
|
|
1889
2159
|
},
|
|
1890
2160
|
{
|
|
1891
2161
|
"qbo": "VendorAddr",
|
|
@@ -1911,10 +2181,15 @@ var CATALOG = {
|
|
|
1911
2181
|
"qbo": "PrivateNote",
|
|
1912
2182
|
"support": "full"
|
|
1913
2183
|
},
|
|
2184
|
+
{
|
|
2185
|
+
"qbo": "CustomField",
|
|
2186
|
+
"support": "partial",
|
|
2187
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the transaction header. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to PurchaseOrder records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30)."
|
|
2188
|
+
},
|
|
1914
2189
|
{
|
|
1915
2190
|
"qbo": "Line",
|
|
1916
2191
|
"support": "partial",
|
|
1917
|
-
"note": "ItemBasedExpenseLineDetail only (PurchaseOrderLineAdd). AccountBasedExpenseLineDetail returns UNSUPPORTED_BY_DESKTOP. ReceivedQty maps from ReceivedQuantity on read (read-only).
|
|
2192
|
+
"note": "ItemBasedExpenseLineDetail only (PurchaseOrderLineAdd). AccountBasedExpenseLineDetail returns UNSUPPORTED_BY_DESKTOP. ReceivedQty maps from ReceivedQuantity on read (read-only). Updates carrying Line send the full line table (PurchaseOrderLineMod): a line with the Id a read returned keeps that Desktop line (Id = TxnLineID), a line without an Id is added, and any existing line omitted from the array is deleted \u2014 send the whole array. Fields you omit from a line that carries an Id are filled from the current record; changing Qty or UnitPrice without Amount recomputes Amount, and restating Amount alone drops the inherited Rate and Qty. An Id that is not a line of the PO is a 400; an Id listed twice is 2010; an empty Line array is refused. Per-line IsManuallyClosed is not exposed. Verified live on QuickBooks Enterprise 24 (2026-09-30): the Id/new/deleted-line table, qty recompute and OSR child order are accepted."
|
|
1918
2193
|
},
|
|
1919
2194
|
{
|
|
1920
2195
|
"qbo": "TotalAmt",
|
|
@@ -1924,7 +2199,7 @@ var CATALOG = {
|
|
|
1924
2199
|
{
|
|
1925
2200
|
"qbo": "POStatus",
|
|
1926
2201
|
"support": "partial",
|
|
1927
|
-
"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).
|
|
2202
|
+
"note": "Open/Closed map to Desktop IsManuallyClosed, a Mod-only element \u2014 PurchaseOrderAdd has no IsManuallyClosed at all. Create with POStatus Open (or omitted) works; POStatus Closed on create returns UNSUPPORTED_BY_DESKTOP (create the PO open, then close it via an update). A sparse update with POStatus Closed sends IsManuallyClosed true (closing the whole PO); POStatus Open sends false (reopens). Any other value is a 400 (2010). An update without POStatus never re-sends the status. Verified live on QuickBooks Enterprise 24 (2026-09-30): closing and reopening both work."
|
|
1928
2203
|
},
|
|
1929
2204
|
{
|
|
1930
2205
|
"qbo": "APAccountRef",
|
|
@@ -2023,7 +2298,8 @@ var CATALOG = {
|
|
|
2023
2298
|
},
|
|
2024
2299
|
{
|
|
2025
2300
|
"qbo": "DocNumber",
|
|
2026
|
-
"support": "full"
|
|
2301
|
+
"support": "full",
|
|
2302
|
+
"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."
|
|
2027
2303
|
},
|
|
2028
2304
|
{
|
|
2029
2305
|
"qbo": "PrivateNote",
|
|
@@ -2056,7 +2332,7 @@ var CATALOG = {
|
|
|
2056
2332
|
{
|
|
2057
2333
|
"case": "Item-line RefundReceipt (SalesItemLineDetail etc.)",
|
|
2058
2334
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2059
|
-
"note": "Desktop has no
|
|
2335
|
+
"note": "Desktop has no single transaction that is both the returned goods and the refund: its refund (ARRefundCreditCard) only pays back an existing credit, and a check refund is a separate Check applied to a credit memo. Two calls instead: (1) POST CreditMemo with the returned item lines; (2) POST RefundReceipt with DepositToAccountRef (the card/refund account) and Line[{Amount, LinkedTxn:[{TxnId: the CreditMemo Id, TxnType:CreditMemo}]}]. Refunds by check or cash are recorded in QuickBooks (Customers > Refund) \u2014 TenkeyBridge has no Check-applied-to-credit-memo path."
|
|
2060
2336
|
},
|
|
2061
2337
|
{
|
|
2062
2338
|
"case": "Update / sparse update",
|
|
@@ -2108,46 +2384,103 @@ var CATALOG = {
|
|
|
2108
2384
|
"group": "platform",
|
|
2109
2385
|
"read": "partial",
|
|
2110
2386
|
"write": "none",
|
|
2111
|
-
"headline": "
|
|
2112
|
-
"usage": "GET /v3/company/{realmId}/reports/ProfitAndLoss?start_date=2026-01-01&end_date=2026-12-31",
|
|
2387
|
+
"headline": "Twenty QBO-compatible reports translated live from Desktop's report engine: summary, detail, aging, balance and sales reports, all run against QuickBooks Enterprise 24. There is no CashFlow \u2014 Desktop's SDK has no cash-flow report.",
|
|
2388
|
+
"usage": "GET /v3/company/{realmId}/reports/ProfitAndLoss?start_date=2026-01-01&end_date=2026-12-31&summarize_column_by=Month",
|
|
2113
2389
|
"fields": [
|
|
2114
2390
|
{
|
|
2115
2391
|
"qbo": "ProfitAndLoss / BalanceSheet / TrialBalance",
|
|
2116
2392
|
"support": "full",
|
|
2117
|
-
"note": "GeneralSummaryReportQueryRq (ProfitAndLossStandard / BalanceSheetStandard / TrialBalance). Values verbatim from Desktop \u2014 no recomputation."
|
|
2393
|
+
"note": "GeneralSummaryReportQueryRq (ProfitAndLossStandard / BalanceSheetStandard / TrialBalance). Values verbatim from Desktop \u2014 no recomputation. BalanceSheet also takes report_date as an as-of."
|
|
2118
2394
|
},
|
|
2119
2395
|
{
|
|
2120
2396
|
"qbo": "AgedReceivables / AgedPayables",
|
|
2121
2397
|
"support": "full",
|
|
2122
2398
|
"note": "AgingReportQueryRq (ARAgingSummary / APAgingSummary). Desktop's file-configured aging buckets come back as columns, honestly."
|
|
2123
2399
|
},
|
|
2400
|
+
{
|
|
2401
|
+
"qbo": "CustomerBalance / VendorBalance",
|
|
2402
|
+
"support": "full",
|
|
2403
|
+
"note": "CustomerBalanceSummary / VendorBalanceSummary. As-of (report_date). Month (and the other period splits) are accepted; Desktop refuses ReportBasis here."
|
|
2404
|
+
},
|
|
2405
|
+
{
|
|
2406
|
+
"qbo": "CustomerIncome / VendorExpenses",
|
|
2407
|
+
"support": "full",
|
|
2408
|
+
"note": "IncomeByCustomerSummary / ExpenseByVendorSummary."
|
|
2409
|
+
},
|
|
2410
|
+
{
|
|
2411
|
+
"qbo": "CustomerSales / ItemSales (aliases SalesByCustomer / SalesByProduct)",
|
|
2412
|
+
"support": "full",
|
|
2413
|
+
"note": "SalesByCustomerSummary / SalesByItemSummary. ItemSales carries Desktop's extra columns (% of Sales, Avg Price, COGS, Gross Margin)."
|
|
2414
|
+
},
|
|
2415
|
+
{
|
|
2416
|
+
"qbo": "InventoryValuationSummary",
|
|
2417
|
+
"support": "full",
|
|
2418
|
+
"note": "InventoryValuationSummary, as-of (report_date), item filter only. Desktop refuses ReportBasis and SummarizeColumnsBy here."
|
|
2419
|
+
},
|
|
2420
|
+
{
|
|
2421
|
+
"qbo": "ProfitAndLossDetail / GeneralLedger",
|
|
2422
|
+
"support": "partial",
|
|
2423
|
+
"note": "GeneralDetailReportQueryRq (ProfitAndLossDetail / GeneralLedger). QBO detail shape: ColType String/Date/Money with MetaData.ColKey (ColKeys best-effort), every transaction row typed Data, accounts as sections. ColData carries value only (Desktop reports carry no TxnID/ListID, so no id)."
|
|
2424
|
+
},
|
|
2425
|
+
{
|
|
2426
|
+
"qbo": "JournalReport / TransactionList",
|
|
2427
|
+
"support": "partial",
|
|
2428
|
+
"note": "GeneralDetailReportQueryRq Journal / TxnListByDate. ColKeys best-effort. Journal's per-transaction unlabeled subtotals become header-less Sections; TransactionList is a flat Data list. Desktop refuses ReportBasis on both, so accounting_method faults."
|
|
2429
|
+
},
|
|
2430
|
+
{
|
|
2431
|
+
"qbo": "CustomerBalanceDetail / VendorBalanceDetail",
|
|
2432
|
+
"support": "partial",
|
|
2433
|
+
"note": "GeneralDetailReportQueryRq CustomerBalanceDetail / VendorBalanceDetail, as-of (report_date). Desktop returns one section per customer/vendor with its balance and no transaction rows; passed through as-is."
|
|
2434
|
+
},
|
|
2435
|
+
{
|
|
2436
|
+
"qbo": "AgedReceivableDetail / AgedPayableDetail",
|
|
2437
|
+
"support": "partial",
|
|
2438
|
+
"note": "AgingReportQueryRq ARAgingDetail / APAgingDetail, as-of (report_date), with the receivable (customer) or payable (vendor) filter. ColKeys best-effort."
|
|
2439
|
+
},
|
|
2124
2440
|
{
|
|
2125
2441
|
"qbo": "start_date / end_date / date_macro",
|
|
2126
2442
|
"support": "full",
|
|
2127
|
-
"note": "ISO dates or QBO date macros (fiscal-relative on both sides, so macros map 1:1). Omit them and you get fiscal year-to-date, matching QBO \u2014 Desktop's own bare default is month-to-date, so TenkeyBridge always sends an explicit period."
|
|
2443
|
+
"note": "ISO dates or QBO date macros (spaced or compact, e.g. Last Month / LastMonth; fiscal-relative on both sides, so macros map 1:1). Omit them and you get fiscal year-to-date, matching QBO \u2014 Desktop's own bare default is month-to-date, so TenkeyBridge always sends an explicit period."
|
|
2128
2444
|
},
|
|
2129
2445
|
{
|
|
2130
2446
|
"qbo": "report_date",
|
|
2131
2447
|
"support": "full",
|
|
2132
|
-
"note": "The
|
|
2448
|
+
"note": "The as-of reports (aging, balance, inventory valuation, and BalanceSheet) are as-of a single date. Omit it and QBO's default (today) is used."
|
|
2133
2449
|
},
|
|
2134
2450
|
{
|
|
2135
2451
|
"qbo": "accounting_method",
|
|
2136
2452
|
"support": "partial",
|
|
2137
|
-
"note": "Cash/Accrual on the
|
|
2453
|
+
"note": "Cash/Accrual \u2192 ReportBasis on ProfitAndLoss, BalanceSheet, TrialBalance, ProfitAndLossDetail, GeneralLedger, CustomerBalanceDetail, VendorBalanceDetail and the income/expense/sales summaries. Desktop refuses it (3151 or a parse error) on Journal, TransactionList, the balance summaries, InventoryValuationSummary and the aging reports, so those fault.",
|
|
2454
|
+
"error": "REPORT_UNSUPPORTED_OPTION"
|
|
2455
|
+
},
|
|
2456
|
+
{
|
|
2457
|
+
"qbo": "summarize_column_by",
|
|
2458
|
+
"support": "partial",
|
|
2459
|
+
"note": "Total, Month, Week, Days, Quarter, Year, Customers, Vendors, Classes \u2192 SummarizeColumnsBy on the period summary reports (Customers is refused on CustomerSales/CustomerIncome and Vendors on VendorExpenses, as Desktop refuses them). CustomerBalance/VendorBalance take the period splits only. Detail, aging and inventory reports take Total only.",
|
|
2460
|
+
"error": "REPORT_UNSUPPORTED_OPTION"
|
|
2461
|
+
},
|
|
2462
|
+
{
|
|
2463
|
+
"qbo": "customer / vendor / item / class",
|
|
2464
|
+
"support": "partial",
|
|
2465
|
+
"note": "Comma-separated Ids \u2192 ReportEntityFilter (customer + vendor) / ReportItemFilter / ReportClassFilter. AR reports accept customer only, AP reports vendor only; InventoryValuationSummary accepts item only.",
|
|
2138
2466
|
"error": "REPORT_UNSUPPORTED_OPTION"
|
|
2139
2467
|
},
|
|
2140
2468
|
{
|
|
2141
2469
|
"qbo": "Column titles",
|
|
2142
2470
|
"support": "partial",
|
|
2143
|
-
"note": "Desktop's own column titles pass through verbatim, so aging buckets read '> 90' where QBO says '91 and over', and a period column reads 'Jan - Dec 26' where QBO says 'Total'. QBO's MetaData.ColKey has no Desktop equivalent and is not invented."
|
|
2471
|
+
"note": "Desktop's own column titles pass through verbatim, so aging buckets read '> 90' where QBO says '91 and over', and a period column reads 'Jan - Dec 26' where QBO says 'Total'. On summary reports QBO's MetaData.ColKey has no Desktop equivalent and is not invented; detail reports derive it from Desktop's column types (ColKeys best-effort \u2014 QBO does not document them)."
|
|
2144
2472
|
}
|
|
2145
2473
|
],
|
|
2146
2474
|
"unsupported": [
|
|
2147
2475
|
{
|
|
2148
|
-
"case": "
|
|
2476
|
+
"case": "CashFlow",
|
|
2477
|
+
"error": "REPORT_UNKNOWN",
|
|
2478
|
+
"note": "QuickBooks Desktop's SDK has no cash-flow report (StatementOfCashFlows is refused with 3110 on every qbXML version)."
|
|
2479
|
+
},
|
|
2480
|
+
{
|
|
2481
|
+
"case": "columns / department / qzurl / adjusted_gain_loss",
|
|
2149
2482
|
"error": "REPORT_UNSUPPORTED_OPTION",
|
|
2150
|
-
"note": "Column
|
|
2483
|
+
"note": "Column selection has no qbXML equivalent; Desktop has no departments (use class); QuickZoom URLs and multicurrency gain/loss adjustment are QBO-only."
|
|
2151
2484
|
},
|
|
2152
2485
|
{
|
|
2153
2486
|
"case": "aging_period / num_periods / aging_method",
|
|
@@ -2155,14 +2488,14 @@ var CATALOG = {
|
|
|
2155
2488
|
"note": "Desktop aging buckets are company-file configuration, not request parameters."
|
|
2156
2489
|
},
|
|
2157
2490
|
{
|
|
2158
|
-
"case": "summarize_column_by
|
|
2491
|
+
"case": "summarize_column_by = Employees / ProductsAndServices / Departments / Location",
|
|
2159
2492
|
"error": "REPORT_UNSUPPORTED_OPTION",
|
|
2160
|
-
"note": "qbXML SummarizeColumnsBy
|
|
2493
|
+
"note": "qbXML's SummarizeColumnsBy has no per-item, per-employee or per-location split (ItemType splits by item type, not by item)."
|
|
2161
2494
|
},
|
|
2162
2495
|
{
|
|
2163
|
-
"case": "other QBO report names (
|
|
2496
|
+
"case": "other QBO report names (class/department sales, tax, account list, ...)",
|
|
2164
2497
|
"error": "REPORT_UNKNOWN",
|
|
2165
|
-
"note": "
|
|
2498
|
+
"note": "Not shipped. The fault lists the supported reports."
|
|
2166
2499
|
}
|
|
2167
2500
|
]
|
|
2168
2501
|
},
|
|
@@ -2184,7 +2517,8 @@ var CATALOG = {
|
|
|
2184
2517
|
},
|
|
2185
2518
|
{
|
|
2186
2519
|
"qbo": "DocNumber",
|
|
2187
|
-
"support": "full"
|
|
2520
|
+
"support": "full",
|
|
2521
|
+
"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."
|
|
2188
2522
|
},
|
|
2189
2523
|
{
|
|
2190
2524
|
"qbo": "BillAddr",
|
|
@@ -2218,12 +2552,12 @@ var CATALOG = {
|
|
|
2218
2552
|
{
|
|
2219
2553
|
"qbo": "Line",
|
|
2220
2554
|
"support": "partial",
|
|
2221
|
-
"note": "SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail requires a Desktop discount item
|
|
2555
|
+
"note": "SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail requires a Desktop discount item named by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount); other DetailTypes (e.g. SubTotalLineDetail) return UNSUPPORTED_BY_DESKTOP. Group lines read back as GroupLineDetail without nested line expansion; Desktop discount lines read back as SalesItemLineDetail lines (never DiscountLineDetail) referencing the discount item, with a negative Amount (verified live). An unknown Line.Id returns 3120 (REST 610); a malformed one returns 3000. Updates carrying Line send the full line table, as QBO requires: a line with the Id a read returned keeps that Desktop line (Id = TxnLineID, stable across updates), a line without an Id (or Id 0 / empty) is added, and any existing line omitted from the array is deleted. Send the whole array on sparse updates too; an Id listed twice is rejected (2010). Fields you omit from a line that carries an Id are filled from the current record before the full line is sent (Desktop would otherwise blank them), and line ClassRef and ServiceDate are written (ServiceDate not on Estimate). Re-sending an existing group line returns 422 (UNSUPPORTED_BY_DESKTOP); omit it to delete it and add a new group line without an Id."
|
|
2222
2556
|
},
|
|
2223
2557
|
{
|
|
2224
2558
|
"qbo": "TxnTaxDetail",
|
|
2225
2559
|
"support": "partial",
|
|
2226
|
-
"note": "
|
|
2560
|
+
"note": "TxnTaxCodeRef on write selects the tax item (Desktop ItemSalesTaxRef). TotalTax alone is accepted but not sent: QuickBooks then applies the customer's default sales tax item (or the company default) and computes the tax itself, so the tax on read can differ from the TotalTax you sent. When it differs, create/update responses carry a non-fatal X-TKB-Warning header (not emitted for /batch items). On read: TotalTax, TxnTaxCodeRef, and TaxLine[{Amount, TaxLineDetail{TaxRateRef, TaxPercent}}]. NetAmountTaxable never returned. Updatable via sparse update (#55)."
|
|
2227
2561
|
},
|
|
2228
2562
|
{
|
|
2229
2563
|
"qbo": "LinkedTxn",
|
|
@@ -2233,7 +2567,7 @@ var CATALOG = {
|
|
|
2233
2567
|
{
|
|
2234
2568
|
"qbo": "CustomField",
|
|
2235
2569
|
"support": "partial",
|
|
2236
|
-
"note": "Name/StringValue
|
|
2570
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the transaction header. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to SalesReceipt records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). The mechanism was verified live on QuickBooks Enterprise 24 (2026-09-30) on Customer, Vendor, Item, Employee, Invoice and PurchaseOrder; this entity follows the same path."
|
|
2237
2571
|
},
|
|
2238
2572
|
{
|
|
2239
2573
|
"qbo": "TotalAmt",
|
|
@@ -2249,13 +2583,49 @@ var CATALOG = {
|
|
|
2249
2583
|
"qbo": "ExchangeRate",
|
|
2250
2584
|
"support": "partial",
|
|
2251
2585
|
"note": "Accepted and ignored \u2014 Desktop manages this itself; multi-currency mapping lands later."
|
|
2586
|
+
},
|
|
2587
|
+
{
|
|
2588
|
+
"qbo": "operation=void",
|
|
2589
|
+
"support": "partial",
|
|
2590
|
+
"note": "POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType SalesReceipt), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QB Enterprise 24 (2026-09-29): the re-read shows amounts and line Qty zeroed, PrivateNote prefixed `VOID: `, TxnDate unchanged, a new SyncToken; voiding again succeeds. The response is whatever Desktop returns on the post-void re-read (nothing is fabricated)."
|
|
2252
2591
|
}
|
|
2253
2592
|
],
|
|
2593
|
+
"unsupported": []
|
|
2594
|
+
},
|
|
2595
|
+
"Tag": {
|
|
2596
|
+
"entity": "Tag",
|
|
2597
|
+
"verdict": "gap",
|
|
2598
|
+
"group": "gaps",
|
|
2599
|
+
"read": "none",
|
|
2600
|
+
"write": "none",
|
|
2601
|
+
"headline": "QBO Tags (and Tag classifications) are a cloud-only labeling feature \u2014 QuickBooks Desktop has no free-form tag object, and its nearest dimensional list (Class) is already exposed as Class.",
|
|
2602
|
+
"fields": [],
|
|
2254
2603
|
"unsupported": [
|
|
2255
2604
|
{
|
|
2256
|
-
"case": "
|
|
2605
|
+
"case": "read",
|
|
2606
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2607
|
+
"note": "qbXML has no Tag or TagClassification message; Desktop has no equivalent many-to-many labeling of transactions.",
|
|
2608
|
+
"workaround": "Use Class for a single dimension per transaction line (live in TenkeyBridge), or keep your labels in your own system keyed by the TenkeyBridge entity Id."
|
|
2609
|
+
},
|
|
2610
|
+
{
|
|
2611
|
+
"case": "query",
|
|
2612
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2613
|
+
"note": "There is no Desktop tag list to query."
|
|
2614
|
+
},
|
|
2615
|
+
{
|
|
2616
|
+
"case": "create",
|
|
2617
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2618
|
+
"note": "Desktop cannot store tags, so none can be created."
|
|
2619
|
+
},
|
|
2620
|
+
{
|
|
2621
|
+
"case": "update",
|
|
2622
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2623
|
+
"note": "Desktop cannot store tags, so none can be updated."
|
|
2624
|
+
},
|
|
2625
|
+
{
|
|
2626
|
+
"case": "delete",
|
|
2257
2627
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2258
|
-
"note": "Desktop cannot
|
|
2628
|
+
"note": "Desktop cannot store tags, so none can be deleted."
|
|
2259
2629
|
}
|
|
2260
2630
|
]
|
|
2261
2631
|
},
|
|
@@ -2370,6 +2740,43 @@ var CATALOG = {
|
|
|
2370
2740
|
],
|
|
2371
2741
|
"unsupported": []
|
|
2372
2742
|
},
|
|
2743
|
+
"TaxPayment": {
|
|
2744
|
+
"entity": "TaxPayment",
|
|
2745
|
+
"verdict": "planned",
|
|
2746
|
+
"group": "planned",
|
|
2747
|
+
"read": "none",
|
|
2748
|
+
"write": "none",
|
|
2749
|
+
"headline": "Desktop records sales-tax remittances as SalesTaxPaymentCheck (qbXML SalesTaxPaymentCheckQuery), a real analog \u2014 but it is not mapped yet because TenkeyBridge will not guess QBO's TaxPayment wire shape.",
|
|
2750
|
+
"fields": [],
|
|
2751
|
+
"unsupported": [
|
|
2752
|
+
{
|
|
2753
|
+
"case": "read",
|
|
2754
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2755
|
+
"note": "Not implemented. Evaluated in wave 3: the Desktop record (SalesTaxPaymentCheckRet: bank AccountRef, tax-agency PayeeEntityRef, per-item SalesTaxPaymentCheckLineRet amounts) maps conceptually to QBO TaxPayment, but QBO's TaxPayment JSON is thinly documented and read-only, so a field-by-field mapping would be guesswork rather than a verified contract.",
|
|
2756
|
+
"workaround": "Sales-tax payments made in Desktop are not visible through TenkeyBridge today. Pay-tax events that are recorded as ordinary checks appear under Purchase."
|
|
2757
|
+
},
|
|
2758
|
+
{
|
|
2759
|
+
"case": "query",
|
|
2760
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2761
|
+
"note": "Not implemented; see read."
|
|
2762
|
+
},
|
|
2763
|
+
{
|
|
2764
|
+
"case": "create",
|
|
2765
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2766
|
+
"note": "QBO's TaxPayment is read-only via the API; TenkeyBridge matches that."
|
|
2767
|
+
},
|
|
2768
|
+
{
|
|
2769
|
+
"case": "update",
|
|
2770
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2771
|
+
"note": "QBO's TaxPayment is read-only via the API; TenkeyBridge matches that."
|
|
2772
|
+
},
|
|
2773
|
+
{
|
|
2774
|
+
"case": "delete",
|
|
2775
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2776
|
+
"note": "QBO's TaxPayment is read-only via the API; TenkeyBridge matches that."
|
|
2777
|
+
}
|
|
2778
|
+
]
|
|
2779
|
+
},
|
|
2373
2780
|
"TaxRate": {
|
|
2374
2781
|
"entity": "TaxRate",
|
|
2375
2782
|
"verdict": "live",
|
|
@@ -2690,7 +3097,7 @@ var CATALOG = {
|
|
|
2690
3097
|
{
|
|
2691
3098
|
"case": "Delete",
|
|
2692
3099
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2693
|
-
"note": '"Transfer" is not a valid qbXML TxnDelType enum value, so delete is not wired for this entity.'
|
|
3100
|
+
"note": '"Transfer" is not a valid qbXML TxnDelType enum value (verified live: status 3110), so delete is not wired for this entity.'
|
|
2694
3101
|
}
|
|
2695
3102
|
]
|
|
2696
3103
|
},
|
|
@@ -2777,7 +3184,7 @@ var CATALOG = {
|
|
|
2777
3184
|
{
|
|
2778
3185
|
"qbo": "CustomField",
|
|
2779
3186
|
"support": "partial",
|
|
2780
|
-
"note": "Name/StringValue
|
|
3187
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the record. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Vendor records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30)."
|
|
2781
3188
|
},
|
|
2782
3189
|
{
|
|
2783
3190
|
"qbo": "CurrencyRef",
|
|
@@ -2814,7 +3221,8 @@ var CATALOG = {
|
|
|
2814
3221
|
},
|
|
2815
3222
|
{
|
|
2816
3223
|
"qbo": "DocNumber",
|
|
2817
|
-
"support": "full"
|
|
3224
|
+
"support": "full",
|
|
3225
|
+
"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."
|
|
2818
3226
|
},
|
|
2819
3227
|
{
|
|
2820
3228
|
"qbo": "PrivateNote",
|
|
@@ -2849,6 +3257,43 @@ var CATALOG = {
|
|
|
2849
3257
|
}
|
|
2850
3258
|
],
|
|
2851
3259
|
"unsupported": []
|
|
3260
|
+
},
|
|
3261
|
+
"VendorType": {
|
|
3262
|
+
"entity": "VendorType",
|
|
3263
|
+
"verdict": "gap",
|
|
3264
|
+
"group": "gaps",
|
|
3265
|
+
"read": "none",
|
|
3266
|
+
"write": "none",
|
|
3267
|
+
"headline": "QBO has no VendorType entity to be compatible with \u2014 Desktop's vendor-type list (VendorTypeAdd/Query) has no counterpart in the QBO Accounting API, so TenkeyBridge does not expose it.",
|
|
3268
|
+
"fields": [],
|
|
3269
|
+
"unsupported": [
|
|
3270
|
+
{
|
|
3271
|
+
"case": "read",
|
|
3272
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
3273
|
+
"note": "The QBO Accounting API has no VendorType resource. Desktop's vendor-type list exists in qbXML, but surfacing it would invent a QBO entity that QBO clients and SDKs do not know.",
|
|
3274
|
+
"workaround": "Desktop's VendorTypeRef on a vendor is not surfaced on the Vendor entity either. Keep vendor classification in your own system keyed by the TenkeyBridge vendor Id."
|
|
3275
|
+
},
|
|
3276
|
+
{
|
|
3277
|
+
"case": "query",
|
|
3278
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
3279
|
+
"note": "No QBO VendorType resource to mirror, so no query is exposed."
|
|
3280
|
+
},
|
|
3281
|
+
{
|
|
3282
|
+
"case": "create",
|
|
3283
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
3284
|
+
"note": "No QBO VendorType resource to mirror, so no create is exposed."
|
|
3285
|
+
},
|
|
3286
|
+
{
|
|
3287
|
+
"case": "update",
|
|
3288
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
3289
|
+
"note": "No QBO VendorType resource to mirror, so no update is exposed."
|
|
3290
|
+
},
|
|
3291
|
+
{
|
|
3292
|
+
"case": "delete",
|
|
3293
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
3294
|
+
"note": "No QBO VendorType resource to mirror, so no delete is exposed."
|
|
3295
|
+
}
|
|
3296
|
+
]
|
|
2852
3297
|
}
|
|
2853
3298
|
};
|
|
2854
3299
|
|
|
@@ -2977,10 +3422,10 @@ function registerTools(server, client) {
|
|
|
2977
3422
|
server.registerTool(
|
|
2978
3423
|
"query",
|
|
2979
3424
|
{
|
|
2980
|
-
description: "Run a QBO-style query against the connected QuickBooks Desktop company file. Supports
|
|
3425
|
+
description: "Run a QBO-style query against the connected QuickBooks Desktop company file. Supports AND-joined WHERE conditions (=, !=, <, >, <=, >=, IN, LIKE; no OR) plus startPosition/maxResults paging. Check the compat://catalog resource for entity support first.",
|
|
2981
3426
|
inputSchema: {
|
|
2982
3427
|
entity: entityArg,
|
|
2983
|
-
where: import_zod.z.string().optional().describe(`
|
|
3428
|
+
where: import_zod.z.string().optional().describe(`WHERE conditions in QBO query grammar, joined with AND (there is no OR), e.g. "CustomerRef = '12' AND TxnDate >= '2026-01-01'"`),
|
|
2984
3429
|
startPosition: import_zod.z.number().int().positive().optional(),
|
|
2985
3430
|
maxResults: import_zod.z.number().int().positive().max(1e3).optional()
|
|
2986
3431
|
}
|
|
@@ -3086,10 +3531,34 @@ function registerTools(server, client) {
|
|
|
3086
3531
|
}
|
|
3087
3532
|
}
|
|
3088
3533
|
);
|
|
3534
|
+
server.registerTool(
|
|
3535
|
+
"void",
|
|
3536
|
+
{
|
|
3537
|
+
description: 'Void a transaction by Id + SyncToken (QBO ?operation=void). Supported: Invoice, SalesReceipt, Purchase, BillPayment. Destructive: on QuickBooks Desktop the record stays but its totals are zeroed and its memo is prefixed "VOID:". Returns the post-void record. Fetch the current SyncToken with the get tool first.',
|
|
3538
|
+
inputSchema: {
|
|
3539
|
+
entity: entityArg,
|
|
3540
|
+
id: import_zod.z.string(),
|
|
3541
|
+
syncToken: import_zod.z.string().describe("Current SyncToken of the transaction (required; a stale token is rejected).")
|
|
3542
|
+
}
|
|
3543
|
+
},
|
|
3544
|
+
async ({ entity, id, syncToken }) => {
|
|
3545
|
+
const name = resolveEntityName(entity);
|
|
3546
|
+
if (!name) return unknownEntity(entity);
|
|
3547
|
+
if (!import_client2.ENTITIES[name].voidable) {
|
|
3548
|
+
const supported = Object.values(import_client2.ENTITIES).filter((e) => e.voidable).map((e) => e.name).join(", ");
|
|
3549
|
+
return fail(`${name} cannot be voided through TenkeyBridge. Voidable entities: ${supported}.`);
|
|
3550
|
+
}
|
|
3551
|
+
try {
|
|
3552
|
+
return ok(await accessor(client, name).void({ Id: id, SyncToken: syncToken }));
|
|
3553
|
+
} catch (err) {
|
|
3554
|
+
return failure(err);
|
|
3555
|
+
}
|
|
3556
|
+
}
|
|
3557
|
+
);
|
|
3089
3558
|
}
|
|
3090
3559
|
|
|
3091
3560
|
// src/version.ts
|
|
3092
|
-
var PKG_VERSION = "0.
|
|
3561
|
+
var PKG_VERSION = "0.3.0";
|
|
3093
3562
|
|
|
3094
3563
|
// src/server.ts
|
|
3095
3564
|
var SERVER_NAME = "tenkeybridge";
|