@tenkeybridge/mcp 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli.js +477 -114
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +477 -114
- 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 +477 -114
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -227,7 +227,7 @@ var CATALOG = {
|
|
|
227
227
|
{
|
|
228
228
|
"qbo": "Query items",
|
|
229
229
|
"support": "full",
|
|
230
|
-
"note": "Full /query parity: the
|
|
230
|
+
"note": "Full /query parity: the same query language (AND-joined WHERE with =, !=, <, >, <=, >=, IN, LIKE; ORDERBY; COUNT(*); column lists; STARTPOSITION/MAXRESULTS), iterator-backed deep pages."
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
"qbo": "per-item faults",
|
|
@@ -310,7 +310,7 @@ var CATALOG = {
|
|
|
310
310
|
{
|
|
311
311
|
"qbo": "CustomField",
|
|
312
312
|
"support": "partial",
|
|
313
|
-
"note": "Name/StringValue
|
|
313
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the transaction header. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Bill records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30). Desktop never assigns a custom field to Bills (only Customer/Vendor/Employee/Item fields can be defined, and they surface on sales forms and purchase orders), so a Bill CustomField is always a 400 'not assigned to Bill records'."
|
|
314
314
|
},
|
|
315
315
|
{
|
|
316
316
|
"qbo": "CurrencyRef",
|
|
@@ -470,9 +470,9 @@ var CATALOG = {
|
|
|
470
470
|
"workaround": "Fetch it by id: GET /v3/company/{realmId}/budget/{fiscalYear}-{BudgetType}, e.g. 2023-ProfitAndLoss, which issues exactly one report request for that year."
|
|
471
471
|
},
|
|
472
472
|
{
|
|
473
|
-
"case": "query \u2014 WHERE on anything but Id",
|
|
473
|
+
"case": "query \u2014 WHERE on anything but Id, ORDERBY, COUNT(*), column lists",
|
|
474
474
|
"error": "UNSUPPORTED_QUERY",
|
|
475
|
-
"note": "Budget is not a Desktop list, so there is no query filter to compile a WHERE clause into. Only WHERE Id = '{fiscalYear}-{BudgetType}' is accepted; it resolves to the same single report request GET by id uses.",
|
|
475
|
+
"note": "Budget is not a Desktop list, so there is no query filter to compile a WHERE clause into. Only WHERE Id = '{fiscalYear}-{BudgetType}' is accepted; it resolves to the same single report request GET by id uses. ORDERBY, COUNT(*) and column lists are rejected too.",
|
|
476
476
|
"workaround": "Fetch the window with SELECT * FROM Budget and filter the (at most six) rows client-side."
|
|
477
477
|
},
|
|
478
478
|
{
|
|
@@ -716,12 +716,51 @@ var CATALOG = {
|
|
|
716
716
|
"note": "CompanyInfo is read/query only \u2014 there is exactly one company record, and Desktop has no API to create or modify it."
|
|
717
717
|
},
|
|
718
718
|
{
|
|
719
|
-
"case": "Any WHERE clause, or STARTPOSITION/MAXRESULTS",
|
|
719
|
+
"case": "Any WHERE clause, ORDERBY, COUNT(*), column list, or STARTPOSITION/MAXRESULTS",
|
|
720
720
|
"error": "UNSUPPORTED_QUERY",
|
|
721
721
|
"note": "CompanyQueryRq takes no filters and always returns the single open company record. Use SELECT * FROM CompanyInfo."
|
|
722
722
|
}
|
|
723
723
|
]
|
|
724
724
|
},
|
|
725
|
+
"CreditCardPayment": {
|
|
726
|
+
"entity": "CreditCardPayment",
|
|
727
|
+
"verdict": "gap",
|
|
728
|
+
"group": "gaps",
|
|
729
|
+
"read": "none",
|
|
730
|
+
"write": "none",
|
|
731
|
+
"headline": "QBO's 'pay down a credit card' transaction has no Desktop record of its own \u2014 Desktop books the same event as a Transfer or a Check against the card account, so there is nothing to project a CreditCardPayment from.",
|
|
732
|
+
"fields": [],
|
|
733
|
+
"unsupported": [
|
|
734
|
+
{
|
|
735
|
+
"case": "read",
|
|
736
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
737
|
+
"note": "qbXML has no CreditCardPayment message. A card payment made in Desktop is stored as an ordinary Transfer (Transfer Funds) or a Check/Bill Payment whose target is the credit card liability account, and is indistinguishable from any other such transaction on read.",
|
|
738
|
+
"workaround": "Read the same events as Transfer (ToAccountRef = the credit card account) or as a Purchase of type Check. Both are live in TenkeyBridge."
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"case": "query",
|
|
742
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
743
|
+
"note": "No Desktop CreditCardPayment exists to query; card paydowns appear under Transfer or Purchase.",
|
|
744
|
+
"workaround": "Query Transfer or Purchase and filter client-side by the credit card account."
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"case": "create",
|
|
748
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
749
|
+
"note": "TenkeyBridge will not guess which Desktop transaction to create in place of a CreditCardPayment.",
|
|
750
|
+
"workaround": "To pay down a card, create a Transfer with FromAccountRef = your bank account and ToAccountRef = the credit card account (or a Purchase/Check whose account line is the credit card account). That is what QuickBooks Desktop records for the same action."
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"case": "update",
|
|
754
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
755
|
+
"note": "No Desktop CreditCardPayment to update; update the Transfer or Purchase instead."
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"case": "delete",
|
|
759
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
760
|
+
"note": "No Desktop CreditCardPayment to delete; delete the Purchase instead (Transfer cannot be deleted through qbXML)."
|
|
761
|
+
}
|
|
762
|
+
]
|
|
763
|
+
},
|
|
725
764
|
"CreditMemo": {
|
|
726
765
|
"entity": "CreditMemo",
|
|
727
766
|
"verdict": "live",
|
|
@@ -767,6 +806,11 @@ var CATALOG = {
|
|
|
767
806
|
"qbo": "PrivateNote",
|
|
768
807
|
"support": "full"
|
|
769
808
|
},
|
|
809
|
+
{
|
|
810
|
+
"qbo": "CustomField",
|
|
811
|
+
"support": "partial",
|
|
812
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the transaction header. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to CreditMemo records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). The mechanism was verified live on QuickBooks Enterprise 24 (2026-09-30) on Customer, Vendor, Item, Employee, Invoice and PurchaseOrder; this entity follows the same path."
|
|
813
|
+
},
|
|
770
814
|
{
|
|
771
815
|
"qbo": "CustomerMemo",
|
|
772
816
|
"support": "full",
|
|
@@ -775,12 +819,12 @@ var CATALOG = {
|
|
|
775
819
|
{
|
|
776
820
|
"qbo": "Line",
|
|
777
821
|
"support": "partial",
|
|
778
|
-
"note": "Same DetailType support as Invoice: SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; DiscountLineDetail requires a Desktop discount item; other DetailTypes return UNSUPPORTED_BY_DESKTOP. Group lines read back as GroupLineDetail without nested line expansion; Desktop discount lines read back as
|
|
822
|
+
"note": "Same DetailType support as Invoice: SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; DiscountLineDetail requires a Desktop discount item named by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount); other DetailTypes return UNSUPPORTED_BY_DESKTOP. Group lines read back as GroupLineDetail without nested line expansion; Desktop discount lines read back as SalesItemLineDetail lines (never DiscountLineDetail) referencing the discount item, with a negative Amount (verified live). An unknown Line.Id returns 3120 (REST 610); a malformed one returns 3000. Updates carrying Line send the full line table, as QBO requires: a line with the Id a read returned keeps that Desktop line (Id = TxnLineID, stable across updates), a line without an Id (or Id 0 / empty) is added, and any existing line omitted from the array is deleted. Send the whole array on sparse updates too; an Id listed twice is rejected (2010). Fields you omit from a line that carries an Id are filled from the current record before the full line is sent (Desktop would otherwise blank them), and line ClassRef and ServiceDate are written (ServiceDate not on Estimate). Re-sending an existing group line returns 422 (UNSUPPORTED_BY_DESKTOP); omit it to delete it and add a new group line without an Id."
|
|
779
823
|
},
|
|
780
824
|
{
|
|
781
825
|
"qbo": "TxnTaxDetail",
|
|
782
826
|
"support": "partial",
|
|
783
|
-
"note": "
|
|
827
|
+
"note": "TxnTaxCodeRef selects the tax item (Desktop ItemSalesTaxRef). TotalTax alone is accepted but not sent: QuickBooks then applies the customer's default sales tax item (or the company default) and computes the tax itself, so the tax on read can differ from the TotalTax you sent. When it differs, create/update responses carry a non-fatal X-TKB-Warning header (not emitted for /batch items). Updatable via sparse update (#55)."
|
|
784
828
|
},
|
|
785
829
|
{
|
|
786
830
|
"qbo": "LinkedTxn",
|
|
@@ -810,15 +854,10 @@ var CATALOG = {
|
|
|
810
854
|
}
|
|
811
855
|
],
|
|
812
856
|
"unsupported": [
|
|
813
|
-
{
|
|
814
|
-
"case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
|
|
815
|
-
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
816
|
-
"note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
|
|
817
|
-
},
|
|
818
857
|
{
|
|
819
858
|
"case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
|
|
820
859
|
"error": "MISSING_REQUIRED_DESKTOP_ITEM",
|
|
821
|
-
"note": "Desktop discounts are items. Create a discount item in
|
|
860
|
+
"note": "Desktop discounts are items and TenkeyBridge does not guess one: picking a default would silently post the discount to that item's account, and discount items are not readable through the Item API yet. Create a discount item in QuickBooks (Lists > Item List > New > Discount) and pass it as DiscountLineDetail.ItemRef by value (ListID) or name (full name). DiscountAccountRef is ignored; the item carries its own account. See COMPATIBILITY.md."
|
|
822
861
|
},
|
|
823
862
|
{
|
|
824
863
|
"case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly",
|
|
@@ -943,7 +982,7 @@ var CATALOG = {
|
|
|
943
982
|
{
|
|
944
983
|
"qbo": "CustomField",
|
|
945
984
|
"support": "partial",
|
|
946
|
-
"note": "Name/StringValue
|
|
985
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the record. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Customer records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30)."
|
|
947
986
|
},
|
|
948
987
|
{
|
|
949
988
|
"qbo": "CurrencyRef",
|
|
@@ -1012,9 +1051,10 @@ var CATALOG = {
|
|
|
1012
1051
|
],
|
|
1013
1052
|
"unsupported": [
|
|
1014
1053
|
{
|
|
1015
|
-
"case": "Create or
|
|
1054
|
+
"case": "Create, update or deactivate",
|
|
1016
1055
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1017
|
-
"note": "QBO's CustomerType is read-only via the API
|
|
1056
|
+
"note": "QBO's CustomerType is read-only via the API, and TenkeyBridge matches that. Desktop has CustomerTypeAdd but no CustomerTypeMod (verified live: a CustomerTypeMod is a qbXML parse error), so a type cannot be renamed or made inactive through the API at all; Desktop's hierarchy (ParentRef/Sublevel/FullName) has no QBO CustomerType fields and is not surfaced.",
|
|
1057
|
+
"workaround": "Create, rename or deactivate the type in QuickBooks Desktop itself; the change shows up on the next read."
|
|
1018
1058
|
}
|
|
1019
1059
|
]
|
|
1020
1060
|
},
|
|
@@ -1079,12 +1119,12 @@ var CATALOG = {
|
|
|
1079
1119
|
{
|
|
1080
1120
|
"qbo": "Line",
|
|
1081
1121
|
"support": "partial",
|
|
1082
|
-
"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.
|
|
1122
|
+
"note": "Write: LinkedTxn (PaymentTxnID path) for undeposited payments, or DepositLineDetail{Entity, AccountRef, PaymentMethodRef, CheckNum} for a manual line \u2014 one or the other, and a manual line's DepositLineDetail.AccountRef is required. Read: Desktop always returns DepositLineDetail; a line sourced from a deposited payment also carries LinkedTxn (TxnId/TxnType Payment) alongside it. Updates carrying Line send the full table as DepositLineMod: a line with the Id a read returned keeps that Desktop line, a line without an Id is added, and any existing line omitted from the array is deleted \u2014 send the whole array. A manual line has omitted fields filled from the current record; a line sourced from a deposited payment is re-sent as a bare TxnLineID (Desktop keeps the line and its payment link; re-sending PaymentTxnID is refused 3210 because the payment is already deposited), so edits to its amount, account and payer are not applied. A new line linking a still-undeposited payment is accepted. Verified live on QuickBooks Enterprise 24 (2026-09-30). CashBack cannot be updated (422): Desktop needs the cash-back line own TxnLineID, which a QBO read does not expose. An Id that is not a line of the deposit is a 400; an Id listed twice is 2010; an empty Line array is refused."
|
|
1083
1123
|
},
|
|
1084
1124
|
{
|
|
1085
1125
|
"qbo": "CashBack",
|
|
1086
|
-
"support": "
|
|
1087
|
-
"note": "
|
|
1126
|
+
"support": "partial",
|
|
1127
|
+
"note": "Create and read map to Desktop CashBackInfo. Changing CashBack on an update is 422 UNSUPPORTED_BY_DESKTOP (CashBackInfoMod needs the cash-back line's own TxnLineID, which a read does not expose); an update that echoes the current CashBack unchanged is accepted."
|
|
1088
1128
|
},
|
|
1089
1129
|
{
|
|
1090
1130
|
"qbo": "TotalAmt",
|
|
@@ -1111,8 +1151,8 @@ var CATALOG = {
|
|
|
1111
1151
|
"verdict": "live",
|
|
1112
1152
|
"group": "lists",
|
|
1113
1153
|
"read": "full",
|
|
1114
|
-
"write": "
|
|
1115
|
-
"headline": "Read/query
|
|
1154
|
+
"write": "partial",
|
|
1155
|
+
"headline": "Read/query plus create and update of core HR fields (live-verified); DisplayName is derived from first/middle/last; SSN is write-only and never returned; payroll fields out of scope",
|
|
1116
1156
|
"fields": [
|
|
1117
1157
|
{
|
|
1118
1158
|
"qbo": "GivenName",
|
|
@@ -1132,7 +1172,8 @@ var CATALOG = {
|
|
|
1132
1172
|
},
|
|
1133
1173
|
{
|
|
1134
1174
|
"qbo": "DisplayName",
|
|
1135
|
-
"support": "
|
|
1175
|
+
"support": "partial",
|
|
1176
|
+
"note": "Read-only: Desktop derives Name as GivenName MiddleName FamilyName (blanks skipped). A create/update naming a different DisplayName is refused with 400; one that matches is accepted and not sent. Create requires GivenName or FamilyName; DisplayName alone is refused (TenkeyBridge does not split it)."
|
|
1136
1177
|
},
|
|
1137
1178
|
{
|
|
1138
1179
|
"qbo": "PrintOnCheckName",
|
|
@@ -1141,7 +1182,8 @@ var CATALOG = {
|
|
|
1141
1182
|
},
|
|
1142
1183
|
{
|
|
1143
1184
|
"qbo": "Active",
|
|
1144
|
-
"support": "full"
|
|
1185
|
+
"support": "full",
|
|
1186
|
+
"note": "Deactivate with a sparse update of Active:false; Desktop employees cannot be deleted through qbXML."
|
|
1145
1187
|
},
|
|
1146
1188
|
{
|
|
1147
1189
|
"qbo": "PrimaryPhone",
|
|
@@ -1157,7 +1199,8 @@ var CATALOG = {
|
|
|
1157
1199
|
},
|
|
1158
1200
|
{
|
|
1159
1201
|
"qbo": "PrimaryAddr",
|
|
1160
|
-
"support": "full"
|
|
1202
|
+
"support": "full",
|
|
1203
|
+
"note": "Desktop's employee address has two street lines, City, State and PostalCode. Live limits: Line1/Line2 41 characters, City 31, PostalCode 13 (longer values are rejected up front with 2050; a State longer than Desktop's field fails with Desktop status 3110). Line3-Line5 and Country are rejected on write."
|
|
1161
1204
|
},
|
|
1162
1205
|
{
|
|
1163
1206
|
"qbo": "HiredDate",
|
|
@@ -1173,12 +1216,24 @@ var CATALOG = {
|
|
|
1173
1216
|
},
|
|
1174
1217
|
{
|
|
1175
1218
|
"qbo": "Gender",
|
|
1176
|
-
"support": "full"
|
|
1219
|
+
"support": "full",
|
|
1220
|
+
"note": "Male or Female."
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
"qbo": "SSN",
|
|
1224
|
+
"support": "partial",
|
|
1225
|
+
"note": "Write-only: accepted as 123-45-6789 or 123456789 on create/update and never returned by Desktop (verified live: absent from Add, Mod, Get and Query responses). A masked value (XXX-XX-1234) is rejected on create and skipped on update, never written."
|
|
1177
1226
|
},
|
|
1178
1227
|
{
|
|
1179
1228
|
"qbo": "CustomField",
|
|
1180
1229
|
"support": "partial",
|
|
1181
|
-
"note": "Name/StringValue
|
|
1230
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the record. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Employee records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30)."
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
"qbo": "EmployeeNumber",
|
|
1234
|
+
"support": "none",
|
|
1235
|
+
"note": "Desktop's Employee record has no employee-number field; keep the number in your own system keyed by the TenkeyBridge Id.",
|
|
1236
|
+
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1182
1237
|
},
|
|
1183
1238
|
{
|
|
1184
1239
|
"qbo": "TargetBonus",
|
|
@@ -1195,9 +1250,42 @@ var CATALOG = {
|
|
|
1195
1250
|
],
|
|
1196
1251
|
"unsupported": [
|
|
1197
1252
|
{
|
|
1198
|
-
"case": "
|
|
1253
|
+
"case": "Delete",
|
|
1254
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1255
|
+
"note": "QBO employees are deactivated, not deleted; TenkeyBridge follows that (sparse update with Active:false)."
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
"case": "Payroll fields",
|
|
1259
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1260
|
+
"note": "Pay rates, pay periods, wage items and other EmployeePayrollInfo content are license-gated in Desktop and not exposed for read or write."
|
|
1261
|
+
}
|
|
1262
|
+
]
|
|
1263
|
+
},
|
|
1264
|
+
"Entitlements": {
|
|
1265
|
+
"entity": "Entitlements",
|
|
1266
|
+
"verdict": "live",
|
|
1267
|
+
"group": "platform",
|
|
1268
|
+
"read": "partial",
|
|
1269
|
+
"write": "none",
|
|
1270
|
+
"headline": "GET /v3/company/{realmId}/entitlements \u2014 a static, honest capability document for a QuickBooks Desktop company (no per-file subscription data).",
|
|
1271
|
+
"usage": "GET /v3/company/{realmId}/entitlements",
|
|
1272
|
+
"fields": [
|
|
1273
|
+
{
|
|
1274
|
+
"qbo": "Entitlements.platform",
|
|
1275
|
+
"support": "full",
|
|
1276
|
+
"note": 'Always "QuickBooks Desktop" \u2014 TenkeyBridge talks to Desktop, never to a QBO subscription.'
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"qbo": "Entitlements.features",
|
|
1280
|
+
"support": "partial",
|
|
1281
|
+
"note": "Static list of what TenkeyBridge supports on Desktop (accounting API, query, CDC, batch, reports). It is not read from the company file; plan tiers, seats and add-ons (Payroll, Advanced) that QBO reports are not available from Desktop."
|
|
1282
|
+
}
|
|
1283
|
+
],
|
|
1284
|
+
"unsupported": [
|
|
1285
|
+
{
|
|
1286
|
+
"case": "QBO subscription tier, seats and add-ons",
|
|
1199
1287
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1200
|
-
"note": "
|
|
1288
|
+
"note": "Desktop has no subscription entitlements exposed over qbXML; the response says so explicitly rather than inventing values."
|
|
1201
1289
|
}
|
|
1202
1290
|
]
|
|
1203
1291
|
},
|
|
@@ -1207,7 +1295,7 @@ var CATALOG = {
|
|
|
1207
1295
|
"group": "sales",
|
|
1208
1296
|
"read": "full",
|
|
1209
1297
|
"write": "partial",
|
|
1210
|
-
"headline": "Same shape as Invoice; no
|
|
1298
|
+
"headline": "Same shape as Invoice; expiration date and active/closed status, no acceptance tracking",
|
|
1211
1299
|
"fields": [
|
|
1212
1300
|
{
|
|
1213
1301
|
"qbo": "CustomerRef",
|
|
@@ -1240,7 +1328,18 @@ var CATALOG = {
|
|
|
1240
1328
|
},
|
|
1241
1329
|
{
|
|
1242
1330
|
"qbo": "DueDate",
|
|
1243
|
-
"support": "full"
|
|
1331
|
+
"support": "full",
|
|
1332
|
+
"note": "Desktop has one estimate due date, which is also QBO's ExpirationDate; both names read back with the same value. Sending both with different values: on update the one that differs from the current record wins (ExpirationDate if both changed); on create ExpirationDate wins."
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
"qbo": "ExpirationDate",
|
|
1336
|
+
"support": "full",
|
|
1337
|
+
"note": "Maps to the Desktop estimate DueDate. Read and write."
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
"qbo": "TxnStatus",
|
|
1341
|
+
"support": "partial",
|
|
1342
|
+
"note": "Maps to Desktop IsActive: Pending = active, Closed = inactive (Mark as inactive). Closed means only that the estimate is marked inactive in Desktop; an estimate converted to an invoice still reads as Pending. Accepted and Rejected have no Desktop state and return UNSUPPORTED_BY_DESKTOP. Not independently verified against a live EstimateRet yet."
|
|
1244
1343
|
},
|
|
1245
1344
|
{
|
|
1246
1345
|
"qbo": "PrivateNote",
|
|
@@ -1254,12 +1353,12 @@ var CATALOG = {
|
|
|
1254
1353
|
{
|
|
1255
1354
|
"qbo": "Line",
|
|
1256
1355
|
"support": "partial",
|
|
1257
|
-
"note": "Same DetailType support as Invoice: SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail requires a Desktop discount item; other DetailTypes return UNSUPPORTED_BY_DESKTOP. Group lines read back as GroupLineDetail without nested line expansion; Desktop discount lines read back as
|
|
1356
|
+
"note": "Same DetailType support as Invoice (for an item that has a cost, Desktop treats an Estimate line's Rate as cost plus markup, MarkupRatePercent, so Amount can differ from Qty x Rate; verified live): SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail requires a Desktop discount item named by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount); other DetailTypes return UNSUPPORTED_BY_DESKTOP. Group lines read back as GroupLineDetail without nested line expansion; Desktop discount lines read back as SalesItemLineDetail lines (never DiscountLineDetail) referencing the discount item, with a negative Amount (verified live). An unknown Line.Id returns 3120 (REST 610); a malformed one returns 3000. Updates carrying Line send the full line table, as QBO requires: a line with the Id a read returned keeps that Desktop line (Id = TxnLineID, stable across updates), a line without an Id (or Id 0 / empty) is added, and any existing line omitted from the array is deleted. Send the whole array on sparse updates too; an Id listed twice is rejected (2010). Fields you omit from a line that carries an Id are filled from the current record before the full line is sent (Desktop would otherwise blank them), and line ClassRef and ServiceDate are written (ServiceDate not on Estimate). Re-sending an existing group line returns 422 (UNSUPPORTED_BY_DESKTOP); omit it to delete it and add a new group line without an Id."
|
|
1258
1357
|
},
|
|
1259
1358
|
{
|
|
1260
1359
|
"qbo": "TxnTaxDetail",
|
|
1261
1360
|
"support": "partial",
|
|
1262
|
-
"note": "
|
|
1361
|
+
"note": "TxnTaxCodeRef on write selects the tax item (Desktop ItemSalesTaxRef). TotalTax alone is accepted but not sent: QuickBooks then applies the customer's default sales tax item (or the company default) and computes the tax itself, so the tax on read can differ from the TotalTax you sent. When it differs, create/update responses carry a non-fatal X-TKB-Warning header (not emitted for /batch items). On read: TotalTax, TxnTaxCodeRef, and TaxLine[{Amount, TaxLineDetail{TaxRateRef, TaxPercent}}]. NetAmountTaxable never returned. Updatable via sparse update (#55)."
|
|
1263
1362
|
},
|
|
1264
1363
|
{
|
|
1265
1364
|
"qbo": "LinkedTxn",
|
|
@@ -1269,7 +1368,7 @@ var CATALOG = {
|
|
|
1269
1368
|
{
|
|
1270
1369
|
"qbo": "CustomField",
|
|
1271
1370
|
"support": "partial",
|
|
1272
|
-
"note": "Name/StringValue
|
|
1371
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the transaction header. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Estimate records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). The mechanism was verified live on QuickBooks Enterprise 24 (2026-09-30) on Customer, Vendor, Item, Employee, Invoice and PurchaseOrder; this entity follows the same path."
|
|
1273
1372
|
},
|
|
1274
1373
|
{
|
|
1275
1374
|
"qbo": "TotalAmt",
|
|
@@ -1286,12 +1385,6 @@ var CATALOG = {
|
|
|
1286
1385
|
"support": "partial",
|
|
1287
1386
|
"note": "Accepted and ignored \u2014 Desktop manages this itself; multi-currency mapping lands later."
|
|
1288
1387
|
},
|
|
1289
|
-
{
|
|
1290
|
-
"qbo": "ExpirationDate",
|
|
1291
|
-
"support": "none",
|
|
1292
|
-
"note": "Desktop estimates have no expiration date. Track it in your own system if needed.",
|
|
1293
|
-
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1294
|
-
},
|
|
1295
1388
|
{
|
|
1296
1389
|
"qbo": "AcceptedBy",
|
|
1297
1390
|
"support": "none",
|
|
@@ -1303,24 +1396,13 @@ var CATALOG = {
|
|
|
1303
1396
|
"support": "none",
|
|
1304
1397
|
"note": "Desktop estimates have no accepted-date field. Track acceptance in your own system.",
|
|
1305
1398
|
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1306
|
-
},
|
|
1307
|
-
{
|
|
1308
|
-
"qbo": "TxnStatus",
|
|
1309
|
-
"support": "none",
|
|
1310
|
-
"note": "Desktop estimates have no status field matching QBO's Pending/Accepted/Closed/Rejected enum. Track status in your own system.",
|
|
1311
|
-
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1312
1399
|
}
|
|
1313
1400
|
],
|
|
1314
1401
|
"unsupported": [
|
|
1315
|
-
{
|
|
1316
|
-
"case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
|
|
1317
|
-
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1318
|
-
"note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
|
|
1319
|
-
},
|
|
1320
1402
|
{
|
|
1321
1403
|
"case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
|
|
1322
1404
|
"error": "MISSING_REQUIRED_DESKTOP_ITEM",
|
|
1323
|
-
"note": "Desktop discounts are items. Create a discount item in
|
|
1405
|
+
"note": "Desktop discounts are items and TenkeyBridge does not guess one: picking a default would silently post the discount to that item's account, and discount items are not readable through the Item API yet. Create a discount item in QuickBooks (Lists > Item List > New > Discount) and pass it as DiscountLineDetail.ItemRef by value (ListID) or name (full name). DiscountAccountRef is ignored; the item carries its own account. See COMPATIBILITY.md."
|
|
1324
1406
|
},
|
|
1325
1407
|
{
|
|
1326
1408
|
"case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly",
|
|
@@ -1377,6 +1459,65 @@ var CATALOG = {
|
|
|
1377
1459
|
}
|
|
1378
1460
|
]
|
|
1379
1461
|
},
|
|
1462
|
+
"InventoryAdjustment": {
|
|
1463
|
+
"entity": "InventoryAdjustment",
|
|
1464
|
+
"verdict": "live",
|
|
1465
|
+
"group": "purchasing",
|
|
1466
|
+
"read": "full",
|
|
1467
|
+
"write": "partial",
|
|
1468
|
+
"headline": "Quantity adjustments to inventory items \u2014 create, read, header update and delete (live-verified); line edits need delete + re-create",
|
|
1469
|
+
"fields": [
|
|
1470
|
+
{
|
|
1471
|
+
"qbo": "AdjustAccountRef",
|
|
1472
|
+
"support": "full",
|
|
1473
|
+
"note": "Desktop AccountRef \u2014 the adjustment (offset) account. Required on create."
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
"qbo": "TxnDate",
|
|
1477
|
+
"support": "full"
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
"qbo": "DocNumber",
|
|
1481
|
+
"support": "full",
|
|
1482
|
+
"note": "Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050)."
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
"qbo": "PrivateNote",
|
|
1486
|
+
"support": "full",
|
|
1487
|
+
"note": "Desktop Memo."
|
|
1488
|
+
},
|
|
1489
|
+
{
|
|
1490
|
+
"qbo": "Line",
|
|
1491
|
+
"support": "partial",
|
|
1492
|
+
"note": "DetailType ItemAdjustmentLineDetail with ItemRef and QtyDiff. QtyDiff is a signed change in quantity on hand (nonzero, at most 5 decimal places) and maps to Desktop QuantityAdjustment/QuantityDifference (never NewQuantity); quantity on hand changes by exactly that amount, verified live. The same item on two lines is refused (Desktop rejects it). Desktop's value elements (ValueAdjustment/NewValue) are not exposed for writing; Desktop's ValueDifference (quantity times the item's average cost, verified live) is returned read-only as Line.Amount; the Ret line is flat QuantityDifference/ValueDifference. Line.Description and Line.Amount cannot be written (Desktop has no line memo and computes the value from the item's average cost). Sparse updates cannot modify lines."
|
|
1493
|
+
},
|
|
1494
|
+
{
|
|
1495
|
+
"qbo": "CurrencyRef",
|
|
1496
|
+
"support": "none",
|
|
1497
|
+
"note": "Multicurrency not yet supported.",
|
|
1498
|
+
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
"qbo": "ExchangeRate",
|
|
1502
|
+
"support": "none",
|
|
1503
|
+
"note": "Multicurrency not yet supported.",
|
|
1504
|
+
"error": "UNSUPPORTED_BY_DESKTOP"
|
|
1505
|
+
}
|
|
1506
|
+
],
|
|
1507
|
+
"unsupported": [
|
|
1508
|
+
{
|
|
1509
|
+
"case": "Line update",
|
|
1510
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1511
|
+
"note": "A sparse update can change header fields only (AdjustAccountRef, TxnDate, DocNumber, PrivateNote). To change quantities, delete the adjustment and create a new one.",
|
|
1512
|
+
"workaround": "POST ?operation=delete with the Id, then create a corrected InventoryAdjustment."
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
"case": "Absolute quantity (NewQuantity) and value adjustments",
|
|
1516
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1517
|
+
"note": "QBO's InventoryAdjustment only has QtyDiff (a delta), so Desktop's NewQuantity/NewValue forms have no QBO field to map from."
|
|
1518
|
+
}
|
|
1519
|
+
]
|
|
1520
|
+
},
|
|
1380
1521
|
"Invoice": {
|
|
1381
1522
|
"entity": "Invoice",
|
|
1382
1523
|
"verdict": "live",
|
|
@@ -1438,12 +1579,12 @@ var CATALOG = {
|
|
|
1438
1579
|
{
|
|
1439
1580
|
"qbo": "Line",
|
|
1440
1581
|
"support": "partial",
|
|
1441
|
-
"note": "SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail requires a Desktop discount item
|
|
1582
|
+
"note": "SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail requires a Desktop discount item named by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount); other DetailTypes (e.g. SubTotalLineDetail) return UNSUPPORTED_BY_DESKTOP. Group lines read back as GroupLineDetail without nested line expansion; Desktop discount lines read back as SalesItemLineDetail lines (never DiscountLineDetail) referencing the discount item, with a negative Amount (verified live). An unknown Line.Id returns 3120 (REST 610); a malformed one returns 3000. Updates carrying Line send the full line table, as QBO requires: a line with the Id a read returned keeps that Desktop line (Id = TxnLineID, stable across updates), a line without an Id (or Id 0 / empty) is added, and any existing line omitted from the array is deleted. Send the whole array on sparse updates too; an Id listed twice is rejected (2010). Fields you omit from a line that carries an Id are filled from the current record before the full line is sent (Desktop would otherwise blank them), and line ClassRef and ServiceDate are written (ServiceDate not on Estimate). Re-sending an existing group line returns 422 (UNSUPPORTED_BY_DESKTOP); omit it to delete it and add a new group line without an Id."
|
|
1442
1583
|
},
|
|
1443
1584
|
{
|
|
1444
1585
|
"qbo": "TxnTaxDetail",
|
|
1445
1586
|
"support": "partial",
|
|
1446
|
-
"note": "
|
|
1587
|
+
"note": "TxnTaxCodeRef on write selects the tax item (Desktop ItemSalesTaxRef). TotalTax alone is accepted but not sent: QuickBooks then applies the customer's default sales tax item (or the company default) and computes the tax itself, so the tax on read can differ from the TotalTax you sent. When it differs, create/update responses carry a non-fatal X-TKB-Warning header (not emitted for /batch items). On read: TotalTax, TxnTaxCodeRef (from ItemSalesTaxRef), and TaxLine[{Amount, TaxLineDetail{TaxRateRef, TaxPercent}}] from SalesTaxTotal/ItemSalesTaxRef/SalesTaxPercentage. NetAmountTaxable is never returned (Desktop has no taxable basis). Updatable via sparse update (#55)."
|
|
1447
1588
|
},
|
|
1448
1589
|
{
|
|
1449
1590
|
"qbo": "LinkedTxn",
|
|
@@ -1453,7 +1594,7 @@ var CATALOG = {
|
|
|
1453
1594
|
{
|
|
1454
1595
|
"qbo": "CustomField",
|
|
1455
1596
|
"support": "partial",
|
|
1456
|
-
"note": "Name/StringValue
|
|
1597
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the transaction header. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Invoice records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30)."
|
|
1457
1598
|
},
|
|
1458
1599
|
{
|
|
1459
1600
|
"qbo": "TotalAmt",
|
|
@@ -1478,19 +1619,14 @@ var CATALOG = {
|
|
|
1478
1619
|
{
|
|
1479
1620
|
"qbo": "operation=void",
|
|
1480
1621
|
"support": "partial",
|
|
1481
|
-
"note": "POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType Invoice), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QB Enterprise 24 (2026-09-29): the re-read shows amounts and line Qty zeroed, PrivateNote prefixed `VOID: `, TxnDate unchanged, a new SyncToken; voiding again succeeds. The response is whatever Desktop returns on the post-void re-read (nothing is fabricated)."
|
|
1622
|
+
"note": "POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType Invoice), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QB Enterprise 24 (2026-09-29): the re-read shows amounts and line Qty zeroed, PrivateNote prefixed `VOID: `, TxnDate unchanged, a new SyncToken; re-proven 2026-09-30 with a memo (PrivateNote becomes `VOID: <memo>`, DocNumber kept, Balance 0); voiding again succeeds. The response is whatever Desktop returns on the post-void re-read (nothing is fabricated)."
|
|
1482
1623
|
}
|
|
1483
1624
|
],
|
|
1484
1625
|
"unsupported": [
|
|
1485
|
-
{
|
|
1486
|
-
"case": "TxnTaxDetail.TotalTax supplied without TxnTaxCodeRef",
|
|
1487
|
-
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1488
|
-
"note": "Desktop cannot honor a computed tax total. Set TxnTaxDetail.TxnTaxCodeRef or per-line TaxCodeRef explicitly. See COMPATIBILITY.md."
|
|
1489
|
-
},
|
|
1490
1626
|
{
|
|
1491
1627
|
"case": "Line.DiscountLineDetail without an ItemRef (bare-percentage or amount-off discounts)",
|
|
1492
1628
|
"error": "MISSING_REQUIRED_DESKTOP_ITEM",
|
|
1493
|
-
"note": "Desktop discounts are items. Create a discount item in
|
|
1629
|
+
"note": "Desktop discounts are items and TenkeyBridge does not guess one: picking a default would silently post the discount to that item's account, and discount items are not readable through the Item API yet. Create a discount item in QuickBooks (Lists > Item List > New > Discount) and pass it as DiscountLineDetail.ItemRef by value (ListID) or name (full name). DiscountAccountRef is ignored; the item carries its own account. See COMPATIBILITY.md."
|
|
1494
1630
|
},
|
|
1495
1631
|
{
|
|
1496
1632
|
"case": "Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly (e.g. SubTotalLineDetail)",
|
|
@@ -1504,72 +1640,83 @@ var CATALOG = {
|
|
|
1504
1640
|
"verdict": "live",
|
|
1505
1641
|
"group": "sales",
|
|
1506
1642
|
"read": "partial",
|
|
1507
|
-
"write": "
|
|
1643
|
+
"write": "partial",
|
|
1508
1644
|
"headline": "One Item becomes several Desktop item types",
|
|
1509
1645
|
"fields": [
|
|
1510
1646
|
{
|
|
1511
1647
|
"qbo": "Name",
|
|
1512
|
-
"support": "full"
|
|
1648
|
+
"support": "full",
|
|
1649
|
+
"note": "Desktop item Name is the leaf name (max 31 characters); FullyQualifiedName is derived."
|
|
1513
1650
|
},
|
|
1514
1651
|
{
|
|
1515
1652
|
"qbo": "FullyQualifiedName",
|
|
1516
1653
|
"support": "full",
|
|
1517
|
-
"note": "Read-only
|
|
1654
|
+
"note": "Read-only; derived from the Desktop FullName. Echoed values on update are ignored."
|
|
1518
1655
|
},
|
|
1519
1656
|
{
|
|
1520
1657
|
"qbo": "Active",
|
|
1521
1658
|
"support": "full",
|
|
1522
|
-
"note": "
|
|
1659
|
+
"note": "Deactivate with a sparse update setting Active to false; items are never deleted."
|
|
1523
1660
|
},
|
|
1524
1661
|
{
|
|
1525
1662
|
"qbo": "Type",
|
|
1526
1663
|
"support": "partial",
|
|
1527
|
-
"note": "Service, NonInventory, Inventory
|
|
1664
|
+
"note": "Service, NonInventory, Inventory read and write; Group reads only. Desktop other-charge and discount items read as Service. Type cannot change after creation. Category and other Desktop types are unsupported."
|
|
1528
1665
|
},
|
|
1529
1666
|
{
|
|
1530
1667
|
"qbo": "Description",
|
|
1531
1668
|
"support": "full",
|
|
1532
|
-
"note": "
|
|
1669
|
+
"note": "Desktop sales description: SalesOrPurchase/Desc, SalesAndPurchase/SalesDesc, or SalesDesc on Inventory."
|
|
1533
1670
|
},
|
|
1534
1671
|
{
|
|
1535
1672
|
"qbo": "UnitPrice",
|
|
1536
1673
|
"support": "full",
|
|
1537
|
-
"note": "
|
|
1674
|
+
"note": "Desktop sales price. Sent with up to five decimals. On a Desktop discount item a flat rate reads as UnitPrice; a percentage discount has none. Discount items are read-only."
|
|
1538
1675
|
},
|
|
1539
1676
|
{
|
|
1540
1677
|
"qbo": "Sku",
|
|
1541
1678
|
"support": "partial",
|
|
1542
|
-
"note": "QBO Sku
|
|
1679
|
+
"note": "QBO Sku maps to Desktop ManufacturerPartNumber (max 31 characters) \u2014 Desktop has no first-class SKU field; barcode (Advanced Inventory) is intentionally not used. NonInventory and Inventory only; on a Service, Sku is refused with UNSUPPORTED_BY_DESKTOP."
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"qbo": "TrackQtyOnHand",
|
|
1683
|
+
"support": "partial",
|
|
1684
|
+
"note": "Read as true for Inventory. On write it must agree with Type (Inventory always tracks quantity; Service and NonInventory never do) or the request is refused."
|
|
1543
1685
|
},
|
|
1544
1686
|
{
|
|
1545
1687
|
"qbo": "QtyOnHand",
|
|
1546
|
-
"support": "
|
|
1547
|
-
"note": "Read
|
|
1688
|
+
"support": "partial",
|
|
1689
|
+
"note": "Read for Inventory. Settable on create only (with InvStartDate); Desktop changes stock through inventory adjustments and transactions, so a different value on update is refused. Echoing the current value is accepted."
|
|
1690
|
+
},
|
|
1691
|
+
{
|
|
1692
|
+
"qbo": "InvStartDate",
|
|
1693
|
+
"support": "partial",
|
|
1694
|
+
"note": "Write-only, create only (Desktop InventoryDate). Not returned on read."
|
|
1548
1695
|
},
|
|
1549
1696
|
{
|
|
1550
1697
|
"qbo": "IncomeAccountRef",
|
|
1551
1698
|
"support": "full",
|
|
1552
|
-
"note": "
|
|
1699
|
+
"note": "Service/NonInventory: SalesOrPurchase/AccountRef (one-sided) or SalesAndPurchase/IncomeAccountRef (two-sided). Inventory: IncomeAccountRef. Required on create for every writable type (Desktop rejects an item with no posting account; a missing one is a 400 with code 2020)."
|
|
1553
1700
|
},
|
|
1554
1701
|
{
|
|
1555
1702
|
"qbo": "ExpenseAccountRef",
|
|
1556
1703
|
"support": "partial",
|
|
1557
|
-
"note": "Inventory: COGSAccountRef. Two-sided Service/NonInventory (SalesAndPurchase): ExpenseAccountRef. One-sided Service/NonInventory have no expense account."
|
|
1704
|
+
"note": "Inventory: COGSAccountRef (required on create). Two-sided Service/NonInventory (SalesAndPurchase): ExpenseAccountRef. One-sided Service/NonInventory have no expense account; sending one at creation makes the item two-sided, and on update it is refused for a sales-only item."
|
|
1558
1705
|
},
|
|
1559
1706
|
{
|
|
1560
1707
|
"qbo": "AssetAccountRef",
|
|
1561
1708
|
"support": "full",
|
|
1562
|
-
"note": "
|
|
1709
|
+
"note": "Inventory only; required on create."
|
|
1563
1710
|
},
|
|
1564
1711
|
{
|
|
1565
1712
|
"qbo": "PurchaseDesc",
|
|
1566
1713
|
"support": "full",
|
|
1567
|
-
"note": "Inventory and two-sided Service/NonInventory (SalesAndPurchase)."
|
|
1714
|
+
"note": "Inventory and two-sided Service/NonInventory (SalesAndPurchase). Purchase-side fields must be present at creation: Desktop cannot turn an existing sales-only item into a two-sided one, so adding them on update is refused with UNSUPPORTED_BY_DESKTOP."
|
|
1568
1715
|
},
|
|
1569
1716
|
{
|
|
1570
1717
|
"qbo": "PurchaseCost",
|
|
1571
1718
|
"support": "full",
|
|
1572
|
-
"note": "Inventory and two-sided Service/NonInventory (SalesAndPurchase)."
|
|
1719
|
+
"note": "Inventory and two-sided Service/NonInventory (SalesAndPurchase). Sent with up to five decimals. On create with QtyOnHand, Desktop values the opening stock at PurchaseCost."
|
|
1573
1720
|
},
|
|
1574
1721
|
{
|
|
1575
1722
|
"qbo": "PrefVendorRef",
|
|
@@ -1579,29 +1726,54 @@ var CATALOG = {
|
|
|
1579
1726
|
{
|
|
1580
1727
|
"qbo": "ParentRef",
|
|
1581
1728
|
"support": "full",
|
|
1582
|
-
"note": "Desktop item hierarchy."
|
|
1729
|
+
"note": "Desktop item hierarchy; sub-items are FullName paths (Parent:Child)."
|
|
1583
1730
|
},
|
|
1584
1731
|
{
|
|
1585
1732
|
"qbo": "SubItem",
|
|
1586
1733
|
"support": "full",
|
|
1587
|
-
"note": "Derived from Desktop Sublevel."
|
|
1734
|
+
"note": "Derived from Desktop Sublevel; read-only."
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
"qbo": "ClassRef",
|
|
1738
|
+
"support": "full",
|
|
1739
|
+
"note": "Desktop ClassRef."
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
"qbo": "SalesTaxCodeRef",
|
|
1743
|
+
"support": "full",
|
|
1744
|
+
"note": "Desktop SalesTaxCodeRef. QBO values TAX and NON map to Desktop's built-in Tax and Non codes; any other value is a ListID. Wins over Taxable if both are sent."
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
"qbo": "Taxable",
|
|
1748
|
+
"support": "partial",
|
|
1749
|
+
"note": "Derived on read only when the sales tax code is the built-in Tax or Non code (a custom code leaves it unset). On write, true/false selects the Tax/Non code."
|
|
1588
1750
|
},
|
|
1589
1751
|
{
|
|
1590
1752
|
"qbo": "CustomField",
|
|
1591
1753
|
"support": "partial",
|
|
1592
|
-
"note": "Name/StringValue
|
|
1754
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the record. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Item records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30)."
|
|
1593
1755
|
}
|
|
1594
1756
|
],
|
|
1595
1757
|
"unsupported": [
|
|
1596
1758
|
{
|
|
1597
|
-
"case": "Item types other than Service, NonInventory, Inventory, and
|
|
1759
|
+
"case": "Item types other than Service, NonInventory, Inventory, Group, other-charge and discount (assemblies, sales tax items, payment items, fixed assets, subtotal)",
|
|
1598
1760
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1599
1761
|
"note": "Omitted from query results; a direct get by id on one of these Desktop items returns a 422 UNSUPPORTED_BY_DESKTOP fault."
|
|
1600
1762
|
},
|
|
1601
1763
|
{
|
|
1602
|
-
"case": "
|
|
1764
|
+
"case": "Creating or updating Group (and Category) items, or updating discount items",
|
|
1765
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1766
|
+
"note": "Group items and discounts are read-only, and Category has no Desktop equivalent. A Desktop other-charge item reads as Type Service and can be updated (it is sent as ItemOtherChargeMod); it cannot be created."
|
|
1767
|
+
},
|
|
1768
|
+
{
|
|
1769
|
+
"case": "Adding purchase-side fields to an existing sales-only Service/NonInventory item",
|
|
1603
1770
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1604
|
-
"note": "
|
|
1771
|
+
"note": "Desktop rejects the SalesOrPurchase to SalesAndPurchase conversion (error 3170). Include PurchaseDesc, PurchaseCost, ExpenseAccountRef or PrefVendorRef when the item is created."
|
|
1772
|
+
},
|
|
1773
|
+
{
|
|
1774
|
+
"case": "Changing QtyOnHand after creation",
|
|
1775
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
1776
|
+
"note": "Stock levels change only through inventory adjustments and transactions. (Changing Type after creation is a 400 Invalid Field Value, since a Desktop item's type is fixed.)"
|
|
1605
1777
|
}
|
|
1606
1778
|
]
|
|
1607
1779
|
},
|
|
@@ -1671,7 +1843,7 @@ var CATALOG = {
|
|
|
1671
1843
|
{
|
|
1672
1844
|
"qbo": "Line",
|
|
1673
1845
|
"support": "partial",
|
|
1674
|
-
"note": "JournalEntryLineDetail only. Write splits by PostingType into JournalDebitLine / JournalCreditLine; read interleaves debit then credit lists. Debits must equal credits or create fails UNSUPPORTED_BY_DESKTOP before the Desktop round-trip.
|
|
1846
|
+
"note": "JournalEntryLineDetail only. Write splits by PostingType into JournalDebitLine / JournalCreditLine; read interleaves debit then credit lists. Debits must equal credits or create fails UNSUPPORTED_BY_DESKTOP before the Desktop round-trip. Updates carrying Line send the full table as JournalLineMod (TxnLineID + JournalLineType Debit/Credit): a line with the Id a read returned keeps that Desktop line (and may flip Debit/Credit), a line without an Id is added, and any existing line omitted from the array is deleted \u2014 send the whole array. Fields you omit from a line that carries an Id (account, memo, entity, class) are filled from the current record. Balance is checked over the merged table before anything is sent. An Id that is not a line of the entry is a 400; an Id listed twice is 2010; an empty Line array is refused. Verified live on QuickBooks Enterprise 24 (2026-09-30): Debit/Credit flips and deletion of unlisted lines work. Desktop rejects a Mod whose existing lines are not in stored (ascending TxnLineID) order with 3290, and a read lists debit lines before credit lines, so the gateway sends existing lines in TxnLineID order whatever order you post them in. JournalEntryLineDetail.Entity: only EntityRef is populated on read \u2014 Desktop's line-level EntityRef carries no entity-kind flag, so we don't stamp a Type (Vendor/Customer/Employee); a wrong guess is worse than omitting it. Set Type yourself on write if you know it; it's accepted and simply not echoed back."
|
|
1675
1847
|
},
|
|
1676
1848
|
{
|
|
1677
1849
|
"qbo": "TotalAmt",
|
|
@@ -1727,7 +1899,7 @@ var CATALOG = {
|
|
|
1727
1899
|
{
|
|
1728
1900
|
"qbo": "PaymentRefNum",
|
|
1729
1901
|
"support": "full",
|
|
1730
|
-
"note": "Desktop RefNumber: max 20 characters; longer values are rejected up front with a 400 fault (code 2050).
|
|
1902
|
+
"note": "Desktop RefNumber: max 20 characters; longer values are rejected up front with a 400 fault (code 2050). Queryable: WHERE PaymentRefNum = '...' / IN (...) / LIKE 'CHK%' is pushed to QuickBooks as RefNumber / RefNumberFilter (DocNumber is accepted as an alias)."
|
|
1731
1903
|
},
|
|
1732
1904
|
{
|
|
1733
1905
|
"qbo": "TotalAmt",
|
|
@@ -1749,7 +1921,7 @@ var CATALOG = {
|
|
|
1749
1921
|
{
|
|
1750
1922
|
"qbo": "Line",
|
|
1751
1923
|
"support": "partial",
|
|
1752
|
-
"note": "LinkedTxn
|
|
1924
|
+
"note": "One Line per Invoice (LinkedTxn[0] = the invoice; on write Amount = the total applied to the invoice, cash plus credit, which is the qbXML PaymentAmount; on read Amount = the cash only). Credits ride inside the invoice Line's LinkedTxn: credit memos applied to that invoice are extra LinkedTxn entries {TxnId, TxnType CreditMemo, Amount = credit applied, a number > 0} and are sent as SetCredit; a credit-only Line (no invoice) is rejected (2020), and so is a credit-only payment (credit memos with TotalAmt omitted or 0): live QB applies the credit and creates no payment, so there is nothing to return; it is refused up front with 422 UNSUPPORTED_BY_DESKTOP (apply credits together with a cash TotalAmt, or in QuickBooks). Read returns the applied credit memos as CreditMemo LinkedTxn entries (Amount positive) from the LinkedTxn Desktop nests inside AppliedToTxnRet (verified live on QB Enterprise 24: the nested LinkedTxn has TxnType CreditMemo and a negative Amount, AppliedToTxnRet/Amount is the cash only, and the request PaymentAmount is cash plus credit). Over-crediting returns 3210 ('The amount you entered is greater than the amount of the credit'). No Line means an unapplied payment (IsAutoApply=false). Deposit applications are not supported. AppliedToTxnRet.TxnDate/RefNumber/BalanceRemaining have no honest home in QBO Payment.Line.LinkedTxn ({TxnId, TxnType} only) and are not projected \u2014 re-fetch the invoice for balance/date/doc number."
|
|
1753
1925
|
},
|
|
1754
1926
|
{
|
|
1755
1927
|
"qbo": "UnappliedAmt",
|
|
@@ -1896,7 +2068,7 @@ var CATALOG = {
|
|
|
1896
2068
|
"note": "Preferences is read/query only in QBO and Desktop \u2014 there is no PreferencesAdd/Mod."
|
|
1897
2069
|
},
|
|
1898
2070
|
{
|
|
1899
|
-
"case": "Any WHERE clause, or STARTPOSITION/MAXRESULTS",
|
|
2071
|
+
"case": "Any WHERE clause, ORDERBY, COUNT(*), column list, or STARTPOSITION/MAXRESULTS",
|
|
1900
2072
|
"error": "UNSUPPORTED_QUERY",
|
|
1901
2073
|
"note": "PreferencesQueryRq takes no filters and always returns the single open company PreferencesRet. Use SELECT * FROM Preferences."
|
|
1902
2074
|
}
|
|
@@ -1937,7 +2109,7 @@ var CATALOG = {
|
|
|
1937
2109
|
{
|
|
1938
2110
|
"qbo": "DocNumber",
|
|
1939
2111
|
"support": "full",
|
|
1940
|
-
"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."
|
|
2112
|
+
"note": "Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050) rather than reaching Desktop. A check that is still to be printed (PrintStatus NeedToPrint, which Desktop may default to when PrintStatus is omitted) silently ignores RefNumber, on create and on a sparse DocNumber update alike (200, but no number is stored); send PrintStatus PrintComplete with DocNumber. On a PrintComplete check a DocNumber update changes RefNumber (verified live 2026-09-30). A single quote is allowed; query it with a backslash escape."
|
|
1941
2113
|
},
|
|
1942
2114
|
{
|
|
1943
2115
|
"qbo": "PrivateNote",
|
|
@@ -1973,7 +2145,7 @@ var CATALOG = {
|
|
|
1973
2145
|
{
|
|
1974
2146
|
"qbo": "operation=void",
|
|
1975
2147
|
"support": "partial",
|
|
1976
|
-
"note": "POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType Check / CreditCardCharge / CreditCardCredit, picked by a read of the record), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QB Enterprise 24 (2026-09-29, Check family): amounts zeroed, PrintStatus becomes PrintComplete, and PrivateNote becomes `VOID: <memo> GJE, RGJE created on MM/DD/YYYY` \u2014 Desktop posts a
|
|
2148
|
+
"note": "POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType Check / CreditCardCharge / CreditCardCredit, picked by a read of the record), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QB Enterprise 24 (2026-09-29, Check family): amounts zeroed, PrintStatus becomes PrintComplete, and PrivateNote becomes `VOID: <memo> GJE, RGJE created on MM/DD/YYYY` \u2014 Desktop also posts two General Journal entries (live-proven again 2026-09-30, same-day and prior-month checks): a GJE dated the ORIGINAL check date that re-books the original check (Dr expense / Cr bank, memo 'For CHK voided on MM/DD/YYYY'), and a reversing RGJE (ref such as 7R, memo 'Reverse of GJE 7 -- ...') dated the VOID day that undoes it (Dr bank / Cr expense). The zeroed check keeps its TxnDate; the original period still shows the expense (via the GJE) and the reversal lands in the void day's period. Same-day voids net to zero on one date. Voiding again succeeds. Desktop's closing date is not exposed by PreferencesQuery; voids dated back to 2026-07-02 were accepted on the test file. CreditCardCharge/CreditCardCredit voids are not yet live-tested. The response is whatever Desktop returns on the post-void re-read (nothing is fabricated)."
|
|
1977
2149
|
}
|
|
1978
2150
|
],
|
|
1979
2151
|
"unsupported": [
|
|
@@ -2034,10 +2206,15 @@ var CATALOG = {
|
|
|
2034
2206
|
"qbo": "PrivateNote",
|
|
2035
2207
|
"support": "full"
|
|
2036
2208
|
},
|
|
2209
|
+
{
|
|
2210
|
+
"qbo": "CustomField",
|
|
2211
|
+
"support": "partial",
|
|
2212
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the transaction header. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to PurchaseOrder records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30)."
|
|
2213
|
+
},
|
|
2037
2214
|
{
|
|
2038
2215
|
"qbo": "Line",
|
|
2039
2216
|
"support": "partial",
|
|
2040
|
-
"note": "ItemBasedExpenseLineDetail only (PurchaseOrderLineAdd). AccountBasedExpenseLineDetail returns UNSUPPORTED_BY_DESKTOP. ReceivedQty maps from ReceivedQuantity on read (read-only).
|
|
2217
|
+
"note": "ItemBasedExpenseLineDetail only (PurchaseOrderLineAdd). AccountBasedExpenseLineDetail returns UNSUPPORTED_BY_DESKTOP. ReceivedQty maps from ReceivedQuantity on read (read-only). Updates carrying Line send the full line table (PurchaseOrderLineMod): a line with the Id a read returned keeps that Desktop line (Id = TxnLineID), a line without an Id is added, and any existing line omitted from the array is deleted \u2014 send the whole array. Fields you omit from a line that carries an Id are filled from the current record; changing Qty or UnitPrice without Amount recomputes Amount, and restating Amount alone drops the inherited Rate and Qty. An Id that is not a line of the PO is a 400; an Id listed twice is 2010; an empty Line array is refused. Per-line IsManuallyClosed is not exposed. Verified live on QuickBooks Enterprise 24 (2026-09-30): the Id/new/deleted-line table, qty recompute and OSR child order are accepted."
|
|
2041
2218
|
},
|
|
2042
2219
|
{
|
|
2043
2220
|
"qbo": "TotalAmt",
|
|
@@ -2047,7 +2224,7 @@ var CATALOG = {
|
|
|
2047
2224
|
{
|
|
2048
2225
|
"qbo": "POStatus",
|
|
2049
2226
|
"support": "partial",
|
|
2050
|
-
"note": "Open/Closed map to Desktop IsManuallyClosed, a Mod-only element \u2014 PurchaseOrderAdd has no IsManuallyClosed at all. Create with POStatus Open (or omitted) works; POStatus Closed on create returns UNSUPPORTED_BY_DESKTOP (create the PO open, then close it via an update).
|
|
2227
|
+
"note": "Open/Closed map to Desktop IsManuallyClosed, a Mod-only element \u2014 PurchaseOrderAdd has no IsManuallyClosed at all. Create with POStatus Open (or omitted) works; POStatus Closed on create returns UNSUPPORTED_BY_DESKTOP (create the PO open, then close it via an update). A sparse update with POStatus Closed sends IsManuallyClosed true (closing the whole PO); POStatus Open sends false (reopens). Any other value is a 400 (2010). An update without POStatus never re-sends the status. Verified live on QuickBooks Enterprise 24 (2026-09-30): closing and reopening both work."
|
|
2051
2228
|
},
|
|
2052
2229
|
{
|
|
2053
2230
|
"qbo": "APAccountRef",
|
|
@@ -2180,7 +2357,7 @@ var CATALOG = {
|
|
|
2180
2357
|
{
|
|
2181
2358
|
"case": "Item-line RefundReceipt (SalesItemLineDetail etc.)",
|
|
2182
2359
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2183
|
-
"note": "Desktop has no
|
|
2360
|
+
"note": "Desktop has no single transaction that is both the returned goods and the refund: its refund (ARRefundCreditCard) only pays back an existing credit, and a check refund is a separate Check applied to a credit memo. Two calls instead: (1) POST CreditMemo with the returned item lines; (2) POST RefundReceipt with DepositToAccountRef (the card/refund account) and Line[{Amount, LinkedTxn:[{TxnId: the CreditMemo Id, TxnType:CreditMemo}]}]. Refunds by check or cash are recorded in QuickBooks (Customers > Refund) \u2014 TenkeyBridge has no Check-applied-to-credit-memo path."
|
|
2184
2361
|
},
|
|
2185
2362
|
{
|
|
2186
2363
|
"case": "Update / sparse update",
|
|
@@ -2232,46 +2409,103 @@ var CATALOG = {
|
|
|
2232
2409
|
"group": "platform",
|
|
2233
2410
|
"read": "partial",
|
|
2234
2411
|
"write": "none",
|
|
2235
|
-
"headline": "
|
|
2236
|
-
"usage": "GET /v3/company/{realmId}/reports/ProfitAndLoss?start_date=2026-01-01&end_date=2026-12-31",
|
|
2412
|
+
"headline": "Twenty QBO-compatible reports translated live from Desktop's report engine: summary, detail, aging, balance and sales reports, all run against QuickBooks Enterprise 24. There is no CashFlow \u2014 Desktop's SDK has no cash-flow report.",
|
|
2413
|
+
"usage": "GET /v3/company/{realmId}/reports/ProfitAndLoss?start_date=2026-01-01&end_date=2026-12-31&summarize_column_by=Month",
|
|
2237
2414
|
"fields": [
|
|
2238
2415
|
{
|
|
2239
2416
|
"qbo": "ProfitAndLoss / BalanceSheet / TrialBalance",
|
|
2240
2417
|
"support": "full",
|
|
2241
|
-
"note": "GeneralSummaryReportQueryRq (ProfitAndLossStandard / BalanceSheetStandard / TrialBalance). Values verbatim from Desktop \u2014 no recomputation."
|
|
2418
|
+
"note": "GeneralSummaryReportQueryRq (ProfitAndLossStandard / BalanceSheetStandard / TrialBalance). Values verbatim from Desktop \u2014 no recomputation. BalanceSheet also takes report_date as an as-of."
|
|
2242
2419
|
},
|
|
2243
2420
|
{
|
|
2244
2421
|
"qbo": "AgedReceivables / AgedPayables",
|
|
2245
2422
|
"support": "full",
|
|
2246
2423
|
"note": "AgingReportQueryRq (ARAgingSummary / APAgingSummary). Desktop's file-configured aging buckets come back as columns, honestly."
|
|
2247
2424
|
},
|
|
2425
|
+
{
|
|
2426
|
+
"qbo": "CustomerBalance / VendorBalance",
|
|
2427
|
+
"support": "full",
|
|
2428
|
+
"note": "CustomerBalanceSummary / VendorBalanceSummary. As-of (report_date). Month (and the other period splits) are accepted; Desktop refuses ReportBasis here."
|
|
2429
|
+
},
|
|
2430
|
+
{
|
|
2431
|
+
"qbo": "CustomerIncome / VendorExpenses",
|
|
2432
|
+
"support": "full",
|
|
2433
|
+
"note": "IncomeByCustomerSummary / ExpenseByVendorSummary."
|
|
2434
|
+
},
|
|
2435
|
+
{
|
|
2436
|
+
"qbo": "CustomerSales / ItemSales (aliases SalesByCustomer / SalesByProduct)",
|
|
2437
|
+
"support": "full",
|
|
2438
|
+
"note": "SalesByCustomerSummary / SalesByItemSummary. ItemSales carries Desktop's extra columns (% of Sales, Avg Price, COGS, Gross Margin)."
|
|
2439
|
+
},
|
|
2440
|
+
{
|
|
2441
|
+
"qbo": "InventoryValuationSummary",
|
|
2442
|
+
"support": "full",
|
|
2443
|
+
"note": "InventoryValuationSummary, as-of (report_date), item filter only. Desktop refuses ReportBasis and SummarizeColumnsBy here."
|
|
2444
|
+
},
|
|
2445
|
+
{
|
|
2446
|
+
"qbo": "ProfitAndLossDetail / GeneralLedger",
|
|
2447
|
+
"support": "partial",
|
|
2448
|
+
"note": "GeneralDetailReportQueryRq (ProfitAndLossDetail / GeneralLedger). QBO detail shape: ColType String/Date/Money with MetaData.ColKey (ColKeys best-effort), every transaction row typed Data, accounts as sections. ColData carries value only (Desktop reports carry no TxnID/ListID, so no id)."
|
|
2449
|
+
},
|
|
2450
|
+
{
|
|
2451
|
+
"qbo": "JournalReport / TransactionList",
|
|
2452
|
+
"support": "partial",
|
|
2453
|
+
"note": "GeneralDetailReportQueryRq Journal / TxnListByDate. ColKeys best-effort. Journal's per-transaction unlabeled subtotals become header-less Sections; TransactionList is a flat Data list. Desktop refuses ReportBasis on both, so accounting_method faults."
|
|
2454
|
+
},
|
|
2455
|
+
{
|
|
2456
|
+
"qbo": "CustomerBalanceDetail / VendorBalanceDetail",
|
|
2457
|
+
"support": "partial",
|
|
2458
|
+
"note": "GeneralDetailReportQueryRq CustomerBalanceDetail / VendorBalanceDetail, as-of (report_date). Desktop returns one section per customer/vendor with its balance and no transaction rows; passed through as-is."
|
|
2459
|
+
},
|
|
2460
|
+
{
|
|
2461
|
+
"qbo": "AgedReceivableDetail / AgedPayableDetail",
|
|
2462
|
+
"support": "partial",
|
|
2463
|
+
"note": "AgingReportQueryRq ARAgingDetail / APAgingDetail, as-of (report_date), with the receivable (customer) or payable (vendor) filter. ColKeys best-effort."
|
|
2464
|
+
},
|
|
2248
2465
|
{
|
|
2249
2466
|
"qbo": "start_date / end_date / date_macro",
|
|
2250
2467
|
"support": "full",
|
|
2251
|
-
"note": "ISO dates or QBO date macros (fiscal-relative on both sides, so macros map 1:1). Omit them and you get fiscal year-to-date, matching QBO \u2014 Desktop's own bare default is month-to-date, so TenkeyBridge always sends an explicit period."
|
|
2468
|
+
"note": "ISO dates or QBO date macros (spaced or compact, e.g. Last Month / LastMonth; fiscal-relative on both sides, so macros map 1:1). Omit them and you get fiscal year-to-date, matching QBO \u2014 Desktop's own bare default is month-to-date, so TenkeyBridge always sends an explicit period."
|
|
2252
2469
|
},
|
|
2253
2470
|
{
|
|
2254
2471
|
"qbo": "report_date",
|
|
2255
2472
|
"support": "full",
|
|
2256
|
-
"note": "The
|
|
2473
|
+
"note": "The as-of reports (aging, balance, inventory valuation, and BalanceSheet) are as-of a single date. Omit it and QBO's default (today) is used."
|
|
2257
2474
|
},
|
|
2258
2475
|
{
|
|
2259
2476
|
"qbo": "accounting_method",
|
|
2260
2477
|
"support": "partial",
|
|
2261
|
-
"note": "Cash/Accrual on the
|
|
2478
|
+
"note": "Cash/Accrual \u2192 ReportBasis on ProfitAndLoss, BalanceSheet, TrialBalance, ProfitAndLossDetail, GeneralLedger, CustomerBalanceDetail, VendorBalanceDetail and the income/expense/sales summaries. Desktop refuses it (3151 or a parse error) on Journal, TransactionList, the balance summaries, InventoryValuationSummary and the aging reports, so those fault.",
|
|
2479
|
+
"error": "REPORT_UNSUPPORTED_OPTION"
|
|
2480
|
+
},
|
|
2481
|
+
{
|
|
2482
|
+
"qbo": "summarize_column_by",
|
|
2483
|
+
"support": "partial",
|
|
2484
|
+
"note": "Total, Month, Week, Days, Quarter, Year, Customers, Vendors, Classes \u2192 SummarizeColumnsBy on the period summary reports (Customers is refused on CustomerSales/CustomerIncome and Vendors on VendorExpenses, as Desktop refuses them). CustomerBalance/VendorBalance take the period splits only. Detail, aging and inventory reports take Total only.",
|
|
2485
|
+
"error": "REPORT_UNSUPPORTED_OPTION"
|
|
2486
|
+
},
|
|
2487
|
+
{
|
|
2488
|
+
"qbo": "customer / vendor / item / class",
|
|
2489
|
+
"support": "partial",
|
|
2490
|
+
"note": "Comma-separated Ids \u2192 ReportEntityFilter (customer + vendor) / ReportItemFilter / ReportClassFilter. AR reports accept customer only, AP reports vendor only; InventoryValuationSummary accepts item only.",
|
|
2262
2491
|
"error": "REPORT_UNSUPPORTED_OPTION"
|
|
2263
2492
|
},
|
|
2264
2493
|
{
|
|
2265
2494
|
"qbo": "Column titles",
|
|
2266
2495
|
"support": "partial",
|
|
2267
|
-
"note": "Desktop's own column titles pass through verbatim, so aging buckets read '> 90' where QBO says '91 and over', and a period column reads 'Jan - Dec 26' where QBO says 'Total'. QBO's MetaData.ColKey has no Desktop equivalent and is not invented."
|
|
2496
|
+
"note": "Desktop's own column titles pass through verbatim, so aging buckets read '> 90' where QBO says '91 and over', and a period column reads 'Jan - Dec 26' where QBO says 'Total'. On summary reports QBO's MetaData.ColKey has no Desktop equivalent and is not invented; detail reports derive it from Desktop's column types (ColKeys best-effort \u2014 QBO does not document them)."
|
|
2268
2497
|
}
|
|
2269
2498
|
],
|
|
2270
2499
|
"unsupported": [
|
|
2271
2500
|
{
|
|
2272
|
-
"case": "
|
|
2501
|
+
"case": "CashFlow",
|
|
2502
|
+
"error": "REPORT_UNKNOWN",
|
|
2503
|
+
"note": "QuickBooks Desktop's SDK has no cash-flow report (StatementOfCashFlows is refused with 3110 on every qbXML version)."
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
"case": "columns / department / qzurl / adjusted_gain_loss",
|
|
2273
2507
|
"error": "REPORT_UNSUPPORTED_OPTION",
|
|
2274
|
-
"note": "Column
|
|
2508
|
+
"note": "Column selection has no qbXML equivalent; Desktop has no departments (use class); QuickZoom URLs and multicurrency gain/loss adjustment are QBO-only."
|
|
2275
2509
|
},
|
|
2276
2510
|
{
|
|
2277
2511
|
"case": "aging_period / num_periods / aging_method",
|
|
@@ -2279,14 +2513,14 @@ var CATALOG = {
|
|
|
2279
2513
|
"note": "Desktop aging buckets are company-file configuration, not request parameters."
|
|
2280
2514
|
},
|
|
2281
2515
|
{
|
|
2282
|
-
"case": "summarize_column_by
|
|
2516
|
+
"case": "summarize_column_by = Employees / ProductsAndServices / Departments / Location",
|
|
2283
2517
|
"error": "REPORT_UNSUPPORTED_OPTION",
|
|
2284
|
-
"note": "qbXML SummarizeColumnsBy
|
|
2518
|
+
"note": "qbXML's SummarizeColumnsBy has no per-item, per-employee or per-location split (ItemType splits by item type, not by item)."
|
|
2285
2519
|
},
|
|
2286
2520
|
{
|
|
2287
|
-
"case": "other QBO report names (
|
|
2521
|
+
"case": "other QBO report names (class/department sales, tax, account list, ...)",
|
|
2288
2522
|
"error": "REPORT_UNKNOWN",
|
|
2289
|
-
"note": "
|
|
2523
|
+
"note": "Not shipped. The fault lists the supported reports."
|
|
2290
2524
|
}
|
|
2291
2525
|
]
|
|
2292
2526
|
},
|
|
@@ -2343,12 +2577,12 @@ var CATALOG = {
|
|
|
2343
2577
|
{
|
|
2344
2578
|
"qbo": "Line",
|
|
2345
2579
|
"support": "partial",
|
|
2346
|
-
"note": "SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail requires a Desktop discount item
|
|
2580
|
+
"note": "SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail requires a Desktop discount item named by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount); other DetailTypes (e.g. SubTotalLineDetail) return UNSUPPORTED_BY_DESKTOP. Group lines read back as GroupLineDetail without nested line expansion; Desktop discount lines read back as SalesItemLineDetail lines (never DiscountLineDetail) referencing the discount item, with a negative Amount (verified live). An unknown Line.Id returns 3120 (REST 610); a malformed one returns 3000. Updates carrying Line send the full line table, as QBO requires: a line with the Id a read returned keeps that Desktop line (Id = TxnLineID, stable across updates), a line without an Id (or Id 0 / empty) is added, and any existing line omitted from the array is deleted. Send the whole array on sparse updates too; an Id listed twice is rejected (2010). Fields you omit from a line that carries an Id are filled from the current record before the full line is sent (Desktop would otherwise blank them), and line ClassRef and ServiceDate are written (ServiceDate not on Estimate). Re-sending an existing group line returns 422 (UNSUPPORTED_BY_DESKTOP); omit it to delete it and add a new group line without an Id."
|
|
2347
2581
|
},
|
|
2348
2582
|
{
|
|
2349
2583
|
"qbo": "TxnTaxDetail",
|
|
2350
2584
|
"support": "partial",
|
|
2351
|
-
"note": "
|
|
2585
|
+
"note": "TxnTaxCodeRef on write selects the tax item (Desktop ItemSalesTaxRef). TotalTax alone is accepted but not sent: QuickBooks then applies the customer's default sales tax item (or the company default) and computes the tax itself, so the tax on read can differ from the TotalTax you sent. When it differs, create/update responses carry a non-fatal X-TKB-Warning header (not emitted for /batch items). On read: TotalTax, TxnTaxCodeRef, and TaxLine[{Amount, TaxLineDetail{TaxRateRef, TaxPercent}}]. NetAmountTaxable never returned. Updatable via sparse update (#55)."
|
|
2352
2586
|
},
|
|
2353
2587
|
{
|
|
2354
2588
|
"qbo": "LinkedTxn",
|
|
@@ -2358,7 +2592,7 @@ var CATALOG = {
|
|
|
2358
2592
|
{
|
|
2359
2593
|
"qbo": "CustomField",
|
|
2360
2594
|
"support": "partial",
|
|
2361
|
-
"note": "Name/StringValue
|
|
2595
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the transaction header. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to SalesReceipt records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). The mechanism was verified live on QuickBooks Enterprise 24 (2026-09-30) on Customer, Vendor, Item, Employee, Invoice and PurchaseOrder; this entity follows the same path."
|
|
2362
2596
|
},
|
|
2363
2597
|
{
|
|
2364
2598
|
"qbo": "TotalAmt",
|
|
@@ -2381,11 +2615,42 @@ var CATALOG = {
|
|
|
2381
2615
|
"note": "POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType SalesReceipt), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QB Enterprise 24 (2026-09-29): the re-read shows amounts and line Qty zeroed, PrivateNote prefixed `VOID: `, TxnDate unchanged, a new SyncToken; voiding again succeeds. The response is whatever Desktop returns on the post-void re-read (nothing is fabricated)."
|
|
2382
2616
|
}
|
|
2383
2617
|
],
|
|
2618
|
+
"unsupported": []
|
|
2619
|
+
},
|
|
2620
|
+
"Tag": {
|
|
2621
|
+
"entity": "Tag",
|
|
2622
|
+
"verdict": "gap",
|
|
2623
|
+
"group": "gaps",
|
|
2624
|
+
"read": "none",
|
|
2625
|
+
"write": "none",
|
|
2626
|
+
"headline": "QBO Tags (and Tag classifications) are a cloud-only labeling feature \u2014 QuickBooks Desktop has no free-form tag object, and its nearest dimensional list (Class) is already exposed as Class.",
|
|
2627
|
+
"fields": [],
|
|
2384
2628
|
"unsupported": [
|
|
2385
2629
|
{
|
|
2386
|
-
"case": "
|
|
2630
|
+
"case": "read",
|
|
2631
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2632
|
+
"note": "qbXML has no Tag or TagClassification message; Desktop has no equivalent many-to-many labeling of transactions.",
|
|
2633
|
+
"workaround": "Use Class for a single dimension per transaction line (live in TenkeyBridge), or keep your labels in your own system keyed by the TenkeyBridge entity Id."
|
|
2634
|
+
},
|
|
2635
|
+
{
|
|
2636
|
+
"case": "query",
|
|
2637
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2638
|
+
"note": "There is no Desktop tag list to query."
|
|
2639
|
+
},
|
|
2640
|
+
{
|
|
2641
|
+
"case": "create",
|
|
2642
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2643
|
+
"note": "Desktop cannot store tags, so none can be created."
|
|
2644
|
+
},
|
|
2645
|
+
{
|
|
2646
|
+
"case": "update",
|
|
2647
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2648
|
+
"note": "Desktop cannot store tags, so none can be updated."
|
|
2649
|
+
},
|
|
2650
|
+
{
|
|
2651
|
+
"case": "delete",
|
|
2387
2652
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2388
|
-
"note": "Desktop cannot
|
|
2653
|
+
"note": "Desktop cannot store tags, so none can be deleted."
|
|
2389
2654
|
}
|
|
2390
2655
|
]
|
|
2391
2656
|
},
|
|
@@ -2500,6 +2765,43 @@ var CATALOG = {
|
|
|
2500
2765
|
],
|
|
2501
2766
|
"unsupported": []
|
|
2502
2767
|
},
|
|
2768
|
+
"TaxPayment": {
|
|
2769
|
+
"entity": "TaxPayment",
|
|
2770
|
+
"verdict": "planned",
|
|
2771
|
+
"group": "planned",
|
|
2772
|
+
"read": "none",
|
|
2773
|
+
"write": "none",
|
|
2774
|
+
"headline": "Desktop records sales-tax remittances as SalesTaxPaymentCheck (qbXML SalesTaxPaymentCheckQuery), a real analog \u2014 but it is not mapped yet because TenkeyBridge will not guess QBO's TaxPayment wire shape.",
|
|
2775
|
+
"fields": [],
|
|
2776
|
+
"unsupported": [
|
|
2777
|
+
{
|
|
2778
|
+
"case": "read",
|
|
2779
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2780
|
+
"note": "Not implemented. Evaluated in wave 3: the Desktop record (SalesTaxPaymentCheckRet: bank AccountRef, tax-agency PayeeEntityRef, per-item SalesTaxPaymentCheckLineRet amounts) maps conceptually to QBO TaxPayment, but QBO's TaxPayment JSON is thinly documented and read-only, so a field-by-field mapping would be guesswork rather than a verified contract.",
|
|
2781
|
+
"workaround": "Sales-tax payments made in Desktop are not visible through TenkeyBridge today. Pay-tax events that are recorded as ordinary checks appear under Purchase."
|
|
2782
|
+
},
|
|
2783
|
+
{
|
|
2784
|
+
"case": "query",
|
|
2785
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2786
|
+
"note": "Not implemented; see read."
|
|
2787
|
+
},
|
|
2788
|
+
{
|
|
2789
|
+
"case": "create",
|
|
2790
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2791
|
+
"note": "QBO's TaxPayment is read-only via the API; TenkeyBridge matches that."
|
|
2792
|
+
},
|
|
2793
|
+
{
|
|
2794
|
+
"case": "update",
|
|
2795
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2796
|
+
"note": "QBO's TaxPayment is read-only via the API; TenkeyBridge matches that."
|
|
2797
|
+
},
|
|
2798
|
+
{
|
|
2799
|
+
"case": "delete",
|
|
2800
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2801
|
+
"note": "QBO's TaxPayment is read-only via the API; TenkeyBridge matches that."
|
|
2802
|
+
}
|
|
2803
|
+
]
|
|
2804
|
+
},
|
|
2503
2805
|
"TaxRate": {
|
|
2504
2806
|
"entity": "TaxRate",
|
|
2505
2807
|
"verdict": "live",
|
|
@@ -2820,7 +3122,7 @@ var CATALOG = {
|
|
|
2820
3122
|
{
|
|
2821
3123
|
"case": "Delete",
|
|
2822
3124
|
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
2823
|
-
"note": '"Transfer" is not a valid qbXML TxnDelType enum value, so delete is not wired for this entity.'
|
|
3125
|
+
"note": '"Transfer" is not a valid qbXML TxnDelType enum value (verified live: status 3110), so delete is not wired for this entity.'
|
|
2824
3126
|
}
|
|
2825
3127
|
]
|
|
2826
3128
|
},
|
|
@@ -2907,7 +3209,7 @@ var CATALOG = {
|
|
|
2907
3209
|
{
|
|
2908
3210
|
"qbo": "CustomField",
|
|
2909
3211
|
"support": "partial",
|
|
2910
|
-
"note": "Name/StringValue
|
|
3212
|
+
"note": "Desktop custom fields (data extensions, OwnerID 0) on the record. Read: Name/StringValue (Type is always StringType; DefinitionId is not available from Desktop). Write: CustomField[{Name, StringValue}] is written as DataExtMod requests (on Desktop Mod both sets a first value and changes one; DataExtAdd fails once a value exists, and a new transaction inherits its customer's/vendor's value) keyed by the field Name, sent in ONE follow-up message after the record is saved; the field must already be defined in QuickBooks and assigned to Vendor records, checked up front (400 CUSTOM_FIELD_UNKNOWN, nothing written). If the record saves but a custom field does not, the answer is 502 CUSTOM_FIELD_WRITE_FAILED naming the record Id and which fields applied or failed (never a silent 200); if everything writes but the read-back fails it is 502 CUSTOM_FIELD_READBACK_FAILED. A DefinitionId without a Name is a 400; only Type StringType is accepted. An update may carry only CustomField (SyncToken still checked). Line-level custom fields are not written. Values are limited to 30 characters and may not be empty or blank (400, nothing written). Verified live on QuickBooks Enterprise 24 (2026-09-30)."
|
|
2911
3213
|
},
|
|
2912
3214
|
{
|
|
2913
3215
|
"qbo": "CurrencyRef",
|
|
@@ -2980,6 +3282,43 @@ var CATALOG = {
|
|
|
2980
3282
|
}
|
|
2981
3283
|
],
|
|
2982
3284
|
"unsupported": []
|
|
3285
|
+
},
|
|
3286
|
+
"VendorType": {
|
|
3287
|
+
"entity": "VendorType",
|
|
3288
|
+
"verdict": "gap",
|
|
3289
|
+
"group": "gaps",
|
|
3290
|
+
"read": "none",
|
|
3291
|
+
"write": "none",
|
|
3292
|
+
"headline": "QBO has no VendorType entity to be compatible with \u2014 Desktop's vendor-type list (VendorTypeAdd/Query) has no counterpart in the QBO Accounting API, so TenkeyBridge does not expose it.",
|
|
3293
|
+
"fields": [],
|
|
3294
|
+
"unsupported": [
|
|
3295
|
+
{
|
|
3296
|
+
"case": "read",
|
|
3297
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
3298
|
+
"note": "The QBO Accounting API has no VendorType resource. Desktop's vendor-type list exists in qbXML, but surfacing it would invent a QBO entity that QBO clients and SDKs do not know.",
|
|
3299
|
+
"workaround": "Desktop's VendorTypeRef on a vendor is not surfaced on the Vendor entity either. Keep vendor classification in your own system keyed by the TenkeyBridge vendor Id."
|
|
3300
|
+
},
|
|
3301
|
+
{
|
|
3302
|
+
"case": "query",
|
|
3303
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
3304
|
+
"note": "No QBO VendorType resource to mirror, so no query is exposed."
|
|
3305
|
+
},
|
|
3306
|
+
{
|
|
3307
|
+
"case": "create",
|
|
3308
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
3309
|
+
"note": "No QBO VendorType resource to mirror, so no create is exposed."
|
|
3310
|
+
},
|
|
3311
|
+
{
|
|
3312
|
+
"case": "update",
|
|
3313
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
3314
|
+
"note": "No QBO VendorType resource to mirror, so no update is exposed."
|
|
3315
|
+
},
|
|
3316
|
+
{
|
|
3317
|
+
"case": "delete",
|
|
3318
|
+
"error": "UNSUPPORTED_BY_DESKTOP",
|
|
3319
|
+
"note": "No QBO VendorType resource to mirror, so no delete is exposed."
|
|
3320
|
+
}
|
|
3321
|
+
]
|
|
2983
3322
|
}
|
|
2984
3323
|
};
|
|
2985
3324
|
|
|
@@ -3108,10 +3447,10 @@ function registerTools(server, client) {
|
|
|
3108
3447
|
server.registerTool(
|
|
3109
3448
|
"query",
|
|
3110
3449
|
{
|
|
3111
|
-
description: "Run a QBO-style query against the connected QuickBooks Desktop company file. Supports
|
|
3450
|
+
description: "Run a QBO-style query against the connected QuickBooks Desktop company file. Supports AND-joined WHERE conditions (=, !=, <, >, <=, >=, IN, LIKE; no OR) plus startPosition/maxResults paging. Check the compat://catalog resource for entity support first.",
|
|
3112
3451
|
inputSchema: {
|
|
3113
3452
|
entity: entityArg,
|
|
3114
|
-
where: z.string().optional().describe(`
|
|
3453
|
+
where: z.string().optional().describe(`WHERE conditions in QBO query grammar, joined with AND (there is no OR), e.g. "CustomerRef = '12' AND TxnDate >= '2026-01-01'"`),
|
|
3115
3454
|
startPosition: z.number().int().positive().optional(),
|
|
3116
3455
|
maxResults: z.number().int().positive().max(1e3).optional()
|
|
3117
3456
|
}
|
|
@@ -3217,10 +3556,34 @@ function registerTools(server, client) {
|
|
|
3217
3556
|
}
|
|
3218
3557
|
}
|
|
3219
3558
|
);
|
|
3559
|
+
server.registerTool(
|
|
3560
|
+
"void",
|
|
3561
|
+
{
|
|
3562
|
+
description: 'Void a transaction by Id + SyncToken (QBO ?operation=void). Supported: Invoice, SalesReceipt, Purchase, BillPayment. Destructive: on QuickBooks Desktop the record stays but its totals are zeroed and its memo is prefixed "VOID:". Returns the post-void record. Fetch the current SyncToken with the get tool first.',
|
|
3563
|
+
inputSchema: {
|
|
3564
|
+
entity: entityArg,
|
|
3565
|
+
id: z.string(),
|
|
3566
|
+
syncToken: z.string().describe("Current SyncToken of the transaction (required; a stale token is rejected).")
|
|
3567
|
+
}
|
|
3568
|
+
},
|
|
3569
|
+
async ({ entity, id, syncToken }) => {
|
|
3570
|
+
const name = resolveEntityName(entity);
|
|
3571
|
+
if (!name) return unknownEntity(entity);
|
|
3572
|
+
if (!ENTITIES2[name].voidable) {
|
|
3573
|
+
const supported = Object.values(ENTITIES2).filter((e) => e.voidable).map((e) => e.name).join(", ");
|
|
3574
|
+
return fail(`${name} cannot be voided through TenkeyBridge. Voidable entities: ${supported}.`);
|
|
3575
|
+
}
|
|
3576
|
+
try {
|
|
3577
|
+
return ok(await accessor(client, name).void({ Id: id, SyncToken: syncToken }));
|
|
3578
|
+
} catch (err) {
|
|
3579
|
+
return failure(err);
|
|
3580
|
+
}
|
|
3581
|
+
}
|
|
3582
|
+
);
|
|
3220
3583
|
}
|
|
3221
3584
|
|
|
3222
3585
|
// src/version.ts
|
|
3223
|
-
var PKG_VERSION = "0.
|
|
3586
|
+
var PKG_VERSION = "0.3.0";
|
|
3224
3587
|
|
|
3225
3588
|
// src/server.ts
|
|
3226
3589
|
var SERVER_NAME = "tenkeybridge";
|