@tenkeybridge/mcp 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +107 -8
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +107 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +107 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/server.ts","../src/resources.ts","../src/generated/catalog.ts","../src/catalog.ts","../src/tools.ts","../src/access.ts","../src/version.ts","../src/config.ts"],"sourcesContent":["import { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { registerResources } from \"./resources.js\";\nimport { registerTools, type GatewayClient } from \"./tools.js\";\nimport type { AccessSummary } from \"./access.js\";\nimport { PKG_VERSION } from \"./version.js\";\n\nexport const SERVER_NAME = \"tenkeybridge\";\n\n/** `access`: from `client.access()`; omit (or undefined) to list every tool. */\nexport function buildServer(client: GatewayClient, access?: AccessSummary): McpServer {\n const server = new McpServer({ name: SERVER_NAME, version: PKG_VERSION });\n registerTools(server, client, access);\n registerResources(server);\n return server;\n}\n","import { McpServer, ResourceTemplate } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { CATALOG } from \"./generated/catalog.js\";\nimport { catalogSummary, resolveCatalog } from \"./catalog.js\";\n\nexport function registerResources(server: McpServer): void {\n server.registerResource(\n \"compat-catalog\",\n \"compat://catalog\",\n {\n title: \"TenkeyBridge compatibility catalog\",\n description:\n \"Per-entity support summary (verdict, read/write level, headline). Read compat://entity/{name} for field-level detail before create/update calls.\",\n mimeType: \"application/json\",\n },\n async (uri) => ({\n contents: [\n { uri: uri.href, mimeType: \"application/json\", text: JSON.stringify(catalogSummary(), null, 2) },\n ],\n }),\n );\n\n server.registerResource(\n \"compat-entity\",\n new ResourceTemplate(\"compat://entity/{name}\", {\n list: () => ({\n resources: Object.values(CATALOG).map((entry) => ({\n uri: `compat://entity/${entry.entity.toLowerCase()}`,\n name: `${entry.entity} compatibility`,\n mimeType: \"application/json\",\n })),\n }),\n }),\n {\n title: \"Entity compatibility detail\",\n description: \"Full field-level support, unsupported cases, and workarounds for one entity.\",\n mimeType: \"application/json\",\n },\n async (uri, variables) => {\n const entry = resolveCatalog(String(variables.name));\n if (!entry) {\n throw new Error(`No compatibility entry for \"${String(variables.name)}\" — read compat://catalog for the list.`);\n }\n return {\n contents: [{ uri: uri.href, mimeType: \"application/json\", text: JSON.stringify(entry, null, 2) }],\n };\n },\n );\n}\n","// GENERATED by scripts/gen-catalog.mjs from compat/*.yaml — do not edit.\n// Regenerate: pnpm --filter @tenkeybridge/mcp gen\n\nexport interface CatalogField {\n qbo: string;\n support: string;\n note?: string;\n error?: string;\n}\n\nexport interface CatalogUnsupported {\n case: string;\n error: string;\n note?: string;\n workaround?: string;\n}\n\nexport interface CatalogEntry {\n entity: string;\n verdict: string;\n group: string;\n read: string;\n write: string;\n headline: string;\n usage?: string;\n fields: CatalogField[];\n unsupported: CatalogUnsupported[];\n}\n\nexport const CATALOG: Record<string, CatalogEntry> = {\n \"Account\": {\n \"entity\": \"Account\",\n \"verdict\": \"live\",\n \"group\": \"banking\",\n \"read\": \"full\",\n \"write\": \"full\",\n \"headline\": \"AccountType / AccountSubType enum mapping\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ParentRef\",\n \"support\": \"full\",\n \"note\": \"Becomes a Desktop sub-account; FullName is colon-delimited.\"\n },\n {\n \"qbo\": \"AcctNum\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Description\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"AccountType\",\n \"support\": \"partial\",\n \"note\": \"Mapped per the COMPATIBILITY.md appendix; unmapped values return 422 UNMAPPED_ACCOUNT_TYPE. Desktop-only Non-Posting appears on reads.\"\n },\n {\n \"qbo\": \"AccountSubType\",\n \"support\": \"partial\",\n \"note\": \"Accepted and ignored — Desktop has no account subtype; reads never return one.\"\n },\n {\n \"qbo\": \"FullyQualifiedName\",\n \"support\": \"full\",\n \"note\": \"Read-only, derived by Desktop.\"\n },\n {\n \"qbo\": \"SubAccount\",\n \"support\": \"full\",\n \"note\": \"Read-only, derived from Desktop Sublevel.\"\n },\n {\n \"qbo\": \"CurrentBalance\",\n \"support\": \"full\",\n \"note\": \"Read-only, as in QBO.\"\n },\n {\n \"qbo\": \"CurrentBalanceWithSubAccounts\",\n \"support\": \"full\",\n \"note\": \"Read-only; Desktop TotalBalance.\"\n },\n {\n \"qbo\": \"Classification\",\n \"support\": \"partial\",\n \"note\": \"Accepted and ignored on writes; not returned on reads — derive it from AccountType client-side.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"note\": \"Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only for now. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). Written on create and stored by Desktop, so a bank or card account can be foreign (the currency must be active; activate it with CompanyCurrency). Changing it on update is not proven live. On a file with multicurrency off only USD is accepted (and dropped).\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Not a Desktop account field. Accepted and ignored.\"\n },\n {\n \"qbo\": \"CashFlowClassification\",\n \"support\": \"none\",\n \"note\": \"Desktop AccountRet.CashFlowClassification has no honest QBO Account field; omitted rather than guessed at.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"SpecialAccountType\",\n \"support\": \"none\",\n \"note\": \"Desktop SpecialAccountType has no honest QBO Account field; omitted rather than guessed at.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n }\n ],\n \"unsupported\": []\n },\n \"Attachable\": {\n \"entity\": \"Attachable\",\n \"verdict\": \"gap\",\n \"group\": \"gaps\",\n \"read\": \"none\",\n \"write\": \"none\",\n \"headline\": \"Unsupported on QuickBooks Desktop, with no opt-in and no workaround inside TenkeyBridge. qbXML has no attachments interface (the word 'Attachment' does not occur anywhere in the qbxmlops130 message set), and TenkeyBridge does not store files itself.\",\n \"fields\": [],\n \"unsupported\": [\n {\n \"case\": \"read\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Re-audited 2026-07-29: zero occurrences of any attachment message (no AttachmentAdd/Query/Ref of any kind) across the full qbxmlops130 schema. Desktop's Attached Documents feature is UI-only; files attached in Desktop cannot be listed or fetched through TenkeyBridge.\",\n \"workaround\": \"Store documents in your own system keyed by the TenkeyBridge entity Id, which is what QuickBooks Desktop integrations have always had to do. Branch on UNSUPPORTED_BY_DESKTOP and skip the Attachable call for Desktop-backed companies.\"\n },\n {\n \"case\": \"query\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop has no attachments API over qbXML — Attachable queries always fail loud.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop has no attachments API over qbXML — attachments cannot be uploaded through TenkeyBridge.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop has no attachments API over qbXML — attachments cannot be modified through TenkeyBridge.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop has no attachments API over qbXML — attachments cannot be deleted through TenkeyBridge.\"\n }\n ]\n },\n \"Batch\": {\n \"entity\": \"Batch\",\n \"verdict\": \"live\",\n \"group\": \"platform\",\n \"read\": \"full\",\n \"write\": \"full\",\n \"headline\": \"Batch envelope — up to 30 create/update/delete/query operations in one request, executed sequentially with per-item faults.\",\n \"usage\": \"POST /v3/company/{companyId}/batch\",\n \"fields\": [\n {\n \"qbo\": \"bId\",\n \"support\": \"full\",\n \"note\": \"Required and unique per request; echoed verbatim on each BatchItemResponse slot.\"\n },\n {\n \"qbo\": \"operation (create | update | delete) + optionsData: void\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"operation (create | update | delete)\",\n \"support\": \"full\",\n \"note\": \"Runs the identical pipeline as the single-shot entity routes — same classification, faults, and result shapes.\"\n },\n {\n \"qbo\": \"Query items\",\n \"support\": \"full\",\n \"note\": \"Full /query parity: the same query language (AND-joined WHERE with =, !=, <, >, <=, >=, IN, LIKE; ORDERBY; COUNT(*); column lists; STARTPOSITION/MAXRESULTS), iterator-backed deep pages.\"\n },\n {\n \"qbo\": \"per-item faults\",\n \"support\": \"full\",\n \"note\": \"A failed item returns a Fault slot (with the tkb help block); the rest of the batch still runs.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"more than 30 items\",\n \"error\": \"BATCH_TOO_MANY_ITEMS\",\n \"note\": \"QBO's own per-request cap, cloned. Split into multiple batch calls.\"\n },\n {\n \"case\": \"optionsData other than void (or void paired with create/delete)\",\n \"error\": \"BATCH_UNSUPPORTED_OPTION\",\n \"note\": \"Only optionsData \\\"void\\\" on an update item is wired — any other value faults that item loud; the rest of the batch runs.\"\n },\n {\n \"case\": \"transactional rollback\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Batch is not a transaction (QBO's isn't either): items succeed or fault independently; earlier writes are never rolled back by a later failure.\"\n },\n {\n \"case\": \"entity CRUD or /query on Batch itself\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Batch is a platform endpoint, not an entity — POST /v3/company/{companyId}/batch.\"\n }\n ]\n },\n \"Bill\": {\n \"entity\": \"Bill\",\n \"verdict\": \"live\",\n \"group\": \"purchasing\",\n \"read\": \"full\",\n \"write\": \"full\",\n \"headline\": \"Account vs. item expense lines map cleanly\",\n \"fields\": [\n {\n \"qbo\": \"VendorRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DueDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"SalesTermRef\",\n \"support\": \"full\",\n \"note\": \"Desktop TermsRef.\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"full\",\n \"note\": \"Account-based and item-based expense lines; other line types return UNSUPPORTED_BY_DESKTOP. Update: Line is the WHOLE table, as in QBO. A line sent with its Id (the Line.Id a read returned) keeps that line, a line with no Id is added, and a line you leave out is deleted. Omit Line to leave every line alone (a header-only update such as PrivateNote never touches lines); an empty array is refused (2020), and a repeated or unknown Id is refused (2010). A line cannot change type: sending an expense line's Id with an item detail (or the reverse) is 2010, so omit the Id to replace it. On an item line that sends Amount without Qty or UnitPrice, Desktop keeps the stored quantity and re-derives the unit cost, so the Amount you send is the Amount you read back (verified live, 2026-10-14). Item group lines read as their component item lines, in the group's place and in Desktop's order, each carrying the TenkeyBridge extension fields GroupLineId (the group's Id) and GroupItemRef. The Id on each of those component lines is read-only: it identifies what was read and is not accepted as a line Id on a write. A transaction that has item group lines refuses a Line update with UNSUPPORTED_BY_DESKTOP, because a table update would delete them; header-only updates still work. Both AccountBasedExpenseLineDetail.ClassRef and ItemBasedExpenseLineDetail.ClassRef are read/written, mapping to Desktop ExpenseLineAdd/ExpenseLineRet and ItemLineAdd/ItemLineRet ClassRef respectively. On ExpenseLineAdd, ClassRef sits in OSR position (AccountRef < Amount < Memo < CustomerRef < ClassRef).\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only, computed by Desktop as AmountDue.\"\n },\n {\n \"qbo\": \"Balance\",\n \"support\": \"full\",\n \"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) — never used directly. Computed instead as 0 when IsPaid, else AmountDue minus whatever BillPaymentCheck/BillPaymentCreditCard/VendorCredit amounts LinkedTxn shows applied to this bill.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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'.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the vendor, so CurrencyRef is checked and then dropped: one that differs from the vendor's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create. On a sparse update it is sent only when you change it; the update placement is not proven live.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop AmountDueInHomeCurrency. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"LinkedTxn\",\n \"support\": \"partial\",\n \"note\": \"Read-only, populated on read: the PurchaseOrder a bill was created from and the BillPayment(s) and VendorCredit(s) applied to it, as {TxnId, TxnType}. Desktop-only link types (ItemReceipt, ...) are omitted. Proven live on QuickBooks Enterprise 24 (2026-10-20): a Bill created from a purchase order carries the PO, and a paid bill carries its check payment. Accepted and ignored on write, as in QBO. Linking a new Bill to a PurchaseOrder is not supported: Desktop's BillAdd LinkToTxnID pulls the PO's lines in, and a line-level link next to explicit lines is refused (3153).\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension: QBO cannot void a Bill; QuickBooks Desktop can. POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType Bill), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QuickBooks Enterprise 24 (2026-10-15). The re-read shows PrivateNote as `VOID: <memo>`, every amount and line Amount at 0.00 with the lines kept, TotalAmt 0.00, Balance 0.00 (Desktop reports it paid). A void does not reliably advance the SyncToken, so re-read the record instead of relying on it; voiding again is accepted. The response is whatever Desktop returns on the re-read (nothing is fabricated).\"\n }\n ],\n \"unsupported\": []\n },\n \"BillPayment\": {\n \"entity\": \"BillPayment\",\n \"verdict\": \"live\",\n \"group\": \"purchasing\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Fans out to BillPaymentCheck / BillPaymentCreditCard by PayType\",\n \"fields\": [\n {\n \"qbo\": \"PayType\",\n \"support\": \"full\",\n \"note\": \"Check → BillPaymentCheck*; CreditCard → BillPaymentCreditCard*. Updates: Check family only — qbXML has no BillPaymentCreditCardMod, so credit-card-family updates fail loud with UNSUPPORTED_BY_DESKTOP (#75); delete and re-create instead.\"\n },\n {\n \"qbo\": \"VendorRef\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop PayeeEntityRef.\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only from Desktop Amount; write-ignored on create/update — neither BillPaymentCheckAdd nor BillPaymentCreditCardAdd has a top-level Amount element in the OSR, Desktop derives it from the summed AppliedToTxnAdd/PaymentAmount values instead.\"\n },\n {\n \"qbo\": \"CheckPayment\",\n \"support\": \"full\",\n \"note\": \"CheckPayment.BankAccountRef ⇄ BankAccountRef.\"\n },\n {\n \"qbo\": \"CreditCardPayment\",\n \"support\": \"full\",\n \"note\": \"CreditCardPayment.CCAccountRef ⇄ CreditCardAccountRef.\"\n },\n {\n \"qbo\": \"PrintStatus\",\n \"support\": \"partial\",\n \"note\": \"Check flavor only; ⇄ IsToBePrinted. On update, PrintStatus NeedToPrint or PrintComplete sets IsToBePrinted true or false (verified live, 2026-10-14); Desktop then holds no reference number, so DocNumber reads back empty, and PrintStatus and DocNumber cannot be sent together. BillPaymentCheckAdd requires IsToBePrinted OR RefNumber (Desktop OSR); when a create supplies neither PrintStatus nor DocNumber, TenkeyBridge synthesizes IsToBePrinted=false so the Add stays schema-valid.\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"note\": \"Required — at least one; QuickBooks Desktop's BillPaymentCheckAdd/BillPaymentCreditCardAdd schema requires one or more AppliedToTxnAdd. Write: LinkedTxn bills → AppliedToTxnAdd; additional LinkedTxn VendorCredit → SetCredit (the Add request shape). Read: an applied vendor credit comes back nested as AppliedToTxnRet.LinkedTxn (TxnType VendorCredit, Amount negative — absolute value surfaced as QBO LinkedTxn.Amount), not SetCreditRet/SetCredit, which Desktop never returns on this Ret (verified live, 2026-09-28). Update (Check family): Line is the WHOLE application set, as in QBO, keyed on the bill (LinkedTxn[0].TxnId) and sent as AppliedToTxnMod. A bill left out of the array is unapplied (it reopens) and the payment total recomputes; a bill not yet applied is added. Omit Line to leave applications untouched (a header-only update such as PrivateNote never touches them). An empty array (2020) or a repeated bill (2010) is refused. A vendor credit is applied by adding a second LinkedTxn (TxnType VendorCredit) to the bill's line. A credit already applied stays applied when a later update omits it: Desktop keeps it on the bill, even after the payment is deleted. Credit-card-family payments cannot be updated at all, whatever PayType the body carries (UNSUPPORTED_BY_DESKTOP); delete and re-create.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the vendor, so CurrencyRef is checked and then dropped: one that differs from the vendor's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Create only (BillPaymentCheckMod does not take it, so it is not sent on update). Proven live on create for a EUR bill paid with APAccountRef naming the EUR A/P account and a rate of 1.10, which Desktop stored and returned on read. Without the foreign A/P account Desktop refuses the request (3120). Read on multicurrency files only.\"\n },\n {\n \"qbo\": \"APAccountRef\",\n \"support\": \"partial\",\n \"note\": \"Create only (BillPaymentCheckMod has no such element); read when Desktop returns it. A bill in a foreign currency sits in a foreign A/P account, and Desktop looks in the home A/P when the payment does not name it (3120, live). On create, when you send CurrencyRef or ExchangeRate and no APAccountRef, TenkeyBridge reads the A/P account of the one bill being paid and sends it. Send APAccountRef yourself when the payment applies several bills.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from the check payment AmountInHomeCurrency. Not yet proven live. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"query paging\",\n \"support\": \"full\",\n \"note\": \"STARTPOSITION and MAXRESULTS page across both Desktop families as one list: check payments, then credit card payments, each in Desktop order. A deep page costs two QuickBooks messages (the ids of every row the query selects, then the page by id) and faults with UNSUPPORTED_QUERY past 5000 rows in one family; narrow with a TxnDate or MetaData.LastUpdatedTime range.\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"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).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"PayType outside Check/CreditCard\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Only Check and CreditCard map to Desktop bill-payment families.\"\n }\n ]\n },\n \"Budget\": {\n \"entity\": \"Budget\",\n \"verdict\": \"live\",\n \"group\": \"company\",\n \"read\": \"partial\",\n \"write\": \"none\",\n \"headline\": \"Read-only, synthesized from BudgetSummaryReportQuery — 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 ±1 against both statement types, and budget writes stay in the QuickBooks Desktop UI forever\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"partial\",\n \"note\": \"Synthesized from the id — \\\"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.\"\n },\n {\n \"qbo\": \"StartDate\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"EndDate\",\n \"support\": \"full\",\n \"note\": \"The last day of the last budgeted month column, e.g. December 31 for a calendar-year budget — 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).\"\n },\n {\n \"qbo\": \"BudgetType\",\n \"support\": \"partial\",\n \"note\": \"ProfitAndLoss (ProfitAndLossBudgetOverview) and BalanceSheet (BalanceSheetBudgetOverview). Desktop's three budget-vs-actual report types mix actuals and variance into the same table — those are reports, not budgets, and are not exposed here.\"\n },\n {\n \"qbo\": \"BudgetEntryType\",\n \"support\": \"partial\",\n \"note\": \"Always \\\"Monthly\\\". Desktop budgets are entered by month, and the report is requested with monthly columns; Yearly entry is not represented.\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"partial\",\n \"note\": \"Always true. A budget that returns amounts exists; Desktop has no inactive flag for budgets.\"\n },\n {\n \"qbo\": \"BudgetDetail\",\n \"support\": \"partial\",\n \"note\": \"One entry per account × budgeted month, with BudgetDate (first of the month), Amount, and AccountRef. Months with no budgeted amount are omitted, matching QBO — a Desktop 0.00 cell is indistinguishable from \\\"not budgeted\\\".\"\n },\n {\n \"qbo\": \"MetaData\",\n \"support\": \"none\",\n \"note\": \"Desktop's budget report carries no created/modified stamp, so CreateTime/LastUpdatedTime are omitted rather than invented.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"query — SELECT * cannot enumerate every budget\",\n \"error\": \"UNSUPPORTED_QUERY\",\n \"note\": \"qbXML cannot list budgets: BudgetSummaryReportQueryRq requires a FiscalYear. SELECT * FROM Budget probes a fixed window — the current calendar year, the one before it, and the one after it — 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.\",\n \"workaround\": \"Fetch it by id: GET /v3/company/{companyId}/budget/{fiscalYear}-{BudgetType}, e.g. 2023-ProfitAndLoss, which issues exactly one report request for that year.\"\n },\n {\n \"case\": \"query — WHERE on anything but Id, ORDERBY, COUNT(*), column lists\",\n \"error\": \"UNSUPPORTED_QUERY\",\n \"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.\",\n \"workaround\": \"Fetch the window with SELECT * FROM Budget and filter the (at most six) rows client-side.\"\n },\n {\n \"case\": \"read — Class and Customer budget breakdowns\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"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.\",\n \"workaround\": \"Read the class- or customer-level figures from the budget reports in QuickBooks Desktop directly.\"\n },\n {\n \"case\": \"read — budget-vs-actual report types\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"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.\",\n \"workaround\": \"Pull the actuals with the Reports surface (ProfitAndLoss / BalanceSheet) and compare them against this Budget client-side.\"\n },\n {\n \"case\": \"read — AccountRef.value on an unrecognised row label\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"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 — matching FullName (stripping a leading \\\"{AccountNumber} · \\\" from every colon-separated segment of a qualified/subaccount label, e.g. \\\"40100 · Construction Income:40130 · Labor Income\\\") and, failing that, the leaf segment's own AccountNumber — but a label neither can explain yields AccountRef with a name and no value rather than an invented id.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Permanent: qbXML has no BudgetAdd. Budget setup stays in the Desktop UI — QBO's own Budget entity is read-only too, so no QBO-compatible client loses anything here.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Permanent: qbXML has no BudgetMod. Budget changes stay in the Desktop UI.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Permanent: qbXML has no BudgetDel.\"\n }\n ]\n },\n \"CDC\": {\n \"entity\": \"CDC\",\n \"verdict\": \"live\",\n \"group\": \"platform\",\n \"read\": \"full\",\n \"write\": \"none\",\n \"headline\": \"Change Data Capture — one poll returns changed + deleted records across entities.\",\n \"usage\": \"GET /v3/company/{companyId}/cdc?entities=Invoice,Customer&changedSince=2026-07-01\",\n \"fields\": [\n {\n \"qbo\": \"entities\",\n \"support\": \"full\",\n \"note\": \"Comma-separated QBO entity names. Unsupported names return per-entity Fault slots; live entities in the same request still return data.\"\n },\n {\n \"qbo\": \"changedSince\",\n \"support\": \"full\",\n \"note\": \"ISO 8601 timestamp or YYYY-MM-DD, at most 30 days back (QBO's own limit).\"\n },\n {\n \"qbo\": \"deleted-record stubs\",\n \"support\": \"full\",\n \"note\": \"status:'Deleted' stubs via Desktop's TxnDeletedQuery/ListDeletedQuery, with TimeDeleted as MetaData.LastUpdatedTime.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"changedSince older than 30 days\",\n \"error\": \"CDC_INVALID_CHANGED_SINCE\",\n \"note\": \"Hard limit, cloned from QBO. Use /query with a MetaData.LastUpdatedTime filter for older data.\"\n },\n {\n \"case\": \"more than 1,000 objects for one entity\",\n \"error\": \"CDC_OVERFLOW\",\n \"note\": \"Loud per-entity fault, never silent truncation. Page through /query instead.\"\n },\n {\n \"case\": \"deactivated list records reported as deletions\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop only hard-deletes unused list records. Active:false is a change, not a deletion — it surfaces as a changed record.\"\n },\n {\n \"case\": \"deleted TaxAgency / ExchangeRate / Transfer detection\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Tax agencies are vendors on Desktop (deletion indistinguishable); exchange rates ride the Currency list; 'Transfer' is not a valid TxnDelType.\"\n },\n {\n \"case\": \"Budget in the entities list\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"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.\",\n \"workaround\": \"Re-read it with SELECT * FROM Budget (or GET /budget/{fiscalYear}-{BudgetType}) whenever you need the current figures.\"\n }\n ]\n },\n \"Class\": {\n \"entity\": \"Class\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"full\",\n \"headline\": \"Hierarchical Class list; SubClass/FullyQualifiedName from Desktop Sublevel/FullName\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ParentRef\",\n \"support\": \"full\",\n \"note\": \"Becomes a Desktop sub-class; FullName is colon-delimited (e.g. Services:West Coast).\"\n },\n {\n \"qbo\": \"FullyQualifiedName\",\n \"support\": \"full\",\n \"note\": \"Read-only, derived by Desktop from the parent chain.\"\n },\n {\n \"qbo\": \"SubClass\",\n \"support\": \"full\",\n \"note\": \"Read-only, derived from Desktop Sublevel (true when Sublevel > 0).\"\n }\n ],\n \"unsupported\": []\n },\n \"ClearedStatus\": {\n \"entity\": \"ClearedStatus\",\n \"verdict\": \"live\",\n \"group\": \"platform\",\n \"read\": \"partial\",\n \"write\": \"partial\",\n \"headline\": \"TenkeyBridge extension (QBO has none): POST /clearedstatus sets QuickBooks Desktop's cleared status (Cleared, NotCleared, Pending) on a check, deposit, bill payment check or journal entry, for the transaction's own bank side (TxnId alone) or for one line (LineId). GET /clearedstatus reads it back per split with one bounded QuickBooks read.\",\n \"usage\": \"POST /v3/company/{companyId}/clearedstatus[?requestid=...] and GET /v3/company/{companyId}/clearedstatus?txnid=...&txntype=...\",\n \"fields\": [\n {\n \"qbo\": \"TxnId\",\n \"support\": \"full\",\n \"note\": \"The Id of the transaction, as a read of the Purchase, Deposit, BillPayment or JournalEntry returned it.\"\n },\n {\n \"qbo\": \"LineId\",\n \"support\": \"full\",\n \"note\": \"Optional. A Line.Id of that transaction: sets that one line's account side. The line's account must be a balance sheet account other than A/R and A/P (a bank, credit card or other current asset account); an income, expense or cost of goods line is 422 UNSUPPORTED_BY_DESKTOP. Without it, a Check, Deposit or BillPayment sets its own bank side and a JournalEntry sets its first line.\"\n },\n {\n \"qbo\": \"ClearedStatus\",\n \"support\": \"full\",\n \"note\": \"Cleared, NotCleared or Pending (case sensitive). Reconciled is QuickBooks' own state and cannot be written.\"\n },\n {\n \"qbo\": \"TxnType\",\n \"support\": \"partial\",\n \"note\": \"Optional on the write: Purchase, Deposit, BillPayment or JournalEntry. Send it with a requestid so a lost outcome can be reconciled with a read. Required on the read (and Transfer is allowed there).\"\n },\n {\n \"qbo\": \"Splits\",\n \"support\": \"full\",\n \"note\": \"In the read-back: one entry per bank or balance sheet posting of the transaction, with Role (Header, Line, From, To), LineId (the value to send back), ClearedStatus and Amount. SetByTxnId marks the split a request without a LineId would set.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Transfer\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"QuickBooks Desktop refuses a Transfer id for a cleared status change (probe, QB Enterprise 24), so neither side of a transfer can be set. It can be read back. Record the movement as a deposit, check or journal entry instead, or clear it in QuickBooks.\",\n \"workaround\": \"Use a Deposit (line from the clearing account) or a JournalEntry, and set the line you need by LineId.\"\n },\n {\n \"case\": \"Income, expense, cost of goods, A/R or A/P line\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"QuickBooks only keeps a cleared status for lines on other balance sheet accounts. A TxnId alone on a JournalEntry whose first line is on such an account is refused the same way.\"\n },\n {\n \"case\": \"Invoice, Bill, SalesReceipt and the other transaction types\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Only Purchase (check), Deposit, BillPayment (check) and JournalEntry are supported. A credit card Purchase or a credit card BillPayment was not probed.\"\n },\n {\n \"case\": \"Cleared status on an ordinary read\",\n \"error\": \"n/a\",\n \"note\": \"Entity reads never carry a cleared status and never cost an extra QuickBooks read; QuickBooks' Ret objects do not hold one. Use GET /clearedstatus.\"\n }\n ]\n },\n \"CompanyCurrency\": {\n \"entity\": \"CompanyCurrency\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Desktop CurrencyQuery list, including inactive currencies; create activates or adds a currency, update changes Name and Active. Empty when multicurrency is off (statusCode 3250, confirmed live, and 3170 both normalized to [])\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"full\",\n \"note\": \"Desktop Name. On create the default is the code. Can be changed on update.\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\",\n \"note\": \"Desktop IsActive. Update can activate or deactivate a currency (proven live). Prefer deactivating to deleting: delete is not proven live.\"\n },\n {\n \"qbo\": \"Code\",\n \"support\": \"partial\",\n \"note\": \"Desktop CurrencyCode, an ISO 4217 code. Required on create (400, code 2020 without it) and never changed afterwards: an update that names a different code is UNSUPPORTED_BY_DESKTOP. Create (POST /companycurrency) is activate-or-add; see the Name and Active rows and the create unsupported cases below.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Setting an exchange rate on create or update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"CurrencyMod has no rate field. Set the list rate in QuickBooks, or send ExchangeRate on the transaction.\"\n }\n ]\n },\n \"CompanyInfo\": {\n \"entity\": \"CompanyInfo\",\n \"verdict\": \"live\",\n \"group\": \"company\",\n \"read\": \"full\",\n \"write\": \"none\",\n \"headline\": \"Read-only; Id equals the Company ID, no Desktop write path\",\n \"fields\": [\n {\n \"qbo\": \"CompanyName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"LegalName\",\n \"support\": \"full\",\n \"note\": \"Desktop LegalCompanyName.\"\n },\n {\n \"qbo\": \"CompanyAddr\",\n \"support\": \"full\",\n \"note\": \"Desktop Address.\"\n },\n {\n \"qbo\": \"CustomerCommunicationAddr\",\n \"support\": \"full\",\n \"note\": \"Desktop CompanyAddressForCustomer — an independent address, not a copy of CompanyAddr; absent if Desktop has none on file.\"\n },\n {\n \"qbo\": \"LegalAddr\",\n \"support\": \"full\",\n \"note\": \"Desktop LegalAddress.\"\n },\n {\n \"qbo\": \"PrimaryPhone\",\n \"support\": \"full\",\n \"note\": \"Desktop Phone.\"\n },\n {\n \"qbo\": \"Email\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"FiscalYearStartMonth\",\n \"support\": \"full\",\n \"note\": \"Desktop FirstMonthFiscalYear; both sides use English month names (live-verified \\\"January\\\").\"\n },\n {\n \"qbo\": \"WebAddr\",\n \"support\": \"full\",\n \"note\": \"Desktop CompanyWebSite as WebAddr.URI; absent when no website is on file.\"\n },\n {\n \"qbo\": \"CustomerCommunicationEmailAddr\",\n \"support\": \"full\",\n \"note\": \"Desktop CompanyEmailForCustomer as Address; absent when none is on file.\"\n },\n {\n \"qbo\": \"NameValue\",\n \"support\": \"partial\",\n \"note\": \"TaxForm and CompanyType only, as Name/Value pairs when present; EIN is never returned.\"\n },\n {\n \"qbo\": \"Country\",\n \"support\": \"full\",\n \"note\": \"Desktop Address.Country, passed through as free text — no normalization, and often blank on US company files.\"\n },\n {\n \"qbo\": \"CompanyStartDate\",\n \"support\": \"none\",\n \"note\": \"No Desktop CompanyRet equivalent — omitted rather than guessed at; never returned.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"SupportedLanguages\",\n \"support\": \"none\",\n \"note\": \"No Desktop CompanyRet equivalent — omitted rather than guessed at; never returned.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"DefaultTimeZone\",\n \"support\": \"none\",\n \"note\": \"No Desktop CompanyRet equivalent — omitted rather than guessed at; never returned.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"EmployerId\",\n \"support\": \"none\",\n \"note\": \"Desktop has an EIN, but TenkeyBridge deliberately does not expose it: it is sensitive and not needed to sync books. Never returned or accepted.\",\n \"error\": \"UNMAPPED_FIELD\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Create, update, or delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"CompanyInfo is read/query only — there is exactly one company record, and Desktop has no API to create or modify it.\"\n },\n {\n \"case\": \"Any WHERE clause, ORDERBY, COUNT(*), column list, or STARTPOSITION/MAXRESULTS\",\n \"error\": \"UNSUPPORTED_QUERY\",\n \"note\": \"CompanyQueryRq takes no filters and always returns the single open company record. Use SELECT * FROM CompanyInfo.\"\n }\n ]\n },\n \"CreditCardPayment\": {\n \"entity\": \"CreditCardPayment\",\n \"verdict\": \"gap\",\n \"group\": \"gaps\",\n \"read\": \"none\",\n \"write\": \"none\",\n \"headline\": \"QBO's 'pay down a credit card' transaction has no Desktop record of its own — Desktop books the same event as a Transfer or a Check against the card account, so there is nothing to project a CreditCardPayment from.\",\n \"fields\": [],\n \"unsupported\": [\n {\n \"case\": \"read\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"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.\",\n \"workaround\": \"Read the same events as Transfer (ToAccountRef = the credit card account) or as a Purchase of type Check. Both are live in TenkeyBridge.\"\n },\n {\n \"case\": \"query\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"No Desktop CreditCardPayment exists to query; card paydowns appear under Transfer or Purchase.\",\n \"workaround\": \"Query Transfer or Purchase and filter client-side by the credit card account.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"TenkeyBridge will not guess which Desktop transaction to create in place of a CreditCardPayment.\",\n \"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.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"No Desktop CreditCardPayment to update; update the Transfer or Purchase instead.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"No Desktop CreditCardPayment to delete; delete the Purchase instead (Transfer cannot be deleted through qbXML).\"\n }\n ]\n },\n \"CreditMemo\": {\n \"entity\": \"CreditMemo\",\n \"verdict\": \"live\",\n \"group\": \"sales\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Invoice twin — Balance and RemainingCredit both map from Desktop CreditRemaining\",\n \"fields\": [\n {\n \"qbo\": \"CustomerRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ClassRef\",\n \"support\": \"full\",\n \"note\": \"Header-level class (Desktop ClassRef, read and write). Line-level ClassRef is separate.\"\n },\n {\n \"qbo\": \"DepartmentRef\",\n \"support\": \"none\",\n \"note\": \"UNMAPPED_FIELD by default. With Departments from classes turned on for the company file, the gateway maps it to the header ClassRef (written to it, read from it); sending a different ClassRef as well is a 400.\",\n \"error\": \"UNMAPPED_FIELD\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the customer, so CurrencyRef is checked and then dropped: one that differs from the customer's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create. On a sparse update it is sent only when you change it; the update placement is not proven live.\"\n },\n {\n \"qbo\": \"HomeBalance\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop CreditRemainingInHomeCurrency. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"BillAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PONumber\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"SalesTermRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DueDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"CustomerMemo\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop CustomerMsgRef by FullName; the message must already exist as a Desktop customer message. Updatable via sparse update (#55).\"\n },\n {\n \"qbo\": \"ProjectRef\",\n \"support\": \"full\",\n \"note\": \"A Desktop job is a QBO project, so ProjectRef sets the transaction's customer to the job (send the job's Id or full name). If CustomerRef is sent too, the job wins, and nothing is looked up: the job already implies its parent customer. Read: when the customer is a job (its full name contains a colon), ProjectRef is returned with the same value and name as CustomerRef, which stays exactly as Desktop returns it. A QBO project is one level deep and a Desktop job can sit under another job, so ProjectRef here means any job.\"\n },\n {\n \"qbo\": \"EmailStatus\",\n \"support\": \"partial\",\n \"note\": \"Maps to Desktop IsToBeEmailed. NeedToSend writes true; NotSet and EmailSent write false, because Desktop only knows whether the form is still queued. Read: true is NeedToSend, false is NotSet. Desktop does not record that a form was sent, so EmailSent is never returned. Setting NeedToSend sends nothing by itself: it only queues the form in QuickBooks.\"\n },\n {\n \"qbo\": \"PrintStatus\",\n \"support\": \"partial\",\n \"note\": \"Maps to Desktop IsToBePrinted. NeedToPrint writes true; NotSet and PrintComplete write false. Read: true is NeedToPrint, false is NotSet. Desktop does not record that a form was printed, so PrintComplete is never returned.\"\n },\n {\n \"qbo\": \"BillEmail\",\n \"support\": \"partial\",\n \"note\": \"Accepted and not stored. Desktop sales forms have no email address of their own: QuickBooks sends a form to the customer's email address. BillEmailCc and BillEmailBcc are accepted and dropped the same way. They are never returned on read, so update the customer's PrimaryEmailAddr to change where forms go.\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"note\": \"Same DetailType support as Invoice: SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; DiscountLineDetail names a Desktop discount item by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount). With no ItemRef but a DiscountAccountRef, the gateway uses the one active discount item that posts to that account; none or several is MISSING_REQUIRED_DESKTOP_ITEM, and a discount item is never created for you. SubTotalLineDetail needs no ItemRef: the gateway uses the company's active subtotal item (the one named Subtotal if there are several, else the first), and only when there is none it creates an item named Subtotal (it has no account and posts nothing); a subtotal line is sent without Amount, Qty or Rate because Desktop computes the amount and refuses one. Other DetailTypes return UNSUPPORTED_BY_DESKTOP. Lines read back in Desktop's own order; a group line reads as GroupLineDetail with its component lines in GroupLineDetail.Line (each with its own Id) and the bundle total as Amount; a subtotal line reads as SubTotalLineDetail; 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. The Ids on a group's component lines (GroupLineDetail.Line[].Id) are read-only: they identify what was read and are not accepted as line Ids on a write.\"\n },\n {\n \"qbo\": \"TxnTaxDetail\",\n \"support\": \"partial\",\n \"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). On read, TaxLine carries a NetAmountTaxable that is derived, not read: the sum of the Tax-coded line Amounts (discount lines are not subtracted, verified live), returned only when it reproduces Desktop's SalesTaxTotal to the cent and omitted otherwise (custom tax codes, or a discount whose taxability is unknown). Updatable via sparse update (#55).\"\n },\n {\n \"qbo\": \"LinkedTxn\",\n \"support\": \"partial\",\n \"note\": \"Read-only; reflects applied payments/credits, ignored on write — same as QBO.\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only, mapped from Desktop TotalAmount.\"\n },\n {\n \"qbo\": \"Balance\",\n \"support\": \"full\",\n \"note\": \"Read-only remaining unapplied credit; mapped from Desktop CreditRemaining.\"\n },\n {\n \"qbo\": \"RemainingCredit\",\n \"support\": \"full\",\n \"note\": \"Read-only — total credit still available to apply. A distinct QBO field, not an alias of Balance; both map from Desktop's single CreditRemaining since Desktop has only the one figure.\"\n },\n {\n \"qbo\": \"ApplyTaxAfterDiscount\",\n \"support\": \"partial\",\n \"note\": \"Maps onto the discount line's own sales tax code, proven live on QuickBooks Enterprise 24: Tax is tax after the discount (true), Non is tax on the full amount (false). On write, true or false is never sent as a field; every discount line with no TaxCodeRef of its own is coded Tax or Non, and an explicit TAX or NON that contradicts the value is 400 (code 2010, element Line.DiscountLineDetail.TaxCodeRef). A custom tax code on a discount line wins. DiscountLineDetail.TaxCodeRef is written as that line's sales tax code. With no discount lines the value is accepted and does nothing. Read: present only when the form has discount lines and they are all Tax (true) or all Non (false); omitted when mixed. On a sparse update with no Line, a value equal to the current one is accepted; a different one is 422 UNSUPPORTED_BY_DESKTOP, so send the full Line array to change it. Any value that is not a boolean is 400 (code 2010).\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension: QBO cannot void a CreditMemo; QuickBooks Desktop can. POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType CreditMemo), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QuickBooks Enterprise 24 (2026-10-20). The re-read shows PrivateNote as `VOID: <memo>` (bare `VOID:` when there was none), TotalAmt, Balance and RemainingCredit at 0 and every line quantity and amount at 0, with the lines kept. A void does not reliably advance the SyncToken, so re-read the record instead of relying on it; voiding again is accepted. A credit memo that was applied to an invoice can be voided too: the credit is released, so the invoice's balance reopens by the credit that had been applied and its LinkedTxn drops the credit memo (the cash payment stays). The response is whatever Desktop returns on the re-read (nothing is fabricated).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"GET /{id}/pdf\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"qbXML cannot render or return a PDF of a transaction, so the route answers 422. Render the PDF from the JSON record in your own application.\"\n },\n {\n \"case\": \"POST /{id}/send (actually sending the email)\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"The route is queue-only: it sets EmailStatus NeedToSend (Desktop IsToBeEmailed) through a sparse update and returns the record, so the form lands in QuickBooks' To be e-mailed queue. TenkeyBridge sends no mail; QuickBooks sends the form to the customer's email address. sendTo is ignored (X-TKB-Warning says so). Desktop refuses the queue (3180) when the company file has no company email.\"\n },\n {\n \"case\": \"Line.DiscountLineDetail without an ItemRef or a single matching DiscountAccountRef item (bare-percentage or amount-off discounts)\",\n \"error\": \"MISSING_REQUIRED_DESKTOP_ITEM\",\n \"note\": \"Desktop discounts are items. Send DiscountAccountRef and the gateway uses the one active discount item that posts to that account; with no account, no match or several matches the call is refused and nothing is guessed, because a wrong item would post the discount to the wrong account. Create a discount item through the Item API (DesktopItemType Discount) or in QuickBooks (Lists > Item List > New > Discount) and pass it as DiscountLineDetail.ItemRef by value (ListID) or name (full name). See COMPATIBILITY.md.\"\n },\n {\n \"case\": \"Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"These line types do not map to QuickBooks Desktop sales transactions. Remove them or flatten to a supported DetailType. See COMPATIBILITY.md.\"\n },\n {\n \"case\": \"ApplyTaxAfterDiscount changed on a sparse update that carries no Line\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"On Desktop the value lives on each discount line's tax code, so it cannot change on its own. Send the full Line array in the same update.\"\n }\n ]\n },\n \"Customer\": {\n \"entity\": \"Customer\",\n \"verdict\": \"live\",\n \"group\": \"sales\",\n \"read\": \"full\",\n \"write\": \"full\",\n \"headline\": \"Sub-customer maps to Desktop Customer:Job\",\n \"fields\": [\n {\n \"qbo\": \"DisplayName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"CompanyName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Title\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"GivenName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"MiddleName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"FamilyName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrimaryEmailAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrimaryPhone\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"AlternatePhone\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Fax\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"BillAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Notes\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ParentRef\",\n \"support\": \"full\",\n \"note\": \"Becomes a Desktop Job under the parent; FullName is colon-delimited.\"\n },\n {\n \"qbo\": \"SalesTermRef\",\n \"support\": \"full\",\n \"note\": \"Desktop TermsRef.\"\n },\n {\n \"qbo\": \"CustomerTypeRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DefaultTaxCodeRef\",\n \"support\": \"full\",\n \"note\": \"Desktop SalesTaxCodeRef.\"\n },\n {\n \"qbo\": \"AcctNum\",\n \"support\": \"full\",\n \"note\": \"Desktop AccountNumber.\"\n },\n {\n \"qbo\": \"Balance\",\n \"support\": \"full\",\n \"note\": \"Read-only, as in QBO.\"\n },\n {\n \"qbo\": \"BalanceWithJobs\",\n \"support\": \"full\",\n \"note\": \"Read-only; Desktop TotalBalance.\"\n },\n {\n \"qbo\": \"FullyQualifiedName\",\n \"support\": \"full\",\n \"note\": \"Read-only, derived by Desktop.\"\n },\n {\n \"qbo\": \"Job\",\n \"support\": \"full\",\n \"note\": \"Read-only, derived by Desktop Sublevel.\"\n },\n {\n \"qbo\": \"IsProject\",\n \"support\": \"full\",\n \"note\": \"A QBO project is a sub-customer, and a Desktop job is the same thing, so IsProject reads true for any customer under a parent (Desktop Sublevel above 0), exactly like Job. On create or update IsProject: true needs ParentRef (400 2020 without one) and is not sent, because the parent already makes it a job; IsProject: false with a ParentRef is a contradiction (400 2010). select * from Customer where IsProject = true works. A Desktop job can sit under another job, so project here means any Desktop job; QBO projects are one level deep. Jobs are reachable from transactions through ProjectRef.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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).\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). Written on create and stored by Desktop (the currency must be active; activate it with CompanyCurrency). On update Desktop allows a change only while the customer has no transactions (proven live; otherwise Desktop refuses it, 400 code 2500). On a file with multicurrency off only USD is accepted (and dropped).\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Not a Desktop customer field. Accepted and ignored.\"\n },\n {\n \"qbo\": \"PreferredPaymentMethodRef\",\n \"support\": \"partial\",\n \"note\": \"Accepted and ignored — Desktop manages this itself; multi-currency mapping lands later.\"\n },\n {\n \"qbo\": \"PreferredDeliveryMethod\",\n \"support\": \"none\",\n \"note\": \"Desktop has no delivery-method preference. Remove the field from your payload.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"Taxable\",\n \"support\": \"none\",\n \"note\": \"Desktop customers have no taxable flag; set tax codes on transactions instead.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"PrintOnCheckName\",\n \"support\": \"none\",\n \"note\": \"Desktop CustomerRet has no PrintAs element (unlike Vendor/Employee).\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"Mobile\",\n \"support\": \"none\",\n \"note\": \"Desktop CustomerRet has no separate mobile-phone element beyond Phone/AltPhone/Fax.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"WebAddr\",\n \"support\": \"none\",\n \"note\": \"Desktop CustomerRet has no website element.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n }\n ],\n \"unsupported\": []\n },\n \"CustomerType\": {\n \"entity\": \"CustomerType\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"none\",\n \"headline\": \"Read/query only — QBO CustomerType is read-only via the API; Desktop hierarchy is not exposed\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Create, update or deactivate\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"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.\",\n \"workaround\": \"Create, rename or deactivate the type in QuickBooks Desktop itself; the change shows up on the next read.\"\n }\n ]\n },\n \"Department\": {\n \"entity\": \"Department\",\n \"verdict\": \"gap\",\n \"group\": \"gaps\",\n \"read\": \"none\",\n \"write\": \"none\",\n \"headline\": \"QuickBooks Desktop has no Department (location) list, so Department is unsupported by default. Opt in per company file with Departments from classes and Department becomes an alias of Class (DepartmentRef on a transaction becomes its header ClassRef).\",\n \"fields\": [\n {\n \"qbo\": \"Id\",\n \"support\": \"partial\",\n \"note\": \"Only with Departments from classes on: the Class ListID.\"\n },\n {\n \"qbo\": \"Name\",\n \"support\": \"partial\",\n \"note\": \"Only with Departments from classes on: the Class Name (31 characters max).\"\n },\n {\n \"qbo\": \"SubDepartment\",\n \"support\": \"partial\",\n \"note\": \"Only with Departments from classes on: read-only, true when the class has a parent.\"\n },\n {\n \"qbo\": \"ParentRef\",\n \"support\": \"partial\",\n \"note\": \"Only with Departments from classes on: the parent class.\"\n },\n {\n \"qbo\": \"FullyQualifiedName\",\n \"support\": \"partial\",\n \"note\": \"Only with Departments from classes on: the class full name (Parent:Child). Read-only.\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"partial\",\n \"note\": \"Only with Departments from classes on: class IsActive. Deactivate with Active:false.\"\n },\n {\n \"qbo\": \"SyncToken\",\n \"support\": \"partial\",\n \"note\": \"Only with Departments from classes on: the class EditSequence.\"\n },\n {\n \"qbo\": \"MetaData\",\n \"support\": \"partial\",\n \"note\": \"Only with Departments from classes on: class TimeCreated / TimeModified.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"read\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Off by default. Re-audited 2026-07-29 against the qbxmlops130 message set: qbXML has no Department or Location list (no Add/Mod/Query message pair). The tokens only appear as plain STRTYPE fields (Employee.Department, FixedAsset.Location, Lead.Location), which are annotations, not a queryable list.\",\n \"workaround\": \"Turn on Departments from classes for the company file (portal: company file page, Departments card; or PATCH /admin/v1/companies/{companyId}/settings with departmentsFromClasses: true). Department then reads your QuickBooks classes. See the Departments guide.\"\n },\n {\n \"case\": \"query\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Off by default: no Department list to query. With Departments from classes on, SELECT ... FROM Department is run against Class and answered as Department; DepartmentRef in a transaction query means its ClassRef.\",\n \"workaround\": \"Turn on Departments from classes, or query Class directly.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Off by default. With Departments from classes on, creating a Department creates a Class (ParentRef makes it a sub-class).\",\n \"workaround\": \"Turn on Departments from classes, or create a Class.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Off by default. With Departments from classes on, an update edits the Class (sparse; Name, Active, ParentRef).\",\n \"workaround\": \"Turn on Departments from classes, or update the Class.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Always unsupported: a Desktop class cannot be deleted through qbXML. Deactivate with Active:false.\"\n },\n {\n \"case\": \"DepartmentRef on a transaction\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"With Departments from classes on it maps to the header ClassRef on Invoice, SalesReceipt, Estimate, CreditMemo, PurchaseOrder and TimeActivity. Sending a different ClassRef as well is a 400. Bill, Purchase, VendorCredit, JournalEntry, Deposit, RefundReceipt and Transfer have no header class in QuickBooks Desktop (class lives on the lines), so DepartmentRef there is a 422 that says to set ClassRef per line. Off: UNMAPPED_FIELD.\",\n \"workaround\": \"Set ClassRef on each line for those transactions.\"\n }\n ]\n },\n \"Deposit\": {\n \"entity\": \"Deposit\",\n \"verdict\": \"live\",\n \"group\": \"banking\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Undeposited Funds → bank via LinkedTxn or manual DepositLineDetail\",\n \"fields\": [\n {\n \"qbo\": \"DepositToAccountRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"note\": \"Write: LinkedTxn (PaymentTxnID path) for undeposited payments, or DepositLineDetail{Entity, AccountRef, PaymentMethodRef, CheckNum} for a manual line — 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 — 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 is updated through the CashBack field, not Line. 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.\"\n },\n {\n \"qbo\": \"CashBack\",\n \"support\": \"partial\",\n \"note\": \"Create and read map to Desktop CashBackInfo. An update that changes CashBack sends one CashBackInfoMod built from the current record with your AccountRef, Memo and Amount laid over it; an update that echoes the current CashBack unchanged sends nothing. CashBack: null removes it by setting its Amount to 0.00, and a read treats a cash back at 0.00 as none (Desktop keeps the element at 0.00 and the deposit total returns to the lines). Adding cash back to a deposit that has none is 422 UNSUPPORTED_BY_DESKTOP: Desktop cannot add cash back to an existing deposit, so re-create it. Verified live on QuickBooks Enterprise 24 (2026-10-15).\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only from Desktop DepositTotal.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). Written on create and stored by Desktop. The currency must be active (400 otherwise; activate it with CompanyCurrency) and must equal the currency of DepositToAccountRef: Desktop does not check this, so TenkeyBridge does (400, code 2010). Send DepositToAccountRef with CurrencyRef on update. On a file with multicurrency off only USD is accepted (and dropped). Changing CurrencyRef on update is not proven live.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create. On a sparse update it is sent only when you change it; the update placement is not proven live.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop DepositTotalInHomeCurrency. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension: QBO cannot void a Deposit; QuickBooks Desktop can. POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType Deposit), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QuickBooks Enterprise 24 (2026-10-15). The re-read shows PrivateNote as `VOID: <memo>` and TotalAmt and every line Amount at 0.00 with the lines kept. A void does not reliably advance the SyncToken, so re-read the record instead of relying on it; voiding again is accepted. The response is whatever Desktop returns on the re-read (nothing is fabricated).\"\n }\n ],\n \"unsupported\": []\n },\n \"Employee\": {\n \"entity\": \"Employee\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"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; pay rates and other payroll fields out of scope\",\n \"fields\": [\n {\n \"qbo\": \"GivenName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"MiddleName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"FamilyName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Suffix\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DisplayName\",\n \"support\": \"partial\",\n \"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).\"\n },\n {\n \"qbo\": \"PrintOnCheckName\",\n \"support\": \"full\",\n \"note\": \"Desktop PrintAs.\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\",\n \"note\": \"Deactivate with a sparse update of Active:false. QBO deactivates employees rather than deleting them, and so does TenkeyBridge, even though Desktop can delete an employee that has no transactions.\"\n },\n {\n \"qbo\": \"PrimaryPhone\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Mobile\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrimaryEmailAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrimaryAddr\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"HiredDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ReleasedDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"BirthDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Gender\",\n \"support\": \"full\",\n \"note\": \"Male or Female.\"\n },\n {\n \"qbo\": \"SSN\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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).\"\n },\n {\n \"qbo\": \"EmployeeNumber\",\n \"support\": \"full\",\n \"note\": \"Desktop AccountNumber (the Account No. field on the employee record), up to 99 characters. Verified live on QuickBooks Enterprise 24 (2026-10-15).\"\n },\n {\n \"qbo\": \"TargetBonus\",\n \"support\": \"full\",\n \"note\": \"Desktop TargetBonus, a money amount. Accepted on create and update without a payroll subscription (verified live on QuickBooks Enterprise 24, 2026-10-15); Desktop's create response omits it but reads return it.\"\n },\n {\n \"qbo\": \"AdditionalContactRef\",\n \"support\": \"none\",\n \"note\": \"Desktop AdditionalContactRef has no honest QBO Employee field; omitted rather than guessed at.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"QBO employees are deactivated, not deleted. Desktop can delete an employee with no transactions, but TenkeyBridge keeps deactivate-only to match QBO (sparse update with Active:false).\"\n },\n {\n \"case\": \"Payroll fields\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Pay rates, pay periods, wage items and other EmployeePayrollInfo content are license-gated in Desktop and not exposed for read or write.\"\n }\n ]\n },\n \"Entitlements\": {\n \"entity\": \"Entitlements\",\n \"verdict\": \"live\",\n \"group\": \"platform\",\n \"read\": \"partial\",\n \"write\": \"none\",\n \"headline\": \"GET /v3/company/{companyId}/entitlements — a static, honest capability document for a QuickBooks Desktop company (no per-file subscription data).\",\n \"usage\": \"GET /v3/company/{companyId}/entitlements\",\n \"fields\": [\n {\n \"qbo\": \"Entitlements.platform\",\n \"support\": \"full\",\n \"note\": \"Always \\\"QuickBooks Desktop\\\" — TenkeyBridge talks to Desktop, never to a QBO subscription.\"\n },\n {\n \"qbo\": \"Entitlements.features\",\n \"support\": \"partial\",\n \"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.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"QBO subscription tier, seats and add-ons\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop has no subscription entitlements exposed over qbXML; the response says so explicitly rather than inventing values.\"\n }\n ]\n },\n \"Estimate\": {\n \"entity\": \"Estimate\",\n \"verdict\": \"live\",\n \"group\": \"sales\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Same shape as Invoice; expiration date and active/closed status, no acceptance tracking\",\n \"fields\": [\n {\n \"qbo\": \"CustomerRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ClassRef\",\n \"support\": \"full\",\n \"note\": \"Header-level class (Desktop ClassRef, read and write). Line-level ClassRef is separate.\"\n },\n {\n \"qbo\": \"DepartmentRef\",\n \"support\": \"none\",\n \"note\": \"UNMAPPED_FIELD by default. With Departments from classes turned on for the company file, the gateway maps it to the header ClassRef (written to it, read from it); sending a different ClassRef as well is a 400.\",\n \"error\": \"UNMAPPED_FIELD\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"BillAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PONumber\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"SalesTermRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DueDate\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"ExpirationDate\",\n \"support\": \"full\",\n \"note\": \"Maps to the Desktop estimate DueDate. Read and write.\"\n },\n {\n \"qbo\": \"TxnStatus\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"CustomerMemo\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop CustomerMsgRef by FullName; the message must already exist as a Desktop customer message. Updatable via sparse update (#55).\"\n },\n {\n \"qbo\": \"ProjectRef\",\n \"support\": \"full\",\n \"note\": \"A Desktop job is a QBO project, so ProjectRef sets the transaction's customer to the job (send the job's Id or full name). If CustomerRef is sent too, the job wins, and nothing is looked up: the job already implies its parent customer. Read: when the customer is a job (its full name contains a colon), ProjectRef is returned with the same value and name as CustomerRef, which stays exactly as Desktop returns it. A QBO project is one level deep and a Desktop job can sit under another job, so ProjectRef here means any job.\"\n },\n {\n \"qbo\": \"EmailStatus\",\n \"support\": \"partial\",\n \"note\": \"Maps to Desktop IsToBeEmailed. NeedToSend writes true; NotSet and EmailSent write false, because Desktop only knows whether the form is still queued. Read: true is NeedToSend, false is NotSet. Desktop does not record that a form was sent, so EmailSent is never returned. Setting NeedToSend sends nothing by itself: it only queues the form in QuickBooks.\"\n },\n {\n \"qbo\": \"PrintStatus\",\n \"support\": \"none\",\n \"note\": \"Desktop estimates have no to-be-printed flag. NotSet (the QBO default) is accepted and sends nothing; NeedToPrint and PrintComplete are refused with UNSUPPORTED_BY_DESKTOP. Never returned on read.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"BillEmail\",\n \"support\": \"partial\",\n \"note\": \"Accepted and not stored. Desktop sales forms have no email address of their own: QuickBooks sends a form to the customer's email address. BillEmailCc and BillEmailBcc are accepted and dropped the same way. They are never returned on read, so update the customer's PrimaryEmailAddr to change where forms go.\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"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 names a Desktop discount item by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount). With no ItemRef but a DiscountAccountRef, the gateway uses the one active discount item that posts to that account; none or several is MISSING_REQUIRED_DESKTOP_ITEM, and a discount item is never created for you. SubTotalLineDetail needs no ItemRef: the gateway uses the company's active subtotal item (the one named Subtotal if there are several, else the first), and only when there is none it creates an item named Subtotal (it has no account and posts nothing); a subtotal line is sent without Amount, Qty or Rate because Desktop computes the amount and refuses one. Other DetailTypes return UNSUPPORTED_BY_DESKTOP. Lines read back in Desktop's own order; a group line reads as GroupLineDetail with its component lines in GroupLineDetail.Line (each with its own Id) and the bundle total as Amount; a subtotal line reads as SubTotalLineDetail; 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. The Ids on a group's component lines (GroupLineDetail.Line[].Id) are read-only: they identify what was read and are not accepted as line Ids on a write.\"\n },\n {\n \"qbo\": \"TxnTaxDetail\",\n \"support\": \"partial\",\n \"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 is derived, not read: the sum of the Tax-coded line Amounts (discount lines are not subtracted, verified live), returned only when it reproduces Desktop's SalesTaxTotal to the cent and omitted otherwise (custom tax codes, or a discount whose taxability is unknown). Updatable via sparse update (#55).\"\n },\n {\n \"qbo\": \"LinkedTxn\",\n \"support\": \"full\",\n \"note\": \"Populated on read from LinkedTxn (IncludeLinkedTxns automatic) — progress-invoicing links when present. Links to Desktop-only transaction types (SalesOrder, ItemReceipt, …) are omitted rather than guessed at. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only, computed by Desktop as Subtotal + SalesTaxTotal (not independently verified live — see issue #38 report).\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the customer, so CurrencyRef is checked and then dropped: one that differs from the customer's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create. On a sparse update it is sent only when you change it; the update placement is not proven live.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop TotalAmountInHomeCurrency. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"AcceptedBy\",\n \"support\": \"none\",\n \"note\": \"Desktop estimates have no accepted-by field. Track acceptance in your own system.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"AcceptedDate\",\n \"support\": \"none\",\n \"note\": \"Desktop estimates have no accepted-date field. Track acceptance in your own system.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"ApplyTaxAfterDiscount\",\n \"support\": \"partial\",\n \"note\": \"Maps onto the discount line's own sales tax code, proven live on QuickBooks Enterprise 24: Tax is tax after the discount (true), Non is tax on the full amount (false). On write, true or false is never sent as a field; every discount line with no TaxCodeRef of its own is coded Tax or Non, and an explicit TAX or NON that contradicts the value is 400 (code 2010, element Line.DiscountLineDetail.TaxCodeRef). A custom tax code on a discount line wins. DiscountLineDetail.TaxCodeRef is written as that line's sales tax code. With no discount lines the value is accepted and does nothing. Read: present only when the form has discount lines and they are all Tax (true) or all Non (false); omitted when mixed. On a sparse update with no Line, a value equal to the current one is accepted; a different one is 422 UNSUPPORTED_BY_DESKTOP, so send the full Line array to change it. Any value that is not a boolean is 400 (code 2010).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"GET /{id}/pdf\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"qbXML cannot render or return a PDF of a transaction, so the route answers 422. Render the PDF from the JSON record in your own application.\"\n },\n {\n \"case\": \"POST /{id}/send (actually sending the email)\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"The route is queue-only: it sets EmailStatus NeedToSend (Desktop IsToBeEmailed) through a sparse update and returns the record, so the form lands in QuickBooks' To be e-mailed queue. TenkeyBridge sends no mail; QuickBooks sends the form to the customer's email address. sendTo is ignored (X-TKB-Warning says so). Desktop refuses the queue (3180) when the company file has no company email.\"\n },\n {\n \"case\": \"Line.DiscountLineDetail without an ItemRef or a single matching DiscountAccountRef item (bare-percentage or amount-off discounts)\",\n \"error\": \"MISSING_REQUIRED_DESKTOP_ITEM\",\n \"note\": \"Desktop discounts are items. Send DiscountAccountRef and the gateway uses the one active discount item that posts to that account; with no account, no match or several matches the call is refused and nothing is guessed, because a wrong item would post the discount to the wrong account. Create a discount item through the Item API (DesktopItemType Discount) or in QuickBooks (Lists > Item List > New > Discount) and pass it as DiscountLineDetail.ItemRef by value (ListID) or name (full name). See COMPATIBILITY.md.\"\n },\n {\n \"case\": \"Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"These line types do not map to QuickBooks Desktop sales transactions. Remove them or flatten to a supported DetailType. See COMPATIBILITY.md.\"\n },\n {\n \"case\": \"ApplyTaxAfterDiscount changed on a sparse update that carries no Line\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"On Desktop the value lives on each discount line's tax code, so it cannot change on its own. Send the full Line array in the same update.\"\n }\n ]\n },\n \"ExchangeRate\": {\n \"entity\": \"ExchangeRate\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"partial\",\n \"write\": \"none\",\n \"headline\": \"Projected from CurrencyRet.ExchangeRate + AsOfDate, plus QBO's keyed lookup; one row per currency that carries a rate; empty when multicurrency is off (statusCode 3250, confirmed live, and 3170 both normalized to [])\",\n \"fields\": [\n {\n \"qbo\": \"SourceCurrencyCode\",\n \"support\": \"full\",\n \"note\": \"Desktop CurrencyCode on the same CurrencyRet.\"\n },\n {\n \"qbo\": \"Rate\",\n \"support\": \"full\",\n \"note\": \"Desktop ExchangeRate.\"\n },\n {\n \"qbo\": \"AsOfDate\",\n \"support\": \"full\",\n \"note\": \"Desktop AsOfDate when present; omitted when Desktop has none.\"\n },\n {\n \"qbo\": \"TargetCurrencyCode\",\n \"support\": \"full\",\n \"note\": \"The company file's home currency as an ISO code, read from Preferences through the currency book. Omitted when the home currency cannot be determined; never invented.\"\n },\n {\n \"qbo\": \"keyed lookup\",\n \"support\": \"full\",\n \"note\": \"GET /exchangerate?sourcecurrencycode=CAD[&asofdate=2026-10-19] answers the current rate with TargetCurrencyCode. The home currency answers Rate 1 with AsOfDate = asofdate or today. An unknown currency code, or a currency with no rate, is 400 code 610. A missing sourcecurrencycode is 400 code 2020.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Keyed lookup with asofdate before the stored AsOfDate\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"QuickBooks Desktop keeps only the latest exchange rate per currency, so a date earlier than the stored AsOfDate cannot be answered (400). A date on or after it answers the stored rate. On a file with multicurrency off the lookup is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"case\": \"Create, update, or delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"ExchangeRate is read and query only. Desktop keeps one rate per currency on the currency list and CurrencyMod cannot change it (the request fails to parse), so a rate is set in QuickBooks. A transaction can carry its own rate: see ExchangeRate on the sales and purchase forms.\"\n },\n {\n \"case\": \"Currencies without ExchangeRate on CurrencyRet\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Projection skips CurrencyRets that do not carry ExchangeRate (home currency rows often omit it).\"\n }\n ]\n },\n \"InventoryAdjustment\": {\n \"entity\": \"InventoryAdjustment\",\n \"verdict\": \"live\",\n \"group\": \"purchasing\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Quantity and value adjustments to inventory items: create (by difference, to an absolute quantity or value, or with your own value), read, update (header and lines) and delete\",\n \"fields\": [\n {\n \"qbo\": \"AdjustAccountRef\",\n \"support\": \"full\",\n \"note\": \"Desktop AccountRef, the adjustment (offset) account. Required on create.\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"note\": \"Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050).\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\",\n \"note\": \"Desktop Memo.\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"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; quantity on hand changes by exactly that amount, verified live. The absolute forms are TenkeyBridge extensions inside ItemAdjustmentLineDetail (QBO only has the QtyDiff delta), create only: NewQty is the quantity on hand AFTER the adjustment (a number of at least 0, at most 5 decimal places; Desktop QuantityAdjustment/NewQuantity). NewValue is the item's TOTAL inventory value after the adjustment (not a unit cost; at most 2 decimal places; Desktop ValueAdjustment/NewValue). Send NewQty alone, NewValue alone (quantity unchanged, QtyDiff reads 0) or both; QtyDiff next to either is a 400 (2010) because Desktop silently ignores NewValue beside a quantity difference. A read never returns NewQty or NewValue, only the resulting QtyDiff and Amount. Proven live on QuickBooks Enterprise 24 (2026-10-20): NewQty 55 on a 50-unit item at average cost 18.00 reads QtyDiff 5, Amount 90.00; NewValue 123.45 on 55 units worth 990.00 reads Amount -866.55 and moves the average cost, and deleting the adjustment reverses it. The same item on two lines is refused (Desktop rejects it). Desktop's ValueDifference is Line.Amount, the value change of the line (the Ret line is flat QuantityDifference/ValueDifference). Without an Amount Desktop computes it as the quantity change times the item's average cost; Line.Amount sets it yourself (proven live 2026-10-21): QtyDiff with Amount, NewQty with Amount, or Amount alone (a value-only line, QtyDiff reads 0). Amount takes at most 2 decimals and cannot be combined with NewValue (both set the value; 400, 2010). A negative Amount is accepted only on a value-only line: next to a quantity decrease Desktop silently ignores it and prices the units at average cost, and next to an increase it refuses it (3210), so the gateway answers 400 (2010) up front. A positive Amount next to a quantity decrease is honored, and 0.00 next to a quantity is honored. Line.Description cannot be written (Desktop has no line memo). Update: Line is the WHOLE table, as in QBO. A line sent with its Id keeps that line (QtyDiff changes it), a line with no Id is added, and a line you leave out is deleted. Omit Line to leave every line alone; an empty array is refused (2020), and a repeated or unknown Id is refused (2010). Posting a read back whole works: an Amount on an existing line that equals the value the read returned is ignored. A different Amount is sent as ValueDifference, alone (the quantity is kept) or with a new QtyDiff. Desktop remembers whether a value was set explicitly: a QtyDiff-only update re-prices a computed value at average cost but keeps an explicit Amount. A value-only line (no quantity change) can be updated with a new Amount, or given a QtyDiff and an Amount; sent unchanged it is kept as it is.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). Writes are accepted and ignored. On a single-currency file a CurrencyRef other than USD or an ExchangeRate other than 1 is refused (400 UNSUPPORTED_BY_DESKTOP).\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only. Writes are accepted and ignored. On a single-currency file a CurrencyRef other than USD or an ExchangeRate other than 1 is refused (400 UNSUPPORTED_BY_DESKTOP).\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension: QBO cannot void an InventoryAdjustment; QuickBooks Desktop can. POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType InventoryAdjustment), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QuickBooks Enterprise 24 (2026-10-15). The re-read shows PrivateNote as `VOID: <memo>` and every line quantity change and value change at 0. The void reverses the stock effect, so the item QuantityOnHand returns to its value before the adjustment. A void does not reliably advance the SyncToken, so re-read the record instead of relying on it; voiding again is accepted. The response is whatever Desktop returns on the re-read (nothing is fabricated).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"NewQty or NewValue on an update line\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop's InventoryAdjustmentLineMod only has QuantityDifference and ValueDifference, so the absolute forms work on create only. To change an existing line send QtyDiff.\"\n },\n {\n \"case\": \"QtyDiff together with NewQty or NewValue on the same line\",\n \"error\": \"2010\",\n \"note\": \"Refused up front: Desktop silently ignores NewValue next to a quantity difference, and NewQty contradicts it. Send QtyDiff alone, or NewQty and/or NewValue.\"\n }\n ]\n },\n \"Invoice\": {\n \"entity\": \"Invoice\",\n \"verdict\": \"live\",\n \"group\": \"sales\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Line model, tax, discount, linked txns, and custom fields\",\n \"fields\": [\n {\n \"qbo\": \"CustomerRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ClassRef\",\n \"support\": \"full\",\n \"note\": \"Header-level class (Desktop ClassRef, read and write). Line-level ClassRef is separate.\"\n },\n {\n \"qbo\": \"DepartmentRef\",\n \"support\": \"none\",\n \"note\": \"UNMAPPED_FIELD by default. With Departments from classes turned on for the company file, the gateway maps it to the header ClassRef (written to it, read from it); sending a different ClassRef as well is a 400.\",\n \"error\": \"UNMAPPED_FIELD\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"BillAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipMethodRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PONumber\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"SalesTermRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DueDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"CustomerMemo\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop CustomerMsgRef by FullName; the message must already exist as a Desktop customer message. Updatable via sparse update (#55).\"\n },\n {\n \"qbo\": \"ProjectRef\",\n \"support\": \"full\",\n \"note\": \"A Desktop job is a QBO project, so ProjectRef sets the transaction's customer to the job (send the job's Id or full name). If CustomerRef is sent too, the job wins, and nothing is looked up: the job already implies its parent customer. Read: when the customer is a job (its full name contains a colon), ProjectRef is returned with the same value and name as CustomerRef, which stays exactly as Desktop returns it. A QBO project is one level deep and a Desktop job can sit under another job, so ProjectRef here means any job.\"\n },\n {\n \"qbo\": \"EmailStatus\",\n \"support\": \"partial\",\n \"note\": \"Maps to Desktop IsToBeEmailed. NeedToSend writes true; NotSet and EmailSent write false, because Desktop only knows whether the form is still queued. Read: true is NeedToSend, false is NotSet. Desktop does not record that a form was sent, so EmailSent is never returned. Setting NeedToSend sends nothing by itself: it only queues the form in QuickBooks.\"\n },\n {\n \"qbo\": \"PrintStatus\",\n \"support\": \"partial\",\n \"note\": \"Maps to Desktop IsToBePrinted. NeedToPrint writes true; NotSet and PrintComplete write false. Read: true is NeedToPrint, false is NotSet. Desktop does not record that a form was printed, so PrintComplete is never returned.\"\n },\n {\n \"qbo\": \"BillEmail\",\n \"support\": \"partial\",\n \"note\": \"Accepted and not stored. Desktop sales forms have no email address of their own: QuickBooks sends a form to the customer's email address. BillEmailCc and BillEmailBcc are accepted and dropped the same way. They are never returned on read, so update the customer's PrimaryEmailAddr to change where forms go.\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"note\": \"SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail names a Desktop discount item by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount). With no ItemRef but a DiscountAccountRef, the gateway uses the one active discount item that posts to that account; none or several is MISSING_REQUIRED_DESKTOP_ITEM, and a discount item is never created for you. SubTotalLineDetail needs no ItemRef: the gateway uses the company's active subtotal item (the one named Subtotal if there are several, else the first), and only when there is none it creates an item named Subtotal (it has no account and posts nothing); a subtotal line is sent without Amount, Qty or Rate because Desktop computes the amount and refuses one. Other DetailTypes return UNSUPPORTED_BY_DESKTOP. Lines read back in Desktop's own order; a group line reads as GroupLineDetail with its component lines in GroupLineDetail.Line (each with its own Id) and the bundle total as Amount; a subtotal line reads as SubTotalLineDetail; 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. The Ids on a group's component lines (GroupLineDetail.Line[].Id) are read-only: they identify what was read and are not accepted as line Ids on a write.\"\n },\n {\n \"qbo\": \"TxnTaxDetail\",\n \"support\": \"partial\",\n \"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 derived, not read: the sum of the Tax-coded line Amounts (discount lines are not subtracted, verified live), returned only when it reproduces Desktop's SalesTaxTotal to the cent and omitted otherwise (custom tax codes, or a discount whose taxability is unknown). Updatable via sparse update (#55).\"\n },\n {\n \"qbo\": \"LinkedTxn\",\n \"support\": \"full\",\n \"note\": \"Populated on read from LinkedTxn when IncludeLinkedTxns is requested (automatic). Desktop ReceivePayment → QBO Payment; links to Desktop-only transaction types (SalesOrder, ItemReceipt, …) are omitted rather than guessed at. Accepted and ignored on write — same as QBO treats it as read-only.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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).\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only, computed by Desktop as Subtotal + SalesTaxTotal.\"\n },\n {\n \"qbo\": \"Balance\",\n \"support\": \"full\",\n \"note\": \"Read-only, computed by Desktop as BalanceRemaining.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the customer, so CurrencyRef is checked and then dropped: one that differs from the customer's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create and on update (changing only the rate). On a sparse update it is sent only when you change it.\"\n },\n {\n \"qbo\": \"HomeBalance\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop BalanceRemainingInHomeCurrency. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"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).\"\n },\n {\n \"qbo\": \"ApplyTaxAfterDiscount\",\n \"support\": \"partial\",\n \"note\": \"Maps onto the discount line's own sales tax code, proven live on QuickBooks Enterprise 24: Tax is tax after the discount (true), Non is tax on the full amount (false). On write, true or false is never sent as a field; every discount line with no TaxCodeRef of its own is coded Tax or Non, and an explicit TAX or NON that contradicts the value is 400 (code 2010, element Line.DiscountLineDetail.TaxCodeRef). A custom tax code on a discount line wins. DiscountLineDetail.TaxCodeRef is written as that line's sales tax code. With no discount lines the value is accepted and does nothing. Read: present only when the form has discount lines and they are all Tax (true) or all Non (false); omitted when mixed. On a sparse update with no Line, a value equal to the current one is accepted; a different one is 422 UNSUPPORTED_BY_DESKTOP, so send the full Line array to change it. Any value that is not a boolean is 400 (code 2010).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"GET /{id}/pdf\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"qbXML cannot render or return a PDF of a transaction, so the route answers 422. Render the PDF from the JSON record in your own application.\"\n },\n {\n \"case\": \"POST /{id}/send (actually sending the email)\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"The route is queue-only: it sets EmailStatus NeedToSend (Desktop IsToBeEmailed) through a sparse update and returns the record, so the form lands in QuickBooks' To be e-mailed queue. TenkeyBridge sends no mail; QuickBooks sends the form to the customer's email address. sendTo is ignored (X-TKB-Warning says so). Desktop refuses the queue (3180) when the company file has no company email.\"\n },\n {\n \"case\": \"Line.DiscountLineDetail without an ItemRef or a single matching DiscountAccountRef item (bare-percentage or amount-off discounts)\",\n \"error\": \"MISSING_REQUIRED_DESKTOP_ITEM\",\n \"note\": \"Desktop discounts are items. Send DiscountAccountRef and the gateway uses the one active discount item that posts to that account; with no account, no match or several matches the call is refused and nothing is guessed, because a wrong item would post the discount to the wrong account. Create a discount item through the Item API (DesktopItemType Discount) or in QuickBooks (Lists > Item List > New > Discount) and pass it as DiscountLineDetail.ItemRef by value (ListID) or name (full name). See COMPATIBILITY.md.\"\n },\n {\n \"case\": \"Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"These line types do not map to QuickBooks Desktop sales transactions. Remove them or flatten to a supported DetailType. See COMPATIBILITY.md.\"\n },\n {\n \"case\": \"ApplyTaxAfterDiscount changed on a sparse update that carries no Line\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"On Desktop the value lives on each discount line's tax code, so it cannot change on its own. Send the full Line array in the same update.\"\n }\n ]\n },\n \"Item\": {\n \"entity\": \"Item\",\n \"verdict\": \"live\",\n \"group\": \"sales\",\n \"read\": \"partial\",\n \"write\": \"partial\",\n \"headline\": \"One Item becomes several Desktop item types\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"full\",\n \"note\": \"Desktop item Name is the leaf name (max 31 characters); FullyQualifiedName is derived.\"\n },\n {\n \"qbo\": \"FullyQualifiedName\",\n \"support\": \"full\",\n \"note\": \"Read-only; derived from the Desktop FullName. Echoed values on update are ignored.\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\",\n \"note\": \"Deactivate with a sparse update setting Active to false; items are never deleted.\"\n },\n {\n \"qbo\": \"Type\",\n \"support\": \"partial\",\n \"note\": \"Service, NonInventory, Inventory and Group read and write. Every Desktop item type reads, in get-by-id and in query results, with the nearest QBO Type and a read-only DesktopItemType: inventory assemblies read as Inventory, fixed assets as NonInventory, and other-charge, discount, subtotal, payment, sales tax and sales tax group items as Service. Type cannot change after creation. Category has no Desktop equivalent.\"\n },\n {\n \"qbo\": \"DesktopItemType\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension (QBO has no such field). Read on every item: Service, NonInventory, Inventory, InventoryAssembly, FixedAsset, OtherCharge, Discount, Subtotal, Payment, SalesTax, SalesTaxGroup or Group. It is also the write selector for the families QBO has no Type for: Discount, OtherCharge, Subtotal, Payment, InventoryAssembly and FixedAsset (send it with the matching Type: Service for the first four, Inventory for InventoryAssembly, NonInventory for FixedAsset). A value that disagrees with Type, or one that tries to change on update, is a 400 with code 2010. FixedAsset is written with Type NonInventory (the same pair a read returns); see the fixed asset rows below. SalesTax and SalesTaxGroup items cannot be written through the Item API (write a sales tax item through POST /taxrate and a sales tax group through POST /taxservice/taxcode).\"\n },\n {\n \"qbo\": \"ItemGroupDetail\",\n \"support\": \"full\",\n \"note\": \"Group items, in QBO's bundle shape: ItemGroupDetail.ItemGroupLine[{ItemRef, Qty}]. A TenkeyBridge write extension, since QBO itself cannot create bundles. A line with Qty omitted is sent with Qty 1. A create needs at least one line. On update, sending ItemGroupDetail replaces the whole component list (post back every line you want to keep); a sparse update that does not carry it, such as a rename, leaves the components alone; an explicitly empty ItemGroupLine array empties the group.\"\n },\n {\n \"qbo\": \"PrintGroupedItems\",\n \"support\": \"full\",\n \"note\": \"TenkeyBridge extension. Group items only: whether the component lines print on a transaction (Desktop IsPrintItemsInGroup).\"\n },\n {\n \"qbo\": \"ItemAssemblyDetail\",\n \"support\": \"full\",\n \"note\": \"TenkeyBridge extension (inventory assemblies are a Desktop concept): ItemAssemblyDetail.ItemAssemblyLine[{ItemRef, Qty}], with the same rules as ItemGroupDetail (Qty omitted means 1). Create with Type Inventory and DesktopItemType InventoryAssembly plus the Inventory fields (IncomeAccountRef, ExpenseAccountRef, AssetAccountRef).\"\n },\n {\n \"qbo\": \"DiscountPercent\",\n \"support\": \"full\",\n \"note\": \"TenkeyBridge extension. Discount items: a percentage discount (for example 10 for ten percent). Send it or UnitPrice (a flat amount), not both. A discount item needs IncomeAccountRef on create.\"\n },\n {\n \"qbo\": \"DepositToAccountRef\",\n \"support\": \"full\",\n \"note\": \"TenkeyBridge extension. Payment items: the account the payment is deposited to. On update an omitted value keeps the stored account; null resets it to Undeposited Funds.\"\n },\n {\n \"qbo\": \"PaymentMethodRef\",\n \"support\": \"full\",\n \"note\": \"TenkeyBridge extension. Payment items: the payment method.\"\n },\n {\n \"qbo\": \"TaxRate\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension. Read only, on SalesTax items: the rate as a percentage. Write sales tax items through the TaxRate endpoint (POST /taxrate) and sales tax groups through POST /taxservice/taxcode.\"\n },\n {\n \"qbo\": \"AgencyRef\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension. Read only, on SalesTax items: the tax agency vendor.\"\n },\n {\n \"qbo\": \"TaxRateRefs\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension. Read only, on SalesTaxGroup items: the member tax items.\"\n },\n {\n \"qbo\": \"PurchaseDate\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension. Fixed asset items only (any other item type is a 400, code 2010). The date the asset was bought (YYYY-MM-DD). Required on create (Desktop requires it); read back as sent.\"\n },\n {\n \"qbo\": \"AcquiredAs\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension. Fixed asset items only: New or Old (default New on create). Desktop requires it, so a create always sends it.\"\n },\n {\n \"qbo\": \"VendorOrPayeeName\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension. Fixed asset items only: who the asset was bought from (text, max 50 characters).\"\n },\n {\n \"qbo\": \"Location\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension. Fixed asset items only: where the asset is kept (max 50 characters).\"\n },\n {\n \"qbo\": \"SerialNumber\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension. Fixed asset items only (max 30 characters).\"\n },\n {\n \"qbo\": \"Description\",\n \"support\": \"full\",\n \"note\": \"Desktop sales description: SalesOrPurchase/Desc, SalesAndPurchase/SalesDesc, or SalesDesc on Inventory. On a fixed asset item it is the asset description (AssetDesc, max 50 characters), read as the purchase description when the asset has none.\"\n },\n {\n \"qbo\": \"UnitPrice\",\n \"support\": \"full\",\n \"note\": \"Desktop sales price. Sent with up to five decimals. On a Desktop discount item a flat rate reads as UnitPrice and a percentage discount reads as DiscountPercent; both can be written on a discount item. On other-charge items it is the flat amount.\"\n },\n {\n \"qbo\": \"Sku\",\n \"support\": \"partial\",\n \"note\": \"QBO Sku maps to Desktop ManufacturerPartNumber (max 31 characters) — 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.\"\n },\n {\n \"qbo\": \"TrackQtyOnHand\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"QtyOnHand\",\n \"support\": \"partial\",\n \"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. QuantityOnHand on an Inventory or assembly create posts an opening-balance inventory adjustment in QuickBooks (dated the create day, Opening Balance Equity), and the item cannot be deleted until that adjustment is deleted. The sandbox does not emulate that adjustment.\"\n },\n {\n \"qbo\": \"InvStartDate\",\n \"support\": \"partial\",\n \"note\": \"Write-only, create only (Desktop InventoryDate). Not returned on read.\"\n },\n {\n \"qbo\": \"IncomeAccountRef\",\n \"support\": \"full\",\n \"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).\"\n },\n {\n \"qbo\": \"ExpenseAccountRef\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"AssetAccountRef\",\n \"support\": \"full\",\n \"note\": \"Inventory and fixed asset items; required on create for both (a fixed asset item with no asset account is refused by Desktop, error 3180, so it is a 400 here with code 2020).\"\n },\n {\n \"qbo\": \"PurchaseDesc\",\n \"support\": \"full\",\n \"note\": \"Fixed asset items: required on create (Description is used when it is omitted), max 50 characters. 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.\"\n },\n {\n \"qbo\": \"PurchaseCost\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"PrefVendorRef\",\n \"support\": \"full\",\n \"note\": \"Inventory and two-sided Service/NonInventory.\"\n },\n {\n \"qbo\": \"ParentRef\",\n \"support\": \"full\",\n \"note\": \"Desktop item hierarchy; sub-items are FullName paths (Parent:Child).\"\n },\n {\n \"qbo\": \"SubItem\",\n \"support\": \"full\",\n \"note\": \"Derived from Desktop Sublevel; read-only.\"\n },\n {\n \"qbo\": \"ClassRef\",\n \"support\": \"full\",\n \"note\": \"Desktop ClassRef.\"\n },\n {\n \"qbo\": \"SalesTaxCodeRef\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"Taxable\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Writing SalesTax or SalesTaxGroup items\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"These read through the Item API (with TaxRate, AgencyRef and TaxRateRefs) but cannot be written through the Item API.\",\n \"workaround\": \"Write a sales tax item through the TaxRate endpoint (POST /taxrate) and a sales tax group through POST /taxservice/taxcode.\"\n },\n {\n \"case\": \"Fixed asset item fields beyond the listed extensions (PONumber, Notes, warranty date, asset number, cost basis, year-end depreciation, sales information)\",\n \"error\": \"UNMAPPED_FIELD\",\n \"note\": \"Fixed asset items write and read the fields listed on the DesktopItemType row. The other Desktop fixed asset fields are not mapped.\"\n },\n {\n \"case\": \"Category items, and turning a sales-only item into a two-sided one\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Category has no Desktop equivalent. Desktop also rejects the SalesOrPurchase to SalesAndPurchase conversion (error 3170): include PurchaseDesc, PurchaseCost, ExpenseAccountRef or PrefVendorRef when a Service or NonInventory item is created.\"\n },\n {\n \"case\": \"Changing QtyOnHand after creation\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"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.)\"\n }\n ]\n },\n \"JournalCode\": {\n \"entity\": \"JournalCode\",\n \"verdict\": \"gap\",\n \"group\": \"gaps\",\n \"read\": \"none\",\n \"write\": \"none\",\n \"headline\": \"France-only QBO regulatory feature; not applicable to Desktop — 'JournalCode' occurs nowhere in the qbxmlops130 message set.\",\n \"fields\": [],\n \"unsupported\": [\n {\n \"case\": \"read\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Re-audited 2026-07-29: JournalCode is a France-locale QBO regulatory concept (mandatory journal coding for FEC compliance) with zero counterpart in qbXML — US Desktop has no such concept to map.\"\n },\n {\n \"case\": \"query\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"JournalCode is a France-locale QBO regulatory concept with no Desktop counterpart.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"JournalCode is a France-locale QBO regulatory concept with no Desktop counterpart.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"JournalCode is a France-locale QBO regulatory concept with no Desktop counterpart.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"JournalCode is a France-locale QBO regulatory concept with no Desktop counterpart.\"\n }\n ]\n },\n \"JournalEntry\": {\n \"entity\": \"JournalEntry\",\n \"verdict\": \"live\",\n \"group\": \"banking\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Debit/Credit lines split across Desktop JournalDebitLine / JournalCreditLine\",\n \"fields\": [\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop Memo when the company file/OSR returns a header Memo on JournalEntry.\"\n },\n {\n \"qbo\": \"Adjustment\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop IsAdjustment.\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"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, so 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: Type is filled by a name lookup (Customer, Vendor or Employee; other names have no Type). Desktop's line-level EntityRef carries no entity-kind flag, so the gateway asks QuickBooks which list owns the name (one extra round trip, cached per company for 15 minutes); if the lookup fails the line comes back with EntityRef only. A Type you send on write is accepted and not stored, and the answer to a create or update carries no Type on its lines (a read does).\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only aggregate when present; not independently computed.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). Written on create and stored by Desktop. The currency must be active (400 otherwise; activate it with CompanyCurrency). Desktop refuses a foreign currency on an entry whose lines use only home-currency accounts, and a currency that differs from a foreign account on a line (400, code 2500). On a file with multicurrency off only USD is accepted (and dropped). Changing CurrencyRef on update is not proven live.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create and on a sparse update that changes only the rate. It is sent on update only when you change it.\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension: QBO cannot void a JournalEntry; QuickBooks Desktop can. POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType JournalEntry), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QuickBooks Enterprise 24 (2026-10-15). The re-read shows every line Amount at 0.00 with the lines kept, and `VOID:` before the memo of the first line only (the entry's own PrivateNote is unchanged). Desktop returns both lines on the debit side after a void, so a voided journal entry does not keep its per-line debit and credit sides. A void does not reliably advance the SyncToken, so re-read the record instead of relying on it; voiding again is accepted. The response is whatever Desktop returns on the re-read (nothing is fabricated).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Unbalanced journal entry (debits ≠ credits)\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop rejects unbalanced JEs. Balance debits and credits before create.\"\n },\n {\n \"case\": \"Line DetailType other than JournalEntryLineDetail\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Only JournalEntryLineDetail maps to Desktop journal lines.\"\n }\n ]\n },\n \"Payment\": {\n \"entity\": \"Payment\",\n \"verdict\": \"live\",\n \"group\": \"sales\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Applying a payment to specific invoices\",\n \"fields\": [\n {\n \"qbo\": \"CustomerRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ARAccountRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PaymentRefNum\",\n \"support\": \"full\",\n \"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).\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PaymentMethodRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DepositToAccountRef\",\n \"support\": \"full\",\n \"note\": \"Omit to use Desktop's Undeposited Funds preference, same as QBO.\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"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 — re-fetch the invoice for balance/date/doc number.\"\n },\n {\n \"qbo\": \"UnappliedAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only; Desktop UnusedPayment.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"note\": \"Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only because QuickBooks does not allow a public custom field on a received payment (the definition is refused with status 3351, verified live 2026-10-15). Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the customer, so CurrencyRef is checked and then dropped: one that differs from the customer's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create. On a sparse update it is sent only when you change it; the update placement is not proven live.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop TotalAmountInHomeCurrency. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"ProcessPayment\",\n \"support\": \"partial\",\n \"note\": \"Accepted and ignored — TenkeyBridge never initiates card processing.\"\n },\n {\n \"qbo\": \"TxnNumber\",\n \"support\": \"none\",\n \"note\": \"Desktop's internal auto-increment TxnNumber has no QBO equivalent and is not surfaced.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"UnusedCredits\",\n \"support\": \"none\",\n \"note\": \"Desktop UnusedCredits (unapplied credit memos available to the customer) is distinct from UnappliedAmt/UnusedPayment; no honest home on Payment — belongs on CreditMemo.Balance.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"operation=void\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"qbXML's TxnVoidType has no ReceivePayment value — a customer payment cannot be voided through the SDK (HTTP 400). Delete it (?operation=delete) and re-enter it if needed.\"\n }\n ]\n },\n \"PaymentMethod\": {\n \"entity\": \"PaymentMethod\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Create only — Desktop has no PaymentMethodMod; Type coarsens Desktop's fine enum to CREDIT_CARD | NON_CREDIT_CARD\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Type\",\n \"support\": \"partial\",\n \"note\": \"Desktop PaymentMethodType (Visa, Cash, Check, …) coarsens to QBO CREDIT_CARD | NON_CREDIT_CARD on read. Create writes a representative Desktop value (OtherCreditCard / Other) — the fine enum is not preserved across a round-trip.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop has no PaymentMethodMod. Create a new PaymentMethod instead; list entities are not deleted — deactivate is also unavailable without Mod.\"\n }\n ]\n },\n \"Preferences\": {\n \"entity\": \"Preferences\",\n \"verdict\": \"live\",\n \"group\": \"company\",\n \"read\": \"partial\",\n \"write\": \"none\",\n \"headline\": \"Read-only singleton (Id=1); honest subset of Desktop PreferencesQuery groups\",\n \"fields\": [\n {\n \"qbo\": \"AccountingInfoPrefs\",\n \"support\": \"partial\",\n \"note\": \"ClassTrackingPerTxn/ClassTrackingPerTxnLine ← IsUsingClassTracking (same bool projected to both); TrackDepartments is false, or true when the company file has Departments from classes turned on (Department is then an alias of Class). UseAccountNumbers ← IsUsingAccountNumbers; BookCloseDate ← AccountingPreferences.ClosingDate when the file has one; FirstMonthOfFiscalYear ← company FirstMonthFiscalYear and TaxYearMonth ← FirstMonthIncomeTaxYear (read from a companion company query; omitted if that query fails).\"\n },\n {\n \"qbo\": \"CurrencyPrefs\",\n \"support\": \"partial\",\n \"note\": \"MultiCurrencyEnabled ← IsMultiCurrencyOn; HomeCurrency ← HomeCurrencyRef, answered as the ISO code (USD) on multicurrency files; absent when multicurrency is off.\"\n },\n {\n \"qbo\": \"TimeTrackingPrefs\",\n \"support\": \"partial\",\n \"note\": \"WorkWeekStartDate ← FirstDayOfWeek only.\"\n },\n {\n \"qbo\": \"TaxPrefs\",\n \"support\": \"partial\",\n \"note\": \"UsingSalesTax true when SalesTaxPreferences is present on PreferencesRet; no other TaxPrefs fields.\"\n },\n {\n \"qbo\": \"SalesFormsPrefs\",\n \"support\": \"partial\",\n \"note\": \"UsingPriceLevels ← PriceLevels.IsUsingPriceLevels; DefaultShipMethodRef; AllowEstimates/UsingProgressInvoicing from JobsAndEstimatesPreferences. DefaultTerms never populated, because Desktop SalesAndCustomersPreferences carries no DefaultTermsRef (qbXML 13.0). IsAutoApplyingPayments has no honest QBO SalesFormsPrefs twin, and Desktop has no credits-specific auto-apply element, so AutoApplyCredit is omitted.\"\n },\n {\n \"qbo\": \"VendorAndPurchasesPrefs\",\n \"support\": \"partial\",\n \"note\": \"UsingInventory ← IsUsingInventory only. DaysBillsAreDue / auto-discount have no honest QBO twin.\"\n },\n {\n \"qbo\": \"ReportPrefs\",\n \"support\": \"partial\",\n \"note\": \"ReportBasis ← SummaryReportBasis when Cash or Accrual.\"\n },\n {\n \"qbo\": \"ProductAndServicesPrefs\",\n \"support\": \"partial\",\n \"note\": \"QuantityOnHand ← IsUsingInventory only; nothing else has a Desktop twin.\"\n },\n {\n \"qbo\": \"EmailMessagesPrefs\",\n \"support\": \"none\",\n \"note\": \"No honest PreferencesRet projection — omitted rather than guessed.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"OtherPrefs\",\n \"support\": \"none\",\n \"note\": \"No honest PreferencesRet projection — omitted rather than guessed.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Create, update, or delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Preferences is read/query only in QBO and Desktop — there is no PreferencesAdd/Mod.\"\n },\n {\n \"case\": \"Any WHERE clause, ORDERBY, COUNT(*), column list, or STARTPOSITION/MAXRESULTS\",\n \"error\": \"UNSUPPORTED_QUERY\",\n \"note\": \"PreferencesQueryRq takes no filters and always returns the single open company PreferencesRet. Use SELECT * FROM Preferences.\"\n }\n ]\n },\n \"Purchase\": {\n \"entity\": \"Purchase\",\n \"verdict\": \"live\",\n \"group\": \"purchasing\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Fans out to Check / CreditCardCharge / CreditCardCredit by PaymentType\",\n \"fields\": [\n {\n \"qbo\": \"PaymentType\",\n \"support\": \"partial\",\n \"note\": \"Check and CreditCard map to Desktop families; Cash is partial (maps to Check against the supplied bank/petty-cash AccountRef — Desktop has no separate cash purchase type). On update PaymentType is immutable across Desktop's families: a Check (or Cash) purchase cannot become a CreditCard one, or the reverse, and a charge cannot become a credit; the update is refused (2010). Delete it and create a new Purchase.\"\n },\n {\n \"qbo\": \"Credit\",\n \"support\": \"full\",\n \"note\": \"true + PaymentType CreditCard → CreditCardCredit*; false/omitted → CreditCardCharge*. Immutable on update (changing it is refused, 2010).\"\n },\n {\n \"qbo\": \"AccountRef\",\n \"support\": \"full\",\n \"note\": \"Bank account (Check/Cash) or credit-card account (CreditCard).\"\n },\n {\n \"qbo\": \"EntityRef\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop PayeeEntityRef (Customer/Vendor/Employee).\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrintStatus\",\n \"support\": \"partial\",\n \"note\": \"NeedToPrint/PrintComplete ⇄ IsToBePrinted (Check family).\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"full\",\n \"note\": \"AccountBasedExpenseLineDetail and ItemBasedExpenseLineDetail via shared Bill line machinery. Update: Line is the WHOLE table, as in QBO. A line sent with its Id (the Line.Id a read returned) keeps that line, a line with no Id is added, and a line you leave out is deleted. Omit Line to leave every line alone (a header-only update such as PrivateNote never touches lines); an empty array is refused (2020), and a repeated or unknown Id is refused (2010). A line cannot change type: sending an expense line's Id with an item detail (or the reverse) is 2010, so omit the Id to replace it. On an item line that sends Amount without Qty or UnitPrice, Desktop keeps the stored quantity and re-derives the unit cost, so the Amount you send is the Amount you read back (verified live, 2026-10-14). Item group lines read as their component item lines, in the group's place and in Desktop's order, each carrying the TenkeyBridge extension fields GroupLineId (the group's Id) and GroupItemRef. The Id on each of those component lines is read-only: it identifies what was read and is not accepted as a line Id on a write. A transaction that has item group lines refuses a Line update with UNSUPPORTED_BY_DESKTOP, because a table update would delete them; header-only updates still work. Applies to Check, CreditCardCharge and CreditCardCredit alike.\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only from Desktop Amount.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the payee, then from the account when there is no payee, so CurrencyRef is checked and then dropped: one that differs is a 400 (code 2010). A payee and an account in different currencies are refused, except that a home-currency account may pay a payee in another currency. On a file with multicurrency off only USD is accepted (and dropped).\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create. On a sparse update it is sent only when you change it; the update placement is not proven live.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop AmountInHomeCurrency. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"query paging\",\n \"support\": \"full\",\n \"note\": \"STARTPOSITION and MAXRESULTS page across all three Desktop families as one list: Check, then CreditCardCharge, then CreditCardCredit, each in Desktop order, with refund checks left out of the count. A deep page costs two QuickBooks messages (the ids of every row the query selects, then the page by id) and faults with UNSUPPORTED_QUERY past 5000 rows in one family; narrow with a TxnDate or MetaData.LastUpdatedTime range.\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"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` — 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).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"A check applied to a credit memo (a refund check)\",\n \"error\": \"NOT_FOUND\",\n \"note\": \"A Desktop check applied to a credit memo is a QBO RefundReceipt, never a Purchase, so Purchase reads, deletes and updates skip it (GET by id is 610 Object Not Found). Use RefundReceipt.\"\n },\n {\n \"case\": \"PaymentType outside Check/Cash/CreditCard\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Only Check, Cash (→Check), and CreditCard map to Desktop purchase families.\"\n }\n ]\n },\n \"PurchaseOrder\": {\n \"entity\": \"PurchaseOrder\",\n \"verdict\": \"live\",\n \"group\": \"purchasing\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Non-posting; item lines only — never touches the GL on either side\",\n \"fields\": [\n {\n \"qbo\": \"VendorRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ClassRef\",\n \"support\": \"full\",\n \"note\": \"Header-level class (Desktop ClassRef, read and write). Line-level ClassRef is separate.\"\n },\n {\n \"qbo\": \"DepartmentRef\",\n \"support\": \"none\",\n \"note\": \"UNMAPPED_FIELD by default. With Departments from classes turned on for the company file, the gateway maps it to the header ClassRef (written to it, read from it); sending a different ClassRef as well is a 400.\",\n \"error\": \"UNMAPPED_FIELD\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"VendorAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DueDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ExpectedDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipMethodRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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).\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"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 — 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. Item group lines (PurchaseOrderLineGroupRet) read as their component item lines, in the group's place and in Desktop's order, each carrying the TenkeyBridge extension fields GroupLineId (the group's Id), GroupItemRef and GroupQuantity; the component lines are read-only. Create: send {DetailType: GroupLineDetail, GroupLineDetail: {GroupItemRef, Quantity}} among the item lines (PurchaseOrderLineGroupAdd; GroupItemRef is required, Quantity optional). Update, with the whole Line array: send all of a group's component lines back to keep the group, none of them to delete it; sending only some is a 400 (2010). A component can be edited in place: change its Qty, UnitPrice, Amount, Description, ItemRef, ClassRef or CustomerRef in the whole array and send every component of the group (the gateway sends one nested PurchaseOrderLineMod per component inside the group's PurchaseOrderLineGroupMod; Desktop deletes any component left out of that list, so a partial list with an edit is a 400, 2010). The edit follows the plain item line rules: a Qty or UnitPrice change re-derives Amount, an Amount change keeps the quantity and derives the rate, an Amount that only repeats the read is ignored. Edits survive a later group quantity change (the component quantities follow the group quantity, 5 at group quantity 2 becomes 7.5 at 3). Changing a component's DetailType or GroupLineId, or combining a component edit with a change to the group's item or quantity in the same request, is a 400 (2010). To change the group itself send a GroupLineDetail line whose Id is the group's GroupLineId (GroupItemRef and Quantity you omit are filled from the current record; PurchaseOrderLineGroupMod); a GroupLineDetail line without an Id adds a new group. An Id cannot change a line between item and group (400, 2010). Verified live on QuickBooks Enterprise 24 (2026-09-30, group create and update 2026-10-20, component edits 2026-10-21): the Id/new/deleted-line table, qty recompute and OSR child order are accepted.\"\n },\n {\n \"qbo\": \"LinkedTxn\",\n \"support\": \"partial\",\n \"note\": \"Read-only, populated on read: the Bill(s) created from the purchase order, as {TxnId, TxnType: Bill}. Desktop-only link types (ItemReceipt, ...) are omitted. On a keyed GET, a query and every page of a paged query (live, 2026-10-21). Accepted and ignored on write, as in QBO. Linking a new Bill to a purchase order is not supported (see Bill.LinkedTxn).\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only from Desktop TotalAmount.\"\n },\n {\n \"qbo\": \"POStatus\",\n \"support\": \"partial\",\n \"note\": \"Open/Closed map to Desktop IsManuallyClosed, a Mod-only element: PurchaseOrderAdd has no IsManuallyClosed at all. Create with POStatus Open (or omitted) is one Add. Create with POStatus Closed is two QuickBooks requests, a PurchaseOrderAdd then a PurchaseOrderMod that closes it, and answers with the closed purchase order. If the close fails after the add, the purchase order exists and is open: the answer is 502 PO_CLOSE_FAILED naming its Id (and a requestid replay answers 502 REQUEST_OUTCOME_UNKNOWN naming the same Id, without re-sending), so do not retry the create; send an update with POStatus Closed. 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 and 2026-10-15): closing and reopening both work, and a Mod carrying the Add's own TxnID and EditSequence closes the new PO.\"\n },\n {\n \"qbo\": \"APAccountRef\",\n \"support\": \"none\",\n \"note\": \"Purchase orders are non-posting — there is no AP account on Desktop POs.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the vendor, so CurrencyRef is checked and then dropped: one that differs from the vendor's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create. On a sparse update it is sent only when you change it; the update placement is not proven live.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop TotalAmountInHomeCurrency. Accepted and ignored on write.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"AccountBasedExpenseLineDetail on a PurchaseOrder line\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop PO lines are item-only. Use ItemBasedExpenseLineDetail, or post a Bill/Purchase for account expenses.\"\n }\n ]\n },\n \"RecurringTransaction\": {\n \"entity\": \"RecurringTransaction\",\n \"verdict\": \"gap\",\n \"group\": \"gaps\",\n \"read\": \"none\",\n \"write\": \"none\",\n \"headline\": \"Desktop's memorized transactions are not exposed by qbXML — there is no message to list, read, create, or execute them.\",\n \"fields\": [],\n \"unsupported\": [\n {\n \"case\": \"read\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Re-audited 2026-07-29: no MemorizedTxn message of any kind exists in the qbxmlops130 message set. The only trace of the concept in the entire schema is a cosmetic 'memorizedTxn' row label in generic report output — a taxonomy tag, not an access path to a memorized transaction's contents or schedule.\",\n \"workaround\": \"Manage memorized transactions in the Desktop UI. Transactions they generate ARE visible through TenkeyBridge once QuickBooks posts them — they arrive as ordinary invoices/bills/etc.\"\n },\n {\n \"case\": \"query\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Memorized transactions cannot be enumerated via qbXML — zero functional API surface.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Memorized transactions cannot be created via qbXML; manage them in the Desktop UI.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Memorized transactions cannot be updated via qbXML; manage them in the Desktop UI.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Memorized transactions cannot be deleted via qbXML; manage them in the Desktop UI.\"\n }\n ]\n },\n \"RefundReceipt\": {\n \"entity\": \"RefundReceipt\",\n \"verdict\": \"live\",\n \"group\": \"sales\",\n \"read\": \"partial\",\n \"write\": \"partial\",\n \"headline\": \"Refunds of applied credits by card (ARRefundCreditCard) or by check (a Check applied to the credit memo); not general item-line refunds\",\n \"fields\": [\n {\n \"qbo\": \"CustomerRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DepositToAccountRef\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop RefundFromAccountRef.\"\n },\n {\n \"qbo\": \"PaymentMethodRef\",\n \"support\": \"full\",\n \"note\": \"Card refunds: must be a credit-card payment method in the company file. Check refunds: not applicable, a 2010 fault if sent.\"\n },\n {\n \"qbo\": \"RefundMethod\",\n \"support\": \"full\",\n \"note\": \"TenkeyBridge extension (QBO has no such field). Check or CreditCard, default CreditCard so existing callers are unchanged. Check writes a Desktop Check applied to the credit memo (DepositToAccountRef is the bank account the check is drawn on, CustomerRef the payee); any other value is 2010. Reads return RefundMethod Check on refund checks and RefundMethod CreditCard on card refunds. A refund check is a RefundReceipt only: it is excluded from Purchase reads. Change data capture: deleted RefundReceipts are found by asking Desktop for deleted Checks as well as deleted card refunds, and a deleted record carries no link to a credit memo, so every deleted ordinary check is also reported as a deleted RefundReceipt. Treat a RefundReceipt deletion as a hint and confirm with a read.\"\n },\n {\n \"qbo\": \"ARAccountRef\",\n \"support\": \"full\",\n \"note\": \"TenkeyBridge extension for check refunds: the Accounts Receivable account Desktop needs on the check's expense line (a check without it is refused). Optional over REST: when omitted the gateway uses the credit memo's own A/R account, else the company's A/R account.\"\n },\n {\n \"qbo\": \"PrintStatus\",\n \"support\": \"partial\",\n \"note\": \"Check refunds only. TenkeyBridge sends the check as not to be printed (Desktop would otherwise drop DocNumber); send NeedToPrint to queue it for printing, in which case Desktop ignores DocNumber.\"\n },\n {\n \"qbo\": \"BillEmail\",\n \"support\": \"partial\",\n \"note\": \"Accepted and not stored. Desktop sales forms have no email address of their own: QuickBooks sends a form to the customer's email address. BillEmailCc and BillEmailBcc are accepted and dropped the same way. They are never returned on read, so update the customer's PrimaryEmailAddr to change where forms go.\"\n },\n {\n \"qbo\": \"ApplyTaxAfterDiscount\",\n \"support\": \"partial\",\n \"note\": \"Accepted when true or false and never sent: a Desktop refund receipt here carries no discount lines for it to apply to. Any other value is 400 (code 2010).\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\",\n \"note\": \"Queries scan Desktop's checks to find refund checks, so an unfiltered query on a file with 1000 or more checks faults rather than return a partial answer. Narrow by TxnDate.\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"note\": \"Check refunds take exactly one Line (Desktop applies one credit memo per check; more is 2010) with Amount and LinkedTxn, and a refund larger than the credit memo's remaining credit is refused by Desktop with a 400 (3210 \\\"The amount you entered is greater than the amount of the credit.\\\" for a partial over-refund, and 3210 with its own text when the memo is already fully refunded). Deleting the check restores the credit. Card refunds: LinkedTxn credit-memo applications → RefundAppliedToTxnAdd only. At least one Line is required on create, because Desktop's ARRefundCreditCardAdd requires one or more RefundAppliedToTxnAdd; an empty/missing Line array fails loud rather than sending Desktop an invalid request. SalesItemLineDetail / item-line refunds return UNSUPPORTED_BY_DESKTOP; use CreditMemo + payment/refund pair instead (see CreditMemo).\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only from Desktop TotalAmount.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the customer, so CurrencyRef is checked and then dropped: one that differs from the customer's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP. Not stored by Desktop for a check refund.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from the check refund AmountInHomeCurrency. Accepted and ignored on write.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Item-line RefundReceipt (SalesItemLineDetail etc.)\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"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 are supported with RefundMethod Check (a Check applied to the credit memo); cash refunds are recorded in QuickBooks (Customers > Refund).\"\n },\n {\n \"case\": \"Update / sparse update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Neither refund family (ARRefundCreditCard or Check applied to a credit memo) has an update path in this release. Delete and create again.\"\n },\n {\n \"case\": \"ApplyTaxAfterDiscount is not a boolean\",\n \"error\": \"2010\",\n \"note\": \"ApplyTaxAfterDiscount must be true or false. Either value is accepted and has no effect on a refund receipt, which carries no discount lines.\"\n }\n ]\n },\n \"ReimburseCharge\": {\n \"entity\": \"ReimburseCharge\",\n \"verdict\": \"gap\",\n \"group\": \"gaps\",\n \"read\": \"none\",\n \"write\": \"none\",\n \"headline\": \"QBO's billable-charge object has no Desktop record behind it — in qbXML, billability is a status flag (BillableStatus) on the source expense/item/time lines, never a standalone charge you can query.\",\n \"fields\": [],\n \"unsupported\": [\n {\n \"case\": \"read\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Re-audited 2026-07-29: 'ReimburseCharge' occurs nowhere in the qbxmlops130 message set. Desktop models billability as a BillableStatus enum (Billable / NotBillable / HasBeenBilled) on expense and item lines of purchase transactions and on time entries — there is no separate queryable charge object to project one from.\",\n \"workaround\": \"Read billable state where Desktop actually keeps it: TimeActivity exposes BillableStatus today, and billable purchase lines live on their source Bill/Purchase transactions.\"\n },\n {\n \"case\": \"query\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"No standalone billable-charge object exists in qbXML to query; billability is line-level state on source transactions.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"ReimburseCharge is a QBO cloud concept with no Desktop qbXML analog; mark source lines Billable instead.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"ReimburseCharge is a QBO cloud concept with no Desktop qbXML analog.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"ReimburseCharge is a QBO cloud concept with no Desktop qbXML analog.\"\n }\n ]\n },\n \"Reports\": {\n \"entity\": \"Reports\",\n \"verdict\": \"live\",\n \"group\": \"platform\",\n \"read\": \"partial\",\n \"write\": \"none\",\n \"headline\": \"Seventy-seven QBO-compatible reports served from QuickBooks Desktop: 26 translated live from Desktop's report engine (summary, detail, aging, balance, sales, sales-tax and budget reports), 49 Desktop extension reports with no QBO twin, and two composites, AccountList (built from Desktop's account list) and CashFlow (built from several queries). CashFlow is derived, not translated: Desktop's SDK has no cash-flow report, so it is computed from Profit and Loss and two Trial Balances and checked against Desktop before it is returned.\",\n \"usage\": \"GET /v3/company/{companyId}/reports/ProfitAndLoss?start_date=2026-01-01&end_date=2026-12-31&summarize_column_by=Month\",\n \"fields\": [\n {\n \"qbo\": \"ProfitAndLoss / BalanceSheet / TrialBalance\",\n \"support\": \"full\",\n \"note\": \"GeneralSummaryReportQueryRq (ProfitAndLossStandard / BalanceSheetStandard / TrialBalance). Values verbatim from Desktop — no recomputation. BalanceSheet also takes report_date as an as-of.\"\n },\n {\n \"qbo\": \"AgedReceivables / AgedPayables\",\n \"support\": \"full\",\n \"note\": \"AgingReportQueryRq (ARAgingSummary / APAgingSummary). Desktop's file-configured aging buckets come back as columns, honestly.\"\n },\n {\n \"qbo\": \"CustomerBalance / VendorBalance\",\n \"support\": \"full\",\n \"note\": \"CustomerBalanceSummary / VendorBalanceSummary. As-of (report_date). Month (and the other period splits) are accepted; Desktop refuses ReportBasis here.\"\n },\n {\n \"qbo\": \"CustomerIncome / VendorExpenses\",\n \"support\": \"full\",\n \"note\": \"IncomeByCustomerSummary / ExpenseByVendorSummary.\"\n },\n {\n \"qbo\": \"CustomerSales / ItemSales (aliases SalesByCustomer / SalesByProduct)\",\n \"support\": \"full\",\n \"note\": \"SalesByCustomerSummary / SalesByItemSummary. ItemSales carries Desktop's extra columns (% of Sales, Avg Price, COGS, Gross Margin).\"\n },\n {\n \"qbo\": \"InventoryValuationSummary\",\n \"support\": \"full\",\n \"note\": \"InventoryValuationSummary, as-of (report_date), item filter only. Desktop refuses ReportBasis and SummarizeColumnsBy here.\"\n },\n {\n \"qbo\": \"ProfitAndLossDetail / GeneralLedger\",\n \"support\": \"partial\",\n \"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).\"\n },\n {\n \"qbo\": \"JournalReport / TransactionList\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"InventoryValuationDetail / TransactionListByCustomer / TransactionListByVendor\",\n \"support\": \"partial\",\n \"note\": \"GeneralDetailReportQueryRq InventoryValuationDetail / TxnListByCustomer / TxnListByVendor. ColKeys best-effort. Desktop refuses ReportBasis on all three (3151), so accounting_method faults. InventoryValuationDetail takes the item filter only.\"\n },\n {\n \"qbo\": \"TaxSummary\",\n \"support\": \"partial\",\n \"note\": \"Desktop's Sales Tax Liability report (GeneralSummaryReportQueryRq SalesTaxLiability): taxable and non-taxable sales and tax collected. accounting_method is honored. Desktop refuses SummarizeColumnsBy here, so summarize_column_by takes Total only.\"\n },\n {\n \"qbo\": \"CustomerBalanceDetail / VendorBalanceDetail\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"AgedReceivableDetail / AgedPayableDetail\",\n \"support\": \"partial\",\n \"note\": \"AgingReportQueryRq ARAgingDetail / APAgingDetail, as-of (report_date), with the receivable (customer) or payable (vendor) filter. ColKeys best-effort.\"\n },\n {\n \"qbo\": \"CashFlow\",\n \"support\": \"partial\",\n \"note\": \"Derived (TkbDerivedReport): Desktop's SDK has no cash-flow report, so TenkeyBridge builds the indirect-method statement from Desktop's Profit and Loss and two Trial Balances, classified by account type. Bank accounts plus Undeposited Funds count as cash, as in QBO. Fixed Asset accounts, including accumulated depreciation, are investing (Desktop's own default classification). Self-checking: if the derived net income differs from Desktop's by a cent, or a trial-balance row cannot be matched to an account, the call fails with REPORT_COMPOSE_FAILED (502) instead of answering. Five QuickBooks round trips. Sandbox realms serve it from captured sample inputs (SandboxStaticReport).\"\n },\n {\n \"qbo\": \"AccountList\",\n \"support\": \"partial\",\n \"note\": \"Built from Desktop's account list (AccountQueryRq). Desktop has no account detail type, so that column is absent.\"\n },\n {\n \"qbo\": \"ClassSales\",\n \"support\": \"partial\",\n \"note\": \"Desktop's custom summary report (CustomSummaryReportQueryRq, rows by Class over OrdinaryIncome accounts): one row per class plus Unclassified and TOTAL. Takes dates or date_macro, accounting_method, summarize_column_by (Month, Week, Days, Quarter, Year), customer, item, class and transaction_type. The account filter is fixed to income, so account, account_type, vendor and the modified-date filter fault.\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\"\n },\n {\n \"qbo\": \"TransactionListWithSplits\",\n \"support\": \"partial\",\n \"note\": \"Desktop's custom transaction detail report (CustomDetailReportQueryRq, rows by Account): every transaction line with a Split column, grouped under each account it touches. Takes dates or date_macro, accounting_method, customer, vendor, item, class, account or account_type, transaction_type, start_moddate/end_moddate and columns (default columns: date, type, number, name, memo, account, split, amount). No column split. Each filter was proven against QuickBooks Enterprise 24 (2026-10-20). Desktop groups the rows by account, so a transaction with two splits appears under both accounts.\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\"\n },\n {\n \"qbo\": \"BudgetOverview / BudgetVsActuals\",\n \"support\": \"partial\",\n \"note\": \"BudgetSummaryReportQueryRq ProfitAndLossBudgetOverview / ProfitAndLossBudgetVsActual, one column group per month plus a period total. Desktop scopes a budget report by fiscal year, so these take fiscal_year (four digits, default: the current year) instead of dates, plus an optional class filter (one or more class Ids; sent as BudgetCriterion AccountsAndClasses so the budget side follows the filter, live-proven on a class budget), and no other filters or column split; column titles are qualified with their month (for example 'Jan 26 - Budget'). Profit and loss budgets only; balance sheet budgets stay on the Budget entity. A budget set up only by class (or by customer) reads as zeros without the class filter: the unfiltered read asks Desktop for the account budget, and no customer filter is offered (qbXML cannot create a customer budget, and BudgetCriterion AccountsAndCustomers returned nothing beyond the account budget on the test file). Read-only, like QBO.\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\"\n },\n {\n \"qbo\": \"Desktop extension reports\",\n \"support\": \"full\",\n \"note\": \"ProfitAndLossByClass, ProfitAndLossByJob, ProfitAndLossPrevYearComp, ProfitAndLossYTDComp, BalanceSheetPrevYearComp, BalanceSheetByClass, PurchaseByVendorSummary, PurchaseByItemSummary, SalesByRepSummary, InventoryStockStatusByItem, OpenInvoices, UnpaidBillsDetail, OpenPOs, SalesByCustomerDetail, SalesByItemDetail, IncomeByCustomerDetail, ExpenseByVendorDetail, PurchaseByVendorDetail, DepositDetail, CheckDetail, BalanceSheetDetail, CollectionsReport, and since Reports wave 4 TxnDetailByAccount, UnbilledCostsByJob, AuditTrail, 1099Detail, SalesByRepDetail, PurchaseByItemDetail, OpenPOsByJob, EstimatesByJob, JobProgressInvoicesVsEstimates, OpenSalesOrderByCustomer, OpenSalesOrderByItem, PendingSales, IncomeTaxDetail, MissingChecks, SalesTaxRevenueSummary, IncomeTaxSummary, BalanceSheetSummary, InventoryStockStatusByVendor, and the Job and Time reports JobProfitabilitySummary, JobEstimatesVsActualsSummary, ItemProfitability, ItemEstimatesVsActuals, JobProfitabilityDetail, JobEstimatesVsActualsDetail, TimeByJobSummary, TimeByJobDetail, TimeByItem, TimeByName, and since Reports wave 5 PhysicalInventoryWorksheet (a bare snapshot: Desktop refuses every period, filter, basis and column option on it, so the gateway refuses them too) and the Advanced Inventory reports InventoryValuationSummaryBySite, LotNumberInStockBySite and SerialNumberInStockBySite (sent bare; a company file without Advanced Inventory answers 3250, which becomes a 422 REPORT_FEATURE_UNAVAILABLE naming the feature; not live-proven past that gate, and unavailable in the sandbox). Filters are enabled only where they were proven live on QuickBooks Enterprise 24 (2026-10-20): customer/vendor, item, class, account type, transaction type and modified date on the detail reports (not the account filter on UnbilledCostsByJob and PendingSales, which Desktop fails with an internal error), the same minus modified date on the summaries, all but vendor on the four Job summaries, customer, item and class on the Time reports; the two Job detail reports require a customer or job Id and take no other filter; MissingChecks requires account Ids (Desktop refuses a bare query and an account type, as it does ReportBasis) and takes transaction type, class, modified date and columns. 1099Detail takes no filter at all (an entity filter crashed QuickBooks, so the gateway refuses every filter on it before it reaches Desktop). The Time reports take no columns (Desktop refuses Duration). Desktop reports with no QBO twin, served under their Desktop names in the same QBO report JSON.\"\n },\n {\n \"qbo\": \"start_date / end_date / date_macro\",\n \"support\": \"full\",\n \"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 — Desktop's own bare default is month-to-date, so TenkeyBridge always sends an explicit period.\"\n },\n {\n \"qbo\": \"report_date\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"accounting_method\",\n \"support\": \"partial\",\n \"note\": \"Cash/Accrual → 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.\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\"\n },\n {\n \"qbo\": \"summarize_column_by\",\n \"support\": \"partial\",\n \"note\": \"Total, Month, Week, Days, Quarter, Year, Customers, Vendors, Classes → 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.\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\"\n },\n {\n \"qbo\": \"customer / vendor / item / class\",\n \"support\": \"partial\",\n \"note\": \"Comma-separated Ids → ReportEntityFilter (customer + vendor) / ReportItemFilter / ReportClassFilter. AR reports accept customer only, AP reports vendor only; InventoryValuationSummary accepts item only.\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\"\n },\n {\n \"qbo\": \"account / account_type\",\n \"support\": \"partial\",\n \"note\": \"account is comma-separated account Ids (ReportAccountFilter ListID); account_type is one QBO account type (Bank, AccountsReceivable, OtherCurrentAsset, FixedAsset, OtherAsset, AccountsPayable, CreditCard, OtherCurrentLiability, LongTermLiability, Equity, Income, CostOfGoodsSold, Expense, OtherIncome, OtherExpense) mapped to AccountTypeFilter. Sending both faults. Accepted on the summary reports (except InventoryValuationSummary) and on every detail report except AgedReceivableDetail / AgedPayableDetail. The aging reports refuse both: Desktop's aging account filter does not filter meaningfully.\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\"\n },\n {\n \"qbo\": \"transaction_type\",\n \"support\": \"partial\",\n \"note\": \"Comma-separated QBO transaction types (Invoice, CreditMemo, SalesReceipt, Payment, Deposit, Transfer, Estimate, Bill, VendorCredit, BillPayment, BillPaymentCheck, BillPaymentCreditCard, Check, CreditCardCharge, CreditCardCredit, PurchaseOrder, JournalEntry, InventoryQuantityAdjustment) mapped to ReportTxnTypeFilter. BillPayment fans out to both check and credit-card bill payments. Types with no single Desktop twin (Expense, CashPurchase, RefundReceipt) fault. Accepted on summary, detail and aging reports (not InventoryValuationSummary).\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\"\n },\n {\n \"qbo\": \"start_moddate / end_moddate\",\n \"support\": \"partial\",\n \"note\": \"ISO dates that filter on the transaction last-modified date (ReportModifiedDateRangeFilter). Both are required together, otherwise REPORT_INVALID_DATE. Detail reports only (not AgedReceivableDetail / AgedPayableDetail); summary and aging reports refuse them.\",\n \"error\": \"REPORT_INVALID_DATE\"\n },\n {\n \"qbo\": \"columns\",\n \"support\": \"partial\",\n \"note\": \"Comma-separated QBO ColKeys (tx_date, txn_type, doc_num, txn_num, name, cust_name, vend_name, memo, account_name, split_acc, klass_name, is_cleared, debt_amt, credit_amt, subt_nat_amount, rbal_nat_amount, subt_open_bal, due_date, past_due, po_num, term_name) mapped to IncludeColumn; aliases dedupe and an unknown key faults listing the accepted ones. Detail reports and AgedReceivableDetail / AgedPayableDetail only. When columns is sent, data rows carry the QuickBooks transaction id as id on the txn_type cell (GeneralLedger cost-posting rows have none). If txn_type is not among the requested columns, the id is on the first cell.\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\"\n },\n {\n \"qbo\": \"Column titles\",\n \"support\": \"partial\",\n \"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 — QBO does not document them).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"department / qzurl / adjusted_gain_loss\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\",\n \"note\": \"Desktop has no departments (use class); QuickZoom URLs and multicurrency gain/loss adjustment are QBO-only.\"\n },\n {\n \"case\": \"aging_period / num_periods / aging_method\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\",\n \"note\": \"Desktop aging buckets are company-file configuration, not request parameters.\"\n },\n {\n \"case\": \"summarize_column_by = Employees / ProductsAndServices / Departments / Location\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\",\n \"note\": \"qbXML's SummarizeColumnsBy has no per-item, per-employee or per-location split (ItemType splits by item type, not by item).\"\n },\n {\n \"case\": \"DepartmentSales\",\n \"error\": \"REPORT_UNKNOWN\",\n \"note\": \"Desktop has no departments. Use ClassSales.\"\n },\n {\n \"case\": \"other QBO report names\",\n \"error\": \"REPORT_UNKNOWN\",\n \"note\": \"Not shipped. The fault lists the supported reports.\"\n }\n ]\n },\n \"SalesReceipt\": {\n \"entity\": \"SalesReceipt\",\n \"verdict\": \"live\",\n \"group\": \"sales\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Same as Invoice + deposit account\",\n \"fields\": [\n {\n \"qbo\": \"CustomerRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ClassRef\",\n \"support\": \"full\",\n \"note\": \"Header-level class (Desktop ClassRef, read and write). Line-level ClassRef is separate.\"\n },\n {\n \"qbo\": \"DepartmentRef\",\n \"support\": \"none\",\n \"note\": \"UNMAPPED_FIELD by default. With Departments from classes turned on for the company file, the gateway maps it to the header ClassRef (written to it, read from it); sending a different ClassRef as well is a 400.\",\n \"error\": \"UNMAPPED_FIELD\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"BillAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipMethodRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DepositToAccountRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"CustomerMemo\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop CustomerMsgRef by FullName; the message must already exist as a Desktop customer message. Updatable via sparse update (#55).\"\n },\n {\n \"qbo\": \"ProjectRef\",\n \"support\": \"full\",\n \"note\": \"A Desktop job is a QBO project, so ProjectRef sets the transaction's customer to the job (send the job's Id or full name). If CustomerRef is sent too, the job wins, and nothing is looked up: the job already implies its parent customer. Read: when the customer is a job (its full name contains a colon), ProjectRef is returned with the same value and name as CustomerRef, which stays exactly as Desktop returns it. A QBO project is one level deep and a Desktop job can sit under another job, so ProjectRef here means any job.\"\n },\n {\n \"qbo\": \"EmailStatus\",\n \"support\": \"partial\",\n \"note\": \"Maps to Desktop IsToBeEmailed. NeedToSend writes true; NotSet and EmailSent write false, because Desktop only knows whether the form is still queued. Read: true is NeedToSend, false is NotSet. Desktop does not record that a form was sent, so EmailSent is never returned. Setting NeedToSend sends nothing by itself: it only queues the form in QuickBooks.\"\n },\n {\n \"qbo\": \"PrintStatus\",\n \"support\": \"partial\",\n \"note\": \"Maps to Desktop IsToBePrinted. NeedToPrint writes true; NotSet and PrintComplete write false. Read: true is NeedToPrint, false is NotSet. Desktop does not record that a form was printed, so PrintComplete is never returned.\"\n },\n {\n \"qbo\": \"BillEmail\",\n \"support\": \"partial\",\n \"note\": \"Accepted and not stored. Desktop sales forms have no email address of their own: QuickBooks sends a form to the customer's email address. BillEmailCc and BillEmailBcc are accepted and dropped the same way. They are never returned on read, so update the customer's PrimaryEmailAddr to change where forms go.\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"note\": \"SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail names a Desktop discount item by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount). With no ItemRef but a DiscountAccountRef, the gateway uses the one active discount item that posts to that account; none or several is MISSING_REQUIRED_DESKTOP_ITEM, and a discount item is never created for you. SubTotalLineDetail needs no ItemRef: the gateway uses the company's active subtotal item (the one named Subtotal if there are several, else the first), and only when there is none it creates an item named Subtotal (it has no account and posts nothing); a subtotal line is sent without Amount, Qty or Rate because Desktop computes the amount and refuses one. Other DetailTypes return UNSUPPORTED_BY_DESKTOP. Lines read back in Desktop's own order; a group line reads as GroupLineDetail with its component lines in GroupLineDetail.Line (each with its own Id) and the bundle total as Amount; a subtotal line reads as SubTotalLineDetail; 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. The Ids on a group's component lines (GroupLineDetail.Line[].Id) are read-only: they identify what was read and are not accepted as line Ids on a write.\"\n },\n {\n \"qbo\": \"TxnTaxDetail\",\n \"support\": \"partial\",\n \"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 is derived, not read: the sum of the Tax-coded line Amounts (discount lines are not subtracted, verified live), returned only when it reproduces Desktop's SalesTaxTotal to the cent and omitted otherwise (custom tax codes, or a discount whose taxability is unknown). Updatable via sparse update (#55).\"\n },\n {\n \"qbo\": \"LinkedTxn\",\n \"support\": \"partial\",\n \"note\": \"Desktop SalesReceiptQueryRq has no IncludeLinkedTxns and SalesReceiptRet carries no LinkedTxnRet (qbXML 13.0) — never populated on read. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only; Desktop computes it.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the customer, so CurrencyRef is checked and then dropped: one that differs from the customer's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create. On a sparse update it is sent only when you change it; the update placement is not proven live.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop TotalAmountInHomeCurrency. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"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).\"\n },\n {\n \"qbo\": \"ApplyTaxAfterDiscount\",\n \"support\": \"partial\",\n \"note\": \"Maps onto the discount line's own sales tax code, proven live on QuickBooks Enterprise 24: Tax is tax after the discount (true), Non is tax on the full amount (false). On write, true or false is never sent as a field; every discount line with no TaxCodeRef of its own is coded Tax or Non, and an explicit TAX or NON that contradicts the value is 400 (code 2010, element Line.DiscountLineDetail.TaxCodeRef). A custom tax code on a discount line wins. DiscountLineDetail.TaxCodeRef is written as that line's sales tax code. With no discount lines the value is accepted and does nothing. Read: present only when the form has discount lines and they are all Tax (true) or all Non (false); omitted when mixed. On a sparse update with no Line, a value equal to the current one is accepted; a different one is 422 UNSUPPORTED_BY_DESKTOP, so send the full Line array to change it. Any value that is not a boolean is 400 (code 2010).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"GET /{id}/pdf\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"qbXML cannot render or return a PDF of a transaction, so the route answers 422. Render the PDF from the JSON record in your own application.\"\n },\n {\n \"case\": \"POST /{id}/send (actually sending the email)\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"The route is queue-only: it sets EmailStatus NeedToSend (Desktop IsToBeEmailed) through a sparse update and returns the record, so the form lands in QuickBooks' To be e-mailed queue. TenkeyBridge sends no mail; QuickBooks sends the form to the customer's email address. sendTo is ignored (X-TKB-Warning says so). Desktop refuses the queue (3180) when the company file has no company email.\"\n },\n {\n \"case\": \"ApplyTaxAfterDiscount changed on a sparse update that carries no Line\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"On Desktop the value lives on each discount line's tax code, so it cannot change on its own. Send the full Line array in the same update.\"\n }\n ]\n },\n \"Tag\": {\n \"entity\": \"Tag\",\n \"verdict\": \"gap\",\n \"group\": \"gaps\",\n \"read\": \"none\",\n \"write\": \"none\",\n \"headline\": \"QBO Tags (and Tag classifications) are a cloud-only labeling feature — QuickBooks Desktop has no free-form tag object, and its nearest dimensional list (Class) is already exposed as Class.\",\n \"fields\": [],\n \"unsupported\": [\n {\n \"case\": \"read\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"qbXML has no Tag or TagClassification message; Desktop has no equivalent many-to-many labeling of transactions.\",\n \"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.\"\n },\n {\n \"case\": \"query\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"There is no Desktop tag list to query.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop cannot store tags, so none can be created.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop cannot store tags, so none can be updated.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop cannot store tags, so none can be deleted.\"\n }\n ]\n },\n \"TaxAgency\": {\n \"entity\": \"TaxAgency\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"none\",\n \"headline\": \"Read-only projection — Vendors referenced by any ItemSalesTax.TaxVendorRef (no native Desktop TaxAgency list)\",\n \"fields\": [\n {\n \"qbo\": \"DisplayName\",\n \"support\": \"full\",\n \"note\": \"Vendor Name.\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"TaxTrackedOnPurchases\",\n \"support\": \"none\",\n \"note\": \"No Desktop equivalent on the Vendor projection.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"TaxTrackedOnSales\",\n \"support\": \"none\",\n \"note\": \"No Desktop equivalent on the Vendor projection.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Create or update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"TaxAgency is a read-only projection of the Vendors that a sales tax item names as its tax agency. Desktop has no tax agency record of its own (live probe 2026-10-20: a VendorAdd flagged IsSalesTaxAgency is accepted but nothing reads it back, and the vendor does not become an agency). A vendor becomes a tax agency when a tax rate points at it.\",\n \"workaround\": \"Create the vendor with POST /vendor, then create a tax rate that names it (POST /taxrate with AgencyRef). It then appears in /taxagency.\"\n }\n ]\n },\n \"TaxClassification\": {\n \"entity\": \"TaxClassification\",\n \"verdict\": \"gap\",\n \"group\": \"gaps\",\n \"read\": \"none\",\n \"write\": \"none\",\n \"headline\": \"Cloud automated-sales-tax concept with no Desktop counterpart — Desktop's tax model is explicit tax items and codes, all of which TenkeyBridge exposes.\",\n \"fields\": [],\n \"unsupported\": [\n {\n \"case\": \"read\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Re-audited 2026-07-29: 'TaxClassification' occurs nowhere in the qbxmlops130 message set. Desktop's tax machinery is ItemSalesTax / ItemSalesTaxGroup / SalesTaxCode — explicit records, not AST classification codes — and those ARE available through TenkeyBridge as TaxRate, TaxCode, and TaxAgency.\",\n \"workaround\": \"Use TaxCode/TaxRate/TaxAgency for Desktop's real tax model instead of AST classifications.\"\n },\n {\n \"case\": \"query\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"TaxClassification is part of QBO's automated sales tax stack; Desktop uses explicit tax items/codes instead.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"TaxClassification cannot be created on Desktop via qbXML.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"TaxClassification cannot be updated on Desktop via qbXML.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"TaxClassification cannot be deleted on Desktop via qbXML.\"\n }\n ]\n },\n \"TaxCode\": {\n \"entity\": \"TaxCode\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"full\",\n \"headline\": \"Desktop SalesTaxCode list (TAX/NON); Name max 3 chars (fail-loud, never truncated); a plain taxable/non-taxable flag pair, not a rate container\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"full\",\n \"note\": \"Desktop limits Name to 3 characters. Longer names return 400 — never truncated.\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Description\",\n \"support\": \"full\",\n \"note\": \"Desktop Desc.\"\n },\n {\n \"qbo\": \"Taxable\",\n \"support\": \"full\",\n \"note\": \"Desktop IsTaxable.\"\n },\n {\n \"qbo\": \"SalesTaxRateList\",\n \"support\": \"none\",\n \"note\": \"Desktop's US edition (QBD) does not have ItemSalesTaxRef/ItemPurchaseTaxRef on SalesTaxCode — the OSR marks both 'not in QBD' (they exist only for QBCA/QBUK/QBAU). US Desktop SalesTaxCode is just the taxable/non-taxable flag pair; rate association lives on ItemSalesTax items. Read TaxRate for rate values/agency. Never returned on read; writing it faults UNMAPPED_FIELD.\",\n \"error\": \"UNMAPPED_FIELD\"\n }\n ],\n \"unsupported\": []\n },\n \"TaxPayment\": {\n \"entity\": \"TaxPayment\",\n \"verdict\": \"live\",\n \"group\": \"transactions\",\n \"read\": \"partial\",\n \"write\": \"none\",\n \"headline\": \"Read-only view of Desktop sales tax payment checks (SalesTaxPaymentCheck). QuickBooks Online offers TaxPayment only in AU, CA and UK; TenkeyBridge serves it for US Desktop sales tax payment checks.\",\n \"fields\": [\n {\n \"qbo\": \"PaymentDate\",\n \"support\": \"full\",\n \"note\": \"Desktop TxnDate. Emitted as PaymentDate, the key in Intuit's Read and Query samples; Intuit's attribute table names it TxnDate.\"\n },\n {\n \"qbo\": \"PaymentAmount\",\n \"support\": \"full\",\n \"note\": \"Desktop Amount.\"\n },\n {\n \"qbo\": \"PaymentAccountRef\",\n \"support\": \"full\",\n \"note\": \"Desktop BankAccountRef.\"\n },\n {\n \"qbo\": \"Description\",\n \"support\": \"full\",\n \"note\": \"Desktop Memo.\"\n },\n {\n \"qbo\": \"Refund\",\n \"support\": \"full\",\n \"note\": \"Always false: a Desktop sales tax payment check is a payment, and a refund is recorded as a Deposit.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Tax agency, check number and per-item amounts\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"SalesTaxPaymentCheck carries a payee agency, RefNumber and per-item lines, but QBO's TaxPayment has no field for them, so they are not returned.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"QBO's TaxPayment is read-only via the API; TenkeyBridge matches that. Record the payment in QuickBooks Desktop.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"QBO's TaxPayment is read-only via the API; TenkeyBridge matches that.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"QBO's TaxPayment is read-only via the API; TenkeyBridge matches that.\"\n }\n ]\n },\n \"TaxRate\": {\n \"entity\": \"TaxRate\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Read like QBO; create and update are a TenkeyBridge extension over Desktop ItemSalesTaxAdd/Mod (QBO has no TaxRate write). Sales-tax groups are not projected as TaxRates.\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"full\",\n \"note\": \"Create and update. Max 31 characters, rejected up front with a 400 (2050). Required on create.\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\",\n \"note\": \"Create and update (Desktop IsActive). Deactivate with a sparse update of Active false.\"\n },\n {\n \"qbo\": \"RateValue\",\n \"support\": \"full\",\n \"note\": \"Desktop TaxRate percentage, a number from 0 to 100 kept to full precision (8.875 stays 8.875). Required on create. Create and update.\"\n },\n {\n \"qbo\": \"Description\",\n \"support\": \"full\",\n \"note\": \"Desktop ItemDesc. Create and update.\"\n },\n {\n \"qbo\": \"AgencyRef\",\n \"support\": \"full\",\n \"note\": \"Desktop TaxVendorRef, the tax agency Vendor. Required on create.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Create or update through a QBO client\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"QBO rejects a TaxRate write, so an app written for QBO never sends one. TenkeyBridge accepts it as an extension (POST /taxrate), mapped to ItemSalesTaxAdd and ItemSalesTaxMod. A sparse update sends only the fields you changed.\",\n \"workaround\": \"To create a rate together with the tax code that groups it, use POST /taxservice/taxcode.\"\n },\n {\n \"case\": \"ItemSalesTaxGroup as TaxRate\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Sales-tax groups are not projected as TaxRate rows. Group members are themselves ItemSalesTax list items and appear as individual TaxRates via ItemSalesTaxQuery. A group is created through TaxService.\"\n }\n ]\n },\n \"TaxService\": {\n \"entity\": \"TaxService\",\n \"verdict\": \"live\",\n \"group\": \"platform\",\n \"read\": \"none\",\n \"write\": \"partial\",\n \"headline\": \"POST /taxservice/taxcode creates tax rates and the tax code that groups them (Desktop ItemSalesTaxAdd then ItemSalesTaxGroupAdd). The TaxCodeId is a sales tax group, used on a sales form as TxnTaxDetail.TxnTaxCodeRef.\",\n \"usage\": \"POST /v3/company/{companyId}/taxservice/taxcode\",\n \"fields\": [\n {\n \"qbo\": \"TaxCode\",\n \"support\": \"full\",\n \"note\": \"The tax code name, 1 to 31 characters. Becomes a Desktop sales tax group; a name already in use is refused by QuickBooks.\"\n },\n {\n \"qbo\": \"TaxRateDetails.TaxRateName\",\n \"support\": \"full\",\n \"note\": \"Name of a new rate, 1 to 31 characters (a Desktop sales tax item).\"\n },\n {\n \"qbo\": \"TaxRateDetails.RateValue\",\n \"support\": \"full\",\n \"note\": \"Percentage from 0 to 100.\"\n },\n {\n \"qbo\": \"TaxRateDetails.TaxAgencyId\",\n \"support\": \"full\",\n \"note\": \"The tax agency, a Desktop Vendor Id.\"\n },\n {\n \"qbo\": \"TaxRateDetails.TaxApplicableOn\",\n \"support\": \"partial\",\n \"note\": \"Sales only. Any other value is UNSUPPORTED_BY_DESKTOP: Desktop sales tax items apply to sales only.\"\n },\n {\n \"qbo\": \"TaxRateDetails.TaxRateId\",\n \"support\": \"full\",\n \"note\": \"Send it alone to put an existing rate in the new code instead of creating one. Also how to retry after TAX_CODE_PARTIAL.\"\n },\n {\n \"qbo\": \"TaxCodeId\",\n \"support\": \"partial\",\n \"note\": \"In the answer. It is a Desktop sales tax group id, not a TaxCode (TAX or NON): GET /taxcode/{id} will not find it. It is what you send as TxnTaxDetail.TxnTaxCodeRef on an invoice or other sales form, which maps to Desktop ItemSalesTaxRef.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"read, query, update, delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"TaxService is a create-only operation. There is no TaxService object to read back; read the rates as TaxRate.\"\n },\n {\n \"case\": \"Rates created but the tax code not\",\n \"error\": \"TAX_CODE_PARTIAL\",\n \"note\": \"The two steps are separate QuickBooks messages. If the tax code is refused after the rates were created (usually a duplicate name), the answer is 502 TAX_CODE_PARTIAL naming every created TaxRateId. Resend with TaxRateDetails [{ TaxRateId }] for those rates and an unused TaxCode name. Resending the original request is refused by QuickBooks as a duplicate name, so no extra rates are created. The endpoint honors requestid: a replay after success returns the tax code read back from QuickBooks, and a replay after this fault does not re-send.\"\n }\n ]\n },\n \"Term\": {\n \"entity\": \"Term\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Merged StandardTerms + DateDrivenTerms; Type STANDARD | DATE_DRIVEN dispatches which Desktop list; create-only\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Type\",\n \"support\": \"full\",\n \"note\": \"STANDARD ⇄ StandardTerms*; DATE_DRIVEN ⇄ DateDrivenTerms*. Fixed at create — the whole entity is create-only, so this can never change via update.\"\n },\n {\n \"qbo\": \"DueDays\",\n \"support\": \"full\",\n \"note\": \"STANDARD only — Desktop StdDueDays.\"\n },\n {\n \"qbo\": \"DiscountDays\",\n \"support\": \"full\",\n \"note\": \"STANDARD only — Desktop StdDiscountDays.\"\n },\n {\n \"qbo\": \"DiscountPercent\",\n \"support\": \"full\",\n \"note\": \"Both types — Desktop DiscountPct.\"\n },\n {\n \"qbo\": \"DayOfMonthDue\",\n \"support\": \"full\",\n \"note\": \"DATE_DRIVEN only.\"\n },\n {\n \"qbo\": \"DueNextMonthDays\",\n \"support\": \"full\",\n \"note\": \"DATE_DRIVEN only.\"\n },\n {\n \"qbo\": \"DiscountDayOfMonth\",\n \"support\": \"full\",\n \"note\": \"DATE_DRIVEN only.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Update any Term field\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"qbXML has no StandardTermsMod or DateDrivenTermsMod — Desktop's OSR only defines Add and Query for both Terms lists. Term write support is create-only.\"\n },\n {\n \"case\": \"Deactivate a Term\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Deactivation is a Mod-only operation (IsActive via StandardTermsMod/DateDrivenTermsMod), which doesn't exist in qbXML. Impossible via the SDK, not just unimplemented here.\"\n }\n ]\n },\n \"TimeActivity\": {\n \"entity\": \"TimeActivity\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Employee and vendor time; Duration compiled from Hours/Minutes or a StartTime/EndTime span\",\n \"fields\": [\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"NameOf\",\n \"support\": \"full\",\n \"note\": \"Employee or Vendor; anything else returns 2010. Desktop does not store the kind: reads ask QuickBooks which name list owns the entry (one extra round trip, cached per company file for 15 minutes) and fail with 502 NAME_LOOKUP_FAILED if that lookup fails. An entry whose name is neither an employee nor a vendor carries no NameOf.\"\n },\n {\n \"qbo\": \"EmployeeRef\",\n \"support\": \"full\",\n \"note\": \"Required when NameOf is Employee or omitted; Desktop EntityRef. Missing value returns 2020. Sending EmployeeRef together with VendorRef returns 2010.\"\n },\n {\n \"qbo\": \"VendorRef\",\n \"support\": \"full\",\n \"note\": \"Vendor time: send NameOf Vendor with VendorRef (or just VendorRef). Desktop EntityRef. Vendor time must be NotBillable, which is what we send when BillableStatus is omitted; Billable vendor time is refused by QuickBooks.\"\n },\n {\n \"qbo\": \"CustomerRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ItemRef\",\n \"support\": \"full\",\n \"note\": \"Desktop ItemServiceRef.\"\n },\n {\n \"qbo\": \"ClassRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DepartmentRef\",\n \"support\": \"none\",\n \"note\": \"UNMAPPED_FIELD by default. With Departments from classes turned on for the company file, the gateway maps it to the header ClassRef (written to it, read from it); sending a different ClassRef as well is a 400.\",\n \"error\": \"UNMAPPED_FIELD\"\n },\n {\n \"qbo\": \"Description\",\n \"support\": \"full\",\n \"note\": \"Desktop Notes.\"\n },\n {\n \"qbo\": \"BillableStatus\",\n \"support\": \"partial\",\n \"note\": \"Billable, NotBillable, HasBeenBilled; any other value returns 2010. Desktop is stricter than QBO here: \\\"Billable\\\" requires BOTH CustomerRef and ItemRef on the same entry, or QuickBooks rejects the save (\\\"Billable activities must have a customer:job and service item\\\"). Send both, or mark the entry NotBillable. Omitted on create → we emit NotBillable explicitly (QBO's omitted-default); Desktop would otherwise infer Billable from CustomerRef alone. A sparse update that never mentions BillableStatus carries the stored value forward instead — the default only applies to genuinely-absent-on-create.\"\n },\n {\n \"qbo\": \"Hours\",\n \"support\": \"full\",\n \"note\": \"Explicit duration input; wins over StartTime/EndTime when both are present.\"\n },\n {\n \"qbo\": \"Minutes\",\n \"support\": \"full\",\n \"note\": \"Explicit duration input; wins over StartTime/EndTime when both are present.\"\n },\n {\n \"qbo\": \"StartTime\",\n \"support\": \"full\",\n \"note\": \"Alternate duration input paired with EndTime; Desktop only stores the computed Duration, not the span itself.\"\n },\n {\n \"qbo\": \"EndTime\",\n \"support\": \"full\",\n \"note\": \"Alternate duration input paired with StartTime; must be after it, or 2010.\"\n },\n {\n \"qbo\": \"BreakHours\",\n \"support\": \"partial\",\n \"note\": \"Only valid alongside StartTime/EndTime; supplying it with Hours/Minutes returns 2010.\"\n },\n {\n \"qbo\": \"BreakMinutes\",\n \"support\": \"partial\",\n \"note\": \"Only valid alongside StartTime/EndTime; supplying it with Hours/Minutes returns 2010.\"\n },\n {\n \"qbo\": \"HourlyRate\",\n \"support\": \"partial\",\n \"note\": \"Accepted and ignored. Desktop time tracking does not take a Rate through this interface: QuickBooks answers \\\"The field Rate is not supported by this implementation\\\" (probe PD5), so it is never sent.\"\n },\n {\n \"qbo\": \"CostRate\",\n \"support\": \"partial\",\n \"note\": \"Accepted and ignored. Desktop time tracking has no cost-rate element.\"\n },\n {\n \"qbo\": \"Taxable\",\n \"support\": \"partial\",\n \"note\": \"Accepted and ignored — Desktop time tracking has no taxable flag.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"note\": \"Desktop TimeTrackingQueryRq has no OwnerID element (qbXML 13.0), so custom fields are never returned for time entries. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Accepted and ignored. Desktop time tracking has no currency. On a single-currency file a CurrencyRef other than USD or an ExchangeRate other than 1 is refused (400 UNSUPPORTED_BY_DESKTOP).\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Accepted and ignored. Desktop time tracking has no currency. On a single-currency file a CurrencyRef other than USD or an ExchangeRate other than 1 is refused (400 UNSUPPORTED_BY_DESKTOP).\"\n },\n {\n \"qbo\": \"PayrollItemRef\",\n \"support\": \"none\",\n \"note\": \"Desktop PayrollItemWageRef has no QBO Accounting TimeActivity equivalent (QBO Payroll is a separate product).\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"TxnNumber\",\n \"support\": \"none\",\n \"note\": \"Desktop's internal auto-increment TxnNumber has no QBO equivalent and is not surfaced.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n }\n ],\n \"unsupported\": []\n },\n \"Transfer\": {\n \"entity\": \"Transfer\",\n \"verdict\": \"live\",\n \"group\": \"banking\",\n \"read\": \"full\",\n \"write\": \"full\",\n \"headline\": \"Bank-to-bank transfer between two accounts\",\n \"fields\": [\n {\n \"qbo\": \"FromAccountRef\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop TransferFromAccountRef.\"\n },\n {\n \"qbo\": \"ToAccountRef\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop TransferToAccountRef.\"\n },\n {\n \"qbo\": \"Amount\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). Writes are accepted and ignored. On a single-currency file a CurrencyRef other than USD or an ExchangeRate other than 1 is refused (400 UNSUPPORTED_BY_DESKTOP).\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only. Writes are accepted and ignored. On a single-currency file a CurrencyRef other than USD or an ExchangeRate other than 1 is refused (400 UNSUPPORTED_BY_DESKTOP).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"\\\"Transfer\\\" is not a valid qbXML TxnDelType enum value (verified live: status 3110), so delete is not wired for this entity.\"\n }\n ]\n },\n \"Vendor\": {\n \"entity\": \"Vendor\",\n \"verdict\": \"live\",\n \"group\": \"purchasing\",\n \"read\": \"full\",\n \"write\": \"full\",\n \"headline\": \"1099 / tax-ID field naming only\",\n \"fields\": [\n {\n \"qbo\": \"DisplayName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"CompanyName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Title\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"GivenName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"MiddleName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"FamilyName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrintOnCheckName\",\n \"support\": \"full\",\n \"note\": \"Desktop PrintAs.\"\n },\n {\n \"qbo\": \"BillAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrimaryPhone\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"AlternatePhone\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Fax\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrimaryEmailAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"TaxIdentifier\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop VendorTaxIdent.\"\n },\n {\n \"qbo\": \"Vendor1099\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop IsVendorEligibleFor1099.\"\n },\n {\n \"qbo\": \"AcctNum\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Balance\",\n \"support\": \"full\",\n \"note\": \"Read-only, as in QBO.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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).\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). Written on create and stored by Desktop (the currency must be active; activate it with CompanyCurrency). A sparse vendor update that sends no currency leaves CurrencyRef unchanged (proven live). Changing the currency on update is not proven live (Desktop may refuse it once the vendor has transactions, as it does for customers). On a file with multicurrency off only USD is accepted (and dropped).\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Not a Desktop vendor field. Accepted and ignored.\"\n }\n ],\n \"unsupported\": []\n },\n \"VendorCredit\": {\n \"entity\": \"VendorCredit\",\n \"verdict\": \"live\",\n \"group\": \"purchasing\",\n \"read\": \"full\",\n \"write\": \"full\",\n \"headline\": \"Bill mirror image — expense and item lines\",\n \"fields\": [\n {\n \"qbo\": \"VendorRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"APAccountRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"full\",\n \"note\": \"AccountBasedExpenseLineDetail and ItemBasedExpenseLineDetail via shared Bill line machinery. Update: Line is the WHOLE table, as in QBO. A line sent with its Id (the Line.Id a read returned) keeps that line, a line with no Id is added, and a line you leave out is deleted. Omit Line to leave every line alone (a header-only update such as PrivateNote never touches lines); an empty array is refused (2020), and a repeated or unknown Id is refused (2010). A line cannot change type: sending an expense line's Id with an item detail (or the reverse) is 2010, so omit the Id to replace it. On an item line that sends Amount without Qty or UnitPrice, Desktop keeps the stored quantity and re-derives the unit cost, so the Amount you send is the Amount you read back (verified live, 2026-10-14). Item group lines read as their component item lines, in the group's place and in Desktop's order, each carrying the TenkeyBridge extension fields GroupLineId (the group's Id) and GroupItemRef. The Id on each of those component lines is read-only: it identifies what was read and is not accepted as a line Id on a write. A transaction that has item group lines refuses a Line update with UNSUPPORTED_BY_DESKTOP, because a table update would delete them; header-only updates still work.\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only from Desktop CreditAmount.\"\n },\n {\n \"qbo\": \"Balance\",\n \"support\": \"full\",\n \"note\": \"Read-only remaining credit from Desktop CreditRemaining.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the vendor, so CurrencyRef is checked and then dropped: one that differs from the vendor's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create. On a sparse update it is sent only when you change it; the update placement is not proven live.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop CreditAmountInHomeCurrency. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension: QBO cannot void a VendorCredit; QuickBooks Desktop can. POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType VendorCredit), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QuickBooks Enterprise 24 (2026-10-15). The re-read shows PrivateNote as `VOID: <memo>` and every amount and line Amount at 0.00 with the lines kept. A void does not reliably advance the SyncToken, so re-read the record instead of relying on it; voiding again is accepted. The response is whatever Desktop returns on the re-read (nothing is fabricated).\"\n }\n ],\n \"unsupported\": []\n },\n \"VendorType\": {\n \"entity\": \"VendorType\",\n \"verdict\": \"gap\",\n \"group\": \"gaps\",\n \"read\": \"none\",\n \"write\": \"none\",\n \"headline\": \"QBO has no VendorType entity to be compatible with — Desktop's vendor-type list (VendorTypeAdd/Query) has no counterpart in the QBO Accounting API, so TenkeyBridge does not expose it.\",\n \"fields\": [],\n \"unsupported\": [\n {\n \"case\": \"read\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"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.\",\n \"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.\"\n },\n {\n \"case\": \"query\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"No QBO VendorType resource to mirror, so no query is exposed.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"No QBO VendorType resource to mirror, so no create is exposed.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"No QBO VendorType resource to mirror, so no update is exposed.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"No QBO VendorType resource to mirror, so no delete is exposed.\"\n }\n ]\n }\n};\n","import { ENTITIES, type EntityName } from \"@tenkeybridge/client\";\nimport { CATALOG, type CatalogEntry } from \"./generated/catalog.js\";\n\nexport function resolveCatalog(name: string): CatalogEntry | undefined {\n const key = Object.keys(CATALOG).find((k) => k.toLowerCase() === name.toLowerCase());\n return key ? CATALOG[key] : undefined;\n}\n\nexport function resolveEntityName(name: string): EntityName | undefined {\n return (Object.keys(ENTITIES) as EntityName[]).find(\n (e) => e.toLowerCase() === name.toLowerCase(),\n );\n}\n\nexport type CatalogSummaryRow = Pick<\n CatalogEntry,\n \"entity\" | \"verdict\" | \"group\" | \"read\" | \"write\" | \"headline\" | \"usage\"\n>;\n\nexport function catalogSummary(): CatalogSummaryRow[] {\n return Object.values(CATALOG).map(({ entity, verdict, group, read, write, headline, usage }) => ({\n entity,\n verdict,\n group,\n read,\n write,\n headline,\n ...(usage ? { usage } : {}),\n }));\n}\n","import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { ENTITIES, TenkeyBridgeApiError, type EntityName, type QueryOptions } from \"@tenkeybridge/client\";\nimport { z } from \"zod\";\nimport { resolveCatalog, resolveEntityName } from \"./catalog.js\";\nimport { toolVisible, type AccessSummary } from \"./access.js\";\n\nexport interface EntityAccessorLike {\n get?(id?: string): Promise<unknown>;\n query?(opts?: QueryOptions): Promise<unknown>;\n create?(payload: unknown): Promise<unknown>;\n update?(payload: unknown): Promise<unknown>;\n delete?(args: { Id: string; SyncToken?: string }): Promise<unknown>;\n void?(args: { Id: string; SyncToken: string }): Promise<unknown>;\n}\n\nexport type GatewayClient = Record<string, unknown> & {\n query(entity: string, opts?: QueryOptions): Promise<unknown>;\n report?(name: string, params?: Record<string, string>): Promise<unknown>;\n setClearedStatus?(args: { TxnId: string; LineId?: string; ClearedStatus: string; TxnType?: string }, opts?: { requestId?: string }): Promise<unknown>;\n getClearedStatus?(args: { txnId: string; txnType: string }): Promise<unknown>;\n};\n\ntype ToolResult = {\n content: Array<{ type: \"text\"; text: string }>;\n isError?: boolean;\n};\n\nfunction ok(result: unknown): ToolResult {\n return { content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }] };\n}\n\nfunction fail(message: string): ToolResult {\n return { isError: true, content: [{ type: \"text\", text: message }] };\n}\n\nfunction failure(err: unknown): ToolResult {\n if (err instanceof TenkeyBridgeApiError) {\n return fail(\n JSON.stringify(\n {\n status: err.status,\n code: err.code,\n message: err.message,\n fixes: err.tkb?.fixes,\n docsUrl: err.tkb?.docsUrl,\n ...(err.code === \"SCOPE_DENIED\"\n ? { hint: \"This credential is restricted. Ask the owner of this OAuth app to widen its access in the TenkeyBridge portal. Do not retry.\" }\n : {}),\n ...(err.code === \"IP_NOT_ALLOWED\"\n ? { hint: \"This OAuth app only accepts calls from certain IP addresses and this server is not one of them. Ask the owner to add this server's public address under Allowed IP addresses in the TenkeyBridge portal. Do not retry or re-authorize.\" }\n : {}),\n },\n null,\n 2,\n ),\n );\n }\n return fail(err instanceof Error ? err.message : String(err));\n}\n\nfunction unknownEntity(name: string): ToolResult {\n const gap = resolveCatalog(name);\n if (gap) {\n if (gap.verdict === \"live\") {\n // Live platform endpoints (Reports, Batch, CDC, ...) aren't entities — no accessor\n // exists for them, so don't fall through to the gap-caveat shape below, which would\n // read as \"call this tool, mind the caveats\" and send an agent into a retry loop.\n return fail(\n `${gap.entity} is a platform endpoint, not reachable through this server's entity tools. ` +\n `${gap.entity === \"Reports\" ? \"Use the run_report tool.\" : `Call the REST API directly: ${gap.usage}.`} Detail: compat://entity/${gap.entity.toLowerCase()}`,\n );\n }\n const cases = gap.unsupported\n .map((u) => `- ${u.case}: ${u.error}${u.workaround ? ` — workaround: ${u.workaround}` : \"\"}`)\n .join(\"\\n\");\n return fail(`${gap.entity}: ${gap.headline}\\n${cases}\\nDetail: compat://entity/${gap.entity.toLowerCase()}`);\n }\n return fail(\n `Unknown entity \"${name}\". Supported entities: ${Object.keys(ENTITIES).join(\", \")}. ` +\n `Read the compat://catalog resource to check support before calling.`,\n );\n}\n\nfunction accessor(client: GatewayClient, name: EntityName): EntityAccessorLike {\n return client[ENTITIES[name].accessor] as EntityAccessorLike;\n}\n\nfunction readOnly(name: EntityName): ToolResult {\n const entry = resolveCatalog(name);\n return fail(\n `${name} is read-only through TenkeyBridge (write: ${ENTITIES[name].write}).` +\n (entry ? ` ${entry.headline}` : \"\") +\n ` Detail: compat://entity/${name.toLowerCase()}`,\n );\n}\n\nexport function registerTools(server: McpServer, client: GatewayClient, access?: AccessSummary): void {\n // Restricted keys: hide tools the credential cannot use at all. Best-effort UX only;\n // the gateway enforces. No access block (older gateway) leaves every tool listed.\n const hide = (name: string, tool: { disable(): void }): void => {\n if (!toolVisible(access, name)) tool.disable();\n };\n\n const entityArg = z\n .string()\n .describe('Entity name, e.g. \"Invoice\" or \"Customer\" (case-insensitive). See compat://catalog.');\n\n hide(\"query\", server.registerTool(\n \"query\",\n {\n description:\n \"Run a QBO-style query against the connected QuickBooks Desktop company file. \" +\n \"Supports AND-joined WHERE conditions (=, !=, <, >, <=, >=, IN, LIKE; no OR) plus startPosition/maxResults paging. \" +\n \"Check the compat://catalog resource for entity support first.\",\n inputSchema: {\n entity: entityArg,\n 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'\\\"\"),\n startPosition: z.number().int().positive().optional(),\n maxResults: z.number().int().positive().max(1000).optional(),\n },\n },\n async ({ entity, where, startPosition, maxResults }) => {\n const name = resolveEntityName(entity);\n if (!name) return unknownEntity(entity);\n try {\n return ok(await client.query(name, {\n ...(where !== undefined ? { where } : {}),\n ...(startPosition !== undefined ? { startPosition } : {}),\n ...(maxResults !== undefined ? { maxResults } : {}),\n }));\n } catch (err) {\n return failure(err);\n }\n },\n ));\n\n hide(\"run_report\", server.registerTool(\n \"run_report\",\n {\n description:\n \"Run a QuickBooks Desktop report and get QBO-style report JSON (Header, Columns, Rows). \" +\n \"Report names are QBO names such as ProfitAndLoss, BalanceSheet or CashFlow, plus Desktop extension reports. \" +\n \"Params use QBO names, e.g. start_date, end_date, date_macro, accounting_method, summarize_column_by, \" +\n \"customer, vendor, item, class, account, account_type, transaction_type, columns, report_date, \" +\n \"start_moddate, end_moddate. BudgetOverview and BudgetVsActuals take fiscal_year instead of dates; \" +\n \"MissingChecks requires account, and JobProfitabilityDetail and JobEstimatesVsActualsDetail require customer. \" +\n \"ClassSales gives income by class; TransactionListWithSplits lists every split line. \" +\n \"Read compat://entity/reports for the available reports and which params each takes.\",\n inputSchema: {\n report: z.string().describe('Report name, e.g. \"ProfitAndLoss\" (case-insensitive).'),\n params: z.record(z.string()).optional().describe('Query params, e.g. { \"date_macro\": \"Last Month\" }.'),\n },\n },\n async ({ report, params }) => {\n if (!client.report) return fail(\"This TenkeyBridge client has no report() method; upgrade @tenkeybridge/client to 0.5.0.\");\n try {\n return ok(await client.report(report, params ?? {}));\n } catch (err) {\n return failure(err);\n }\n },\n ));\n\n hide(\"get\", server.registerTool(\n \"get\",\n {\n description:\n \"Fetch one entity by Id (singletons like CompanyInfo and Preferences need no id).\",\n inputSchema: {\n entity: entityArg,\n id: z.string().optional().describe(\"Entity Id — required unless the entity is a singleton.\"),\n },\n },\n async ({ entity, id }) => {\n const name = resolveEntityName(entity);\n if (!name) return unknownEntity(entity);\n const acc = accessor(client, name);\n if (!acc?.get) return fail(`${name} does not support get. See compat://entity/${name.toLowerCase()}.`);\n try {\n if (ENTITIES[name].singleton) return ok(await acc.get());\n if (!id) return fail(`${name} requires an id — pass the entity Id (use the query tool to find one).`);\n return ok(await acc.get(id));\n } catch (err) {\n return failure(err);\n }\n },\n ));\n\n hide(\"create\", server.registerTool(\n \"create\",\n {\n description:\n \"Create an entity from QBO-shaped JSON (same payloads as the QuickBooks Online API). \" +\n \"Check compat://entity/{name} for field support first.\",\n inputSchema: {\n entity: entityArg,\n payload: z.record(z.unknown()).describe(\"QBO-shaped entity JSON.\"),\n },\n },\n async ({ entity, payload }) => {\n const name = resolveEntityName(entity);\n if (!name) return unknownEntity(entity);\n if (ENTITIES[name].write === \"none\") return readOnly(name);\n try {\n return ok(await accessor(client, name).create!(payload));\n } catch (err) {\n return failure(err);\n }\n },\n ));\n\n hide(\"update\", server.registerTool(\n \"update\",\n {\n description:\n \"Sparse-update an entity: payload must include Id plus only the fields to change.\",\n inputSchema: {\n entity: entityArg,\n payload: z.record(z.unknown()).describe(\"Must include Id; include only fields being changed.\"),\n },\n },\n async ({ entity, payload }) => {\n const name = resolveEntityName(entity);\n if (!name) return unknownEntity(entity);\n if (ENTITIES[name].write === \"none\") return readOnly(name);\n if (typeof payload.Id !== \"string\" || payload.Id.length === 0) {\n return fail(\"update payload must include the entity's Id (string). Updates are sparse — send Id + changed fields only.\");\n }\n try {\n return ok(await accessor(client, name).update!(payload));\n } catch (err) {\n return failure(err);\n }\n },\n ));\n\n hide(\"delete\", server.registerTool(\n \"delete\",\n {\n description: \"Delete an entity by Id (SyncToken optional, as in QBO).\",\n inputSchema: {\n entity: entityArg,\n id: z.string(),\n syncToken: z.string().optional(),\n },\n },\n async ({ entity, id, syncToken }) => {\n const name = resolveEntityName(entity);\n if (!name) return unknownEntity(entity);\n if (ENTITIES[name].write === \"none\") return readOnly(name);\n try {\n return ok(await accessor(client, name).delete!({ Id: id, ...(syncToken ? { SyncToken: syncToken } : {}) }));\n } catch (err) {\n return failure(err);\n }\n },\n ));\n\n hide(\"void\", server.registerTool(\n \"void\",\n {\n description:\n \"Void a transaction by Id + SyncToken (QBO ?operation=void). Supported: Invoice, SalesReceipt, Purchase, BillPayment, and as TenkeyBridge extensions Bill, VendorCredit, Deposit, JournalEntry, InventoryAdjustment. \" +\n \"Destructive: on QuickBooks Desktop the record stays but its totals are zeroed and its memo is prefixed \\\"VOID:\\\". \" +\n \"Returns the post-void record. Fetch the current SyncToken with the get tool first.\",\n inputSchema: {\n entity: entityArg,\n id: z.string(),\n syncToken: z.string().describe(\"Current SyncToken of the transaction (required; a stale token is rejected).\"),\n },\n },\n async ({ entity, id, syncToken }) => {\n const name = resolveEntityName(entity);\n if (!name) return unknownEntity(entity);\n if (!ENTITIES[name].voidable) {\n const supported = Object.values(ENTITIES).filter((e) => e.voidable).map((e) => e.name).join(\", \");\n return fail(`${name} cannot be voided through TenkeyBridge. Voidable entities: ${supported}.`);\n }\n try {\n return ok(await accessor(client, name).void!({ Id: id, SyncToken: syncToken }));\n } catch (err) {\n return failure(err);\n }\n },\n ));\n\n const CLEARED_NEEDS = \"This TenkeyBridge client has no cleared status methods; upgrade @tenkeybridge/client to 0.8.0.\";\n\n hide(\"set_cleared_status\", server.registerTool(\n \"set_cleared_status\",\n {\n description:\n \"Set QuickBooks Desktop's cleared status (Cleared, NotCleared, Pending) on an existing Purchase (check), Deposit, BillPayment (check) or JournalEntry. \" +\n \"A TenkeyBridge extension (QBO has no equivalent). With only the transaction id it sets the transaction's own bank/card side \" +\n \"(a journal entry's first line); with line_id it sets that one line's account side, which must be a bank or other balance sheet account \" +\n \"other than A/R and A/P (an expense or income line is refused). A Transfer cannot be cleared through the API. \" +\n \"Setting a status is idempotent, so retrying is safe; pass request_id (and txn_type) for replay protection. \" +\n \"Use get_cleared_status to confirm what stuck.\",\n inputSchema: {\n txn_id: z.string().describe(\"Id of the transaction, as returned by get/query.\"),\n cleared_status: z.enum([\"Cleared\", \"NotCleared\", \"Pending\"]),\n line_id: z.string().optional().describe(\"Line.Id of the line whose account side to set; omit to set the transaction's own bank side.\"),\n txn_type: z.enum([\"Purchase\", \"Deposit\", \"BillPayment\", \"JournalEntry\"]).optional().describe(\"Entity of the transaction; lets a lost outcome be reconciled with a read.\"),\n request_id: z.string().optional().describe(\"Idempotency key (1-50 printable ASCII characters).\"),\n },\n },\n async ({ txn_id, cleared_status, line_id, txn_type, request_id }) => {\n if (!client.setClearedStatus) return fail(CLEARED_NEEDS);\n try {\n return ok(await client.setClearedStatus(\n { TxnId: txn_id, ClearedStatus: cleared_status, ...(line_id !== undefined ? { LineId: line_id } : {}), ...(txn_type !== undefined ? { TxnType: txn_type } : {}) },\n request_id !== undefined ? { requestId: request_id } : {},\n ));\n } catch (err) {\n return failure(err);\n }\n },\n ));\n\n hide(\"get_cleared_status\", server.registerTool(\n \"get_cleared_status\",\n {\n description:\n \"Read the cleared status of each bank / balance sheet split of one transaction (Purchase, Deposit, BillPayment, JournalEntry, or Transfer). \" +\n \"Costs one extra bounded QuickBooks read (the transaction's own accounts on its own date). Each split has Role, LineId (to send to set_cleared_status) and ClearedStatus; \" +\n \"SetByTxnId marks the split a set without line_id would change. Other values QuickBooks reports (such as a reconciled state) are passed through as it spells them.\",\n inputSchema: {\n txn_id: z.string(),\n txn_type: z.enum([\"Purchase\", \"Deposit\", \"BillPayment\", \"JournalEntry\", \"Transfer\"]),\n },\n },\n async ({ txn_id, txn_type }) => {\n if (!client.getClearedStatus) return fail(CLEARED_NEEDS);\n try {\n return ok(await client.getClearedStatus({ txnId: txn_id, txnType: txn_type }));\n } catch (err) {\n return failure(err);\n }\n },\n ));\n}\n","import type { AccessSummary } from \"@tenkeybridge/client\";\nexport type { AccessSummary };\n\ntype Op = \"read\" | \"create\" | \"update\" | \"delete\" | \"void\" | \"send\";\n\n/** Operation (and the pseudo-entity, when the tool is not entity-scoped) each tool needs. */\nconst NEEDS: Record<string, { op: Op; entity?: string }> = {\n query: { op: \"read\" },\n get: { op: \"read\" },\n create: { op: \"create\" },\n update: { op: \"update\" },\n delete: { op: \"delete\" },\n void: { op: \"void\" },\n run_report: { op: \"read\", entity: \"Report\" },\n get_cleared_status: { op: \"read\", entity: \"ClearedStatus\" },\n set_cleared_status: { op: \"update\", entity: \"ClearedStatus\" },\n};\n\nfunction layerAllows(rules: AccessSummary[\"rules\"], op: Op, entity?: string): boolean {\n return rules.some((r) => {\n if (!r.ops.includes(op)) return false;\n if (!entity) return true; // entity-scoped tool: any rule granting the op is enough to list it\n return r.entity === \"*\" || r.entity === entity;\n });\n}\n\n/**\n * Should this tool be listed for a credential with this access? True when\n * `access` is absent (older gateway: unknown means list everything). For\n * entity-scoped tools one granting rule anywhere keeps the tool; the gateway\n * still refuses entities outside the rule, and SCOPE_DENIED text surfaces.\n */\nexport function toolVisible(access: AccessSummary | undefined, tool: string): boolean {\n if (!access) return true;\n const need = NEEDS[tool];\n if (!need) return true;\n if (!layerAllows(access.rules, need.op, need.entity)) return false;\n if (access.companyRules && !layerAllows(access.companyRules, need.op, need.entity)) return false;\n return true;\n}\n","export const PKG_VERSION = \"0.9.0\";\n","import { mkdirSync, readFileSync, writeFileSync } from \"node:fs\";\nimport { homedir } from \"node:os\";\nimport { dirname, join } from \"node:path\";\n\nexport type McpAuth =\n | { accessToken: string }\n | { clientId: string; clientSecret: string; refreshToken: string };\n\nexport interface McpConfig {\n companyId: string;\n baseUrl?: string;\n auth: McpAuth;\n tokenFile?: string;\n /** Human-readable notes the CLI prints to stderr (deprecated env vars). */\n deprecations: string[];\n}\n\nconst PORTAL_URL = \"https://api.tenkeybridge.com/portal\";\n\nexport function defaultTokenFile(companyId: string): string {\n return join(homedir(), \".tenkeybridge\", `mcp-tokens-${companyId}.json`);\n}\n\nexport function loadConfig(env: Record<string, string | undefined>): McpConfig {\n const fromNew = env.TKB_COMPANY_ID;\n const fromOld = env.TKB_REALM_ID;\n // An empty value counts as unset (e.g. `TKB_COMPANY_ID=` in an env template).\n if (fromNew && fromOld && fromNew !== fromOld) {\n throw new Error(\"TKB_COMPANY_ID and TKB_REALM_ID (deprecated) disagree — set TKB_COMPANY_ID only.\");\n }\n const companyId = fromNew || fromOld;\n if (!companyId) {\n throw new Error(\n `TKB_COMPANY_ID is required — the Company ID of the connected QuickBooks company file (shown in the portal: ${PORTAL_URL}).`,\n );\n }\n const deprecations = !fromNew && fromOld ? [\"TKB_REALM_ID is deprecated; set TKB_COMPANY_ID instead.\"] : [];\n const baseUrl = env.TKB_BASE_URL;\n\n if (env.TKB_ACCESS_TOKEN) {\n return { companyId, deprecations, ...(baseUrl ? { baseUrl } : {}), auth: { accessToken: env.TKB_ACCESS_TOKEN } };\n }\n\n const clientId = env.TKB_CLIENT_ID;\n const clientSecret = env.TKB_CLIENT_SECRET;\n const refreshToken = env.TKB_REFRESH_TOKEN;\n if (!clientId || !clientSecret || !refreshToken) {\n const missing = [\n !clientId && \"TKB_CLIENT_ID\",\n !clientSecret && \"TKB_CLIENT_SECRET\",\n !refreshToken && \"TKB_REFRESH_TOKEN\",\n ].filter(Boolean).join(\", \");\n throw new Error(\n `Missing ${missing}. Set either TKB_ACCESS_TOKEN, or all of TKB_CLIENT_ID + TKB_CLIENT_SECRET + TKB_REFRESH_TOKEN (create an OAuth app in the portal: ${PORTAL_URL}).`,\n );\n }\n\n const tokenFile = env.TKB_TOKEN_FILE ?? defaultTokenFile(companyId);\n const stored = readStoredRefreshToken(tokenFile);\n return {\n companyId,\n deprecations,\n ...(baseUrl ? { baseUrl } : {}),\n tokenFile,\n auth: { clientId, clientSecret, refreshToken: stored ?? refreshToken },\n };\n}\n\nexport function readStoredRefreshToken(file: string): string | undefined {\n try {\n const parsed = JSON.parse(readFileSync(file, \"utf8\")) as { refreshToken?: unknown };\n return typeof parsed.refreshToken === \"string\" ? parsed.refreshToken : undefined;\n } catch {\n return undefined;\n }\n}\n\nexport function persistRefreshToken(file: string, refreshToken: string): void {\n mkdirSync(dirname(file), { recursive: true, mode: 0o700 });\n writeFileSync(file, `${JSON.stringify({ refreshToken, updatedAt: new Date().toISOString() })}\\n`, {\n mode: 0o600,\n });\n}\n"],"mappings":";AAAA,SAAS,aAAAA,kBAAiB;;;ACA1B,SAAoB,wBAAwB;;;AC6BrC,IAAM,UAAwC;AAAA,EACnD,WAAW;AAAA,IACT,UAAU;AAAA,IACV,WAAW;AAAA,IACX,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,UAAU;AAAA,MACR;AAAA,QACE,OAAO;AAAA,QACP,WAAW;AAAA,MACb;AAAA,MACA;AAAA,QACE,OAAO;AAAA,QACP,WAAW;AAAA,MACb;AAAA,MACA;AAAA,QACE,OAAO;AAAA,QACP,WAAW;AAAA,QACX,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AiB,EAAE;AAAA,EACjH;AAEA,QAAM,WAAW,IAAI;AACrB,QAAM,eAAe,IAAI;AACzB,QAAM,eAAe,IAAI;AACzB,MAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,cAAc;AAC/C,UAAM,UAAU;AAAA,MACd,CAAC,YAAY;AAAA,MACb,CAAC,gBAAgB;AAAA,MACjB,CAAC,gBAAgB;AAAA,IACnB,EAAE,OAAO,OAAO,EAAE,KAAK,IAAI;AAC3B,UAAM,IAAI;AAAA,MACR,WAAW,OAAO,sIAAsI,UAAU;AAAA,IACpK;AAAA,EACF;AAEA,QAAM,YAAY,IAAI,kBAAkB,iBAAiB,SAAS;AAClE,QAAM,SAAS,uBAAuB,SAAS;AAC/C,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,GAAI,UAAU,EAAE,QAAQ,IAAI,CAAC;AAAA,IAC7B;AAAA,IACA,MAAM,EAAE,UAAU,cAAc,cAAc,UAAU,aAAa;AAAA,EACvE;AACF;AAEO,SAAS,uBAAuB,MAAkC;AACvE,MAAI;AACF,UAAM,SAAS,KAAK,MAAM,aAAa,MAAM,MAAM,CAAC;AACpD,WAAO,OAAO,OAAO,iBAAiB,WAAW,OAAO,eAAe;AAAA,EACzE,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAEO,SAAS,oBAAoB,MAAc,cAA4B;AAC5E,YAAU,QAAQ,IAAI,GAAG,EAAE,WAAW,MAAM,MAAM,IAAM,CAAC;AACzD,gBAAc,MAAM,GAAG,KAAK,UAAU,EAAE,cAAc,YAAW,oBAAI,KAAK,GAAE,YAAY,EAAE,CAAC,CAAC;AAAA,GAAM;AAAA,IAChG,MAAM;AAAA,EACR,CAAC;AACH;","names":["McpServer","ENTITIES","ENTITIES","McpServer"]}
|
|
1
|
+
{"version":3,"sources":["../src/server.ts","../src/resources.ts","../src/generated/catalog.ts","../src/catalog.ts","../src/tools.ts","../src/access.ts","../src/version.ts","../src/config.ts"],"sourcesContent":["import { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { registerResources } from \"./resources.js\";\nimport { registerTools, type GatewayClient } from \"./tools.js\";\nimport type { AccessSummary } from \"./access.js\";\nimport { PKG_VERSION } from \"./version.js\";\n\nexport const SERVER_NAME = \"tenkeybridge\";\n\n/** `access`: from `client.access()`; omit (or undefined) to list every tool. */\nexport function buildServer(client: GatewayClient, access?: AccessSummary): McpServer {\n const server = new McpServer({ name: SERVER_NAME, version: PKG_VERSION });\n registerTools(server, client, access);\n registerResources(server);\n return server;\n}\n","import { McpServer, ResourceTemplate } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { CATALOG } from \"./generated/catalog.js\";\nimport { catalogSummary, resolveCatalog } from \"./catalog.js\";\n\nexport function registerResources(server: McpServer): void {\n server.registerResource(\n \"compat-catalog\",\n \"compat://catalog\",\n {\n title: \"TenkeyBridge compatibility catalog\",\n description:\n \"Per-entity support summary (verdict, read/write level, headline). Read compat://entity/{name} for field-level detail before create/update calls.\",\n mimeType: \"application/json\",\n },\n async (uri) => ({\n contents: [\n { uri: uri.href, mimeType: \"application/json\", text: JSON.stringify(catalogSummary(), null, 2) },\n ],\n }),\n );\n\n server.registerResource(\n \"compat-entity\",\n new ResourceTemplate(\"compat://entity/{name}\", {\n list: () => ({\n resources: Object.values(CATALOG).map((entry) => ({\n uri: `compat://entity/${entry.entity.toLowerCase()}`,\n name: `${entry.entity} compatibility`,\n mimeType: \"application/json\",\n })),\n }),\n }),\n {\n title: \"Entity compatibility detail\",\n description: \"Full field-level support, unsupported cases, and workarounds for one entity.\",\n mimeType: \"application/json\",\n },\n async (uri, variables) => {\n const entry = resolveCatalog(String(variables.name));\n if (!entry) {\n throw new Error(`No compatibility entry for \"${String(variables.name)}\" — read compat://catalog for the list.`);\n }\n return {\n contents: [{ uri: uri.href, mimeType: \"application/json\", text: JSON.stringify(entry, null, 2) }],\n };\n },\n );\n}\n","// GENERATED by scripts/gen-catalog.mjs from compat/*.yaml — do not edit.\n// Regenerate: pnpm --filter @tenkeybridge/mcp gen\n\nexport interface CatalogField {\n qbo: string;\n support: string;\n note?: string;\n error?: string;\n}\n\nexport interface CatalogUnsupported {\n case: string;\n error: string;\n note?: string;\n workaround?: string;\n}\n\nexport interface CatalogEntry {\n entity: string;\n verdict: string;\n group: string;\n read: string;\n write: string;\n headline: string;\n usage?: string;\n fields: CatalogField[];\n unsupported: CatalogUnsupported[];\n}\n\nexport const CATALOG: Record<string, CatalogEntry> = {\n \"Account\": {\n \"entity\": \"Account\",\n \"verdict\": \"live\",\n \"group\": \"banking\",\n \"read\": \"full\",\n \"write\": \"full\",\n \"headline\": \"AccountType / AccountSubType enum mapping\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ParentRef\",\n \"support\": \"full\",\n \"note\": \"Becomes a Desktop sub-account; FullName is colon-delimited.\"\n },\n {\n \"qbo\": \"AcctNum\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Description\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"AccountType\",\n \"support\": \"partial\",\n \"note\": \"Mapped per the COMPATIBILITY.md appendix; unmapped values return 422 UNMAPPED_ACCOUNT_TYPE. Desktop-only Non-Posting appears on reads.\"\n },\n {\n \"qbo\": \"AccountSubType\",\n \"support\": \"partial\",\n \"note\": \"Accepted and ignored — Desktop has no account subtype; reads never return one.\"\n },\n {\n \"qbo\": \"FullyQualifiedName\",\n \"support\": \"full\",\n \"note\": \"Read-only, derived by Desktop.\"\n },\n {\n \"qbo\": \"SubAccount\",\n \"support\": \"full\",\n \"note\": \"Read-only, derived from Desktop Sublevel.\"\n },\n {\n \"qbo\": \"CurrentBalance\",\n \"support\": \"full\",\n \"note\": \"Read-only, as in QBO.\"\n },\n {\n \"qbo\": \"CurrentBalanceWithSubAccounts\",\n \"support\": \"full\",\n \"note\": \"Read-only; Desktop TotalBalance.\"\n },\n {\n \"qbo\": \"Classification\",\n \"support\": \"partial\",\n \"note\": \"Accepted and ignored on writes; not returned on reads — derive it from AccountType client-side.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"note\": \"Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only for now. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). Written on create and stored by Desktop, so a bank or card account can be foreign (the currency must be active; activate it with CompanyCurrency). Changing it on update is not proven live. On a file with multicurrency off only USD is accepted (and dropped).\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Not a Desktop account field. Accepted and ignored.\"\n },\n {\n \"qbo\": \"CashFlowClassification\",\n \"support\": \"none\",\n \"note\": \"Desktop AccountRet.CashFlowClassification has no honest QBO Account field; omitted rather than guessed at.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"SpecialAccountType\",\n \"support\": \"none\",\n \"note\": \"Desktop SpecialAccountType has no honest QBO Account field; omitted rather than guessed at.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n }\n ],\n \"unsupported\": []\n },\n \"Attachable\": {\n \"entity\": \"Attachable\",\n \"verdict\": \"gap\",\n \"group\": \"gaps\",\n \"read\": \"none\",\n \"write\": \"none\",\n \"headline\": \"Unsupported on QuickBooks Desktop, with no opt-in and no workaround inside TenkeyBridge. qbXML has no attachments interface (the word 'Attachment' does not occur anywhere in the qbxmlops130 message set), and TenkeyBridge does not store files itself.\",\n \"fields\": [],\n \"unsupported\": [\n {\n \"case\": \"read\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Re-audited 2026-07-29: zero occurrences of any attachment message (no AttachmentAdd/Query/Ref of any kind) across the full qbxmlops130 schema. Desktop's Attached Documents feature is UI-only; files attached in Desktop cannot be listed or fetched through TenkeyBridge.\",\n \"workaround\": \"Store documents in your own system keyed by the TenkeyBridge entity Id, which is what QuickBooks Desktop integrations have always had to do. Branch on UNSUPPORTED_BY_DESKTOP and skip the Attachable call for Desktop-backed companies.\"\n },\n {\n \"case\": \"query\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop has no attachments API over qbXML — Attachable queries always fail loud.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop has no attachments API over qbXML — attachments cannot be uploaded through TenkeyBridge.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop has no attachments API over qbXML — attachments cannot be modified through TenkeyBridge.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop has no attachments API over qbXML — attachments cannot be deleted through TenkeyBridge.\"\n }\n ]\n },\n \"Batch\": {\n \"entity\": \"Batch\",\n \"verdict\": \"live\",\n \"group\": \"platform\",\n \"read\": \"full\",\n \"write\": \"full\",\n \"headline\": \"Batch envelope — up to 30 create/update/delete/query operations in one request, executed sequentially with per-item faults.\",\n \"usage\": \"POST /v3/company/{companyId}/batch\",\n \"fields\": [\n {\n \"qbo\": \"bId\",\n \"support\": \"full\",\n \"note\": \"Required and unique per request; echoed verbatim on each BatchItemResponse slot.\"\n },\n {\n \"qbo\": \"operation (create | update | delete) + optionsData: void\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"operation (create | update | delete)\",\n \"support\": \"full\",\n \"note\": \"Runs the identical pipeline as the single-shot entity routes — same classification, faults, and result shapes.\"\n },\n {\n \"qbo\": \"Query items\",\n \"support\": \"full\",\n \"note\": \"Full /query parity: the same query language (AND-joined WHERE with =, !=, <, >, <=, >=, IN, LIKE; ORDERBY; COUNT(*); column lists; STARTPOSITION/MAXRESULTS), iterator-backed deep pages.\"\n },\n {\n \"qbo\": \"per-item faults\",\n \"support\": \"full\",\n \"note\": \"A failed item returns a Fault slot (with the tkb help block); the rest of the batch still runs.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"more than 30 items\",\n \"error\": \"BATCH_TOO_MANY_ITEMS\",\n \"note\": \"QBO's own per-request cap, cloned. Split into multiple batch calls.\"\n },\n {\n \"case\": \"optionsData other than void (or void paired with create/delete)\",\n \"error\": \"BATCH_UNSUPPORTED_OPTION\",\n \"note\": \"Only optionsData \\\"void\\\" on an update item is wired — any other value faults that item loud; the rest of the batch runs.\"\n },\n {\n \"case\": \"transactional rollback\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Batch is not a transaction (QBO's isn't either): items succeed or fault independently; earlier writes are never rolled back by a later failure.\"\n },\n {\n \"case\": \"entity CRUD or /query on Batch itself\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Batch is a platform endpoint, not an entity — POST /v3/company/{companyId}/batch.\"\n }\n ]\n },\n \"Bill\": {\n \"entity\": \"Bill\",\n \"verdict\": \"live\",\n \"group\": \"purchasing\",\n \"read\": \"full\",\n \"write\": \"full\",\n \"headline\": \"Account vs. item expense lines map cleanly\",\n \"fields\": [\n {\n \"qbo\": \"VendorRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DueDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"SalesTermRef\",\n \"support\": \"full\",\n \"note\": \"Desktop TermsRef.\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"full\",\n \"note\": \"Account-based and item-based expense lines; other line types return UNSUPPORTED_BY_DESKTOP. Update: Line is the WHOLE table, as in QBO. A line sent with its Id (the Line.Id a read returned) keeps that line, a line with no Id is added, and a line you leave out is deleted. Omit Line to leave every line alone (a header-only update such as PrivateNote never touches lines); an empty array is refused (2020), and a repeated or unknown Id is refused (2010). A line cannot change type: sending an expense line's Id with an item detail (or the reverse) is 2010, so omit the Id to replace it. On an item line that sends Amount without Qty or UnitPrice, Desktop keeps the stored quantity and re-derives the unit cost, so the Amount you send is the Amount you read back (verified live, 2026-10-14). Item group lines read as their component item lines, in the group's place and in Desktop's order, each carrying the TenkeyBridge extension fields GroupLineId (the group's Id) and GroupItemRef. The Id on each of those component lines is read-only: it identifies what was read and is not accepted as a line Id on a write. A transaction that has item group lines refuses a Line update with UNSUPPORTED_BY_DESKTOP, because a table update would delete them; header-only updates still work. Both AccountBasedExpenseLineDetail.ClassRef and ItemBasedExpenseLineDetail.ClassRef are read/written, mapping to Desktop ExpenseLineAdd/ExpenseLineRet and ItemLineAdd/ItemLineRet ClassRef respectively. On ExpenseLineAdd, ClassRef sits in OSR position (AccountRef < Amount < Memo < CustomerRef < ClassRef).\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only, computed by Desktop as AmountDue.\"\n },\n {\n \"qbo\": \"Balance\",\n \"support\": \"full\",\n \"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) — never used directly. Computed instead as 0 when IsPaid, else AmountDue minus whatever BillPaymentCheck/BillPaymentCreditCard/VendorCredit amounts LinkedTxn shows applied to this bill.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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'.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the vendor, so CurrencyRef is checked and then dropped: one that differs from the vendor's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create. On a sparse update it is sent only when you change it; the update placement is not proven live.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop AmountDueInHomeCurrency. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"LinkedTxn\",\n \"support\": \"partial\",\n \"note\": \"Read-only, populated on read: the PurchaseOrder a bill was created from and the BillPayment(s) and VendorCredit(s) applied to it, as {TxnId, TxnType}. Desktop-only link types (ItemReceipt, ...) are omitted. Proven live on QuickBooks Enterprise 24 (2026-10-20): a Bill created from a purchase order carries the PO, and a paid bill carries its check payment. Accepted and ignored on write, as in QBO. Linking a new Bill to a PurchaseOrder is not supported: Desktop's BillAdd LinkToTxnID pulls the PO's lines in, and a line-level link next to explicit lines is refused (3153).\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension: QBO cannot void a Bill; QuickBooks Desktop can. POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType Bill), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QuickBooks Enterprise 24 (2026-10-15). The re-read shows PrivateNote as `VOID: <memo>`, every amount and line Amount at 0.00 with the lines kept, TotalAmt 0.00, Balance 0.00 (Desktop reports it paid). A void does not reliably advance the SyncToken, so re-read the record instead of relying on it; voiding again is accepted. The response is whatever Desktop returns on the re-read (nothing is fabricated).\"\n }\n ],\n \"unsupported\": []\n },\n \"BillPayment\": {\n \"entity\": \"BillPayment\",\n \"verdict\": \"live\",\n \"group\": \"purchasing\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Fans out to BillPaymentCheck / BillPaymentCreditCard by PayType\",\n \"fields\": [\n {\n \"qbo\": \"PayType\",\n \"support\": \"full\",\n \"note\": \"Check → BillPaymentCheck*; CreditCard → BillPaymentCreditCard*. Updates: Check family only — qbXML has no BillPaymentCreditCardMod, so credit-card-family updates fail loud with UNSUPPORTED_BY_DESKTOP (#75); delete and re-create instead.\"\n },\n {\n \"qbo\": \"VendorRef\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop PayeeEntityRef.\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only from Desktop Amount; write-ignored on create/update — neither BillPaymentCheckAdd nor BillPaymentCreditCardAdd has a top-level Amount element in the OSR, Desktop derives it from the summed AppliedToTxnAdd/PaymentAmount values instead.\"\n },\n {\n \"qbo\": \"CheckPayment\",\n \"support\": \"full\",\n \"note\": \"CheckPayment.BankAccountRef ⇄ BankAccountRef.\"\n },\n {\n \"qbo\": \"CreditCardPayment\",\n \"support\": \"full\",\n \"note\": \"CreditCardPayment.CCAccountRef ⇄ CreditCardAccountRef.\"\n },\n {\n \"qbo\": \"PrintStatus\",\n \"support\": \"partial\",\n \"note\": \"Check flavor only; ⇄ IsToBePrinted. On update, PrintStatus NeedToPrint or PrintComplete sets IsToBePrinted true or false (verified live, 2026-10-14); Desktop then holds no reference number, so DocNumber reads back empty, and PrintStatus and DocNumber cannot be sent together. BillPaymentCheckAdd requires IsToBePrinted OR RefNumber (Desktop OSR); when a create supplies neither PrintStatus nor DocNumber, TenkeyBridge synthesizes IsToBePrinted=false so the Add stays schema-valid.\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"note\": \"Required — at least one; QuickBooks Desktop's BillPaymentCheckAdd/BillPaymentCreditCardAdd schema requires one or more AppliedToTxnAdd. Write: LinkedTxn bills → AppliedToTxnAdd; additional LinkedTxn VendorCredit → SetCredit (the Add request shape). Read: an applied vendor credit comes back nested as AppliedToTxnRet.LinkedTxn (TxnType VendorCredit, Amount negative — absolute value surfaced as QBO LinkedTxn.Amount), not SetCreditRet/SetCredit, which Desktop never returns on this Ret (verified live, 2026-09-28). Update (Check family): Line is the WHOLE application set, as in QBO, keyed on the bill (LinkedTxn[0].TxnId) and sent as AppliedToTxnMod. A bill left out of the array is unapplied (it reopens) and the payment total recomputes; a bill not yet applied is added. Omit Line to leave applications untouched (a header-only update such as PrivateNote never touches them). An empty array (2020) or a repeated bill (2010) is refused. A vendor credit is applied by adding a second LinkedTxn (TxnType VendorCredit) to the bill's line. A credit already applied stays applied when a later update omits it: Desktop keeps it on the bill, even after the payment is deleted. Credit-card-family payments cannot be updated at all, whatever PayType the body carries (UNSUPPORTED_BY_DESKTOP); delete and re-create.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the vendor, so CurrencyRef is checked and then dropped: one that differs from the vendor's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Create only (BillPaymentCheckMod does not take it, so it is not sent on update). Proven live on create for a EUR bill paid with APAccountRef naming the EUR A/P account and a rate of 1.10, which Desktop stored and returned on read. Without the foreign A/P account Desktop refuses the request (3120). Read on multicurrency files only.\"\n },\n {\n \"qbo\": \"APAccountRef\",\n \"support\": \"partial\",\n \"note\": \"Create only (BillPaymentCheckMod has no such element); read when Desktop returns it. A bill in a foreign currency sits in a foreign A/P account, and Desktop looks in the home A/P when the payment does not name it (3120, live). On create, when you send CurrencyRef or ExchangeRate and no APAccountRef, TenkeyBridge reads the A/P account of the one bill being paid and sends it. Send APAccountRef yourself when the payment applies several bills.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from the check payment AmountInHomeCurrency. Not yet proven live. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"query paging\",\n \"support\": \"full\",\n \"note\": \"STARTPOSITION and MAXRESULTS page across both Desktop families as one list: check payments, then credit card payments, each in Desktop order. A deep page costs two QuickBooks messages (the ids of every row the query selects, then the page by id) and faults with UNSUPPORTED_QUERY past 5000 rows in one family; narrow with a TxnDate or MetaData.LastUpdatedTime range.\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"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).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"PayType outside Check/CreditCard\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Only Check and CreditCard map to Desktop bill-payment families.\"\n }\n ]\n },\n \"Budget\": {\n \"entity\": \"Budget\",\n \"verdict\": \"live\",\n \"group\": \"company\",\n \"read\": \"partial\",\n \"write\": \"none\",\n \"headline\": \"Read-only, synthesized from BudgetSummaryReportQuery — 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 ±1 against both statement types, and budget writes stay in the QuickBooks Desktop UI forever\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"partial\",\n \"note\": \"Synthesized from the id — \\\"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.\"\n },\n {\n \"qbo\": \"StartDate\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"EndDate\",\n \"support\": \"full\",\n \"note\": \"The last day of the last budgeted month column, e.g. December 31 for a calendar-year budget — 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).\"\n },\n {\n \"qbo\": \"BudgetType\",\n \"support\": \"partial\",\n \"note\": \"ProfitAndLoss (ProfitAndLossBudgetOverview) and BalanceSheet (BalanceSheetBudgetOverview). Desktop's three budget-vs-actual report types mix actuals and variance into the same table — those are reports, not budgets, and are not exposed here.\"\n },\n {\n \"qbo\": \"BudgetEntryType\",\n \"support\": \"partial\",\n \"note\": \"Always \\\"Monthly\\\". Desktop budgets are entered by month, and the report is requested with monthly columns; Yearly entry is not represented.\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"partial\",\n \"note\": \"Always true. A budget that returns amounts exists; Desktop has no inactive flag for budgets.\"\n },\n {\n \"qbo\": \"BudgetDetail\",\n \"support\": \"partial\",\n \"note\": \"One entry per account × budgeted month, with BudgetDate (first of the month), Amount, and AccountRef. Months with no budgeted amount are omitted, matching QBO — a Desktop 0.00 cell is indistinguishable from \\\"not budgeted\\\".\"\n },\n {\n \"qbo\": \"MetaData\",\n \"support\": \"none\",\n \"note\": \"Desktop's budget report carries no created/modified stamp, so CreateTime/LastUpdatedTime are omitted rather than invented.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"query — SELECT * cannot enumerate every budget\",\n \"error\": \"UNSUPPORTED_QUERY\",\n \"note\": \"qbXML cannot list budgets: BudgetSummaryReportQueryRq requires a FiscalYear. SELECT * FROM Budget probes a fixed window — the current calendar year, the one before it, and the one after it — 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.\",\n \"workaround\": \"Fetch it by id: GET /v3/company/{companyId}/budget/{fiscalYear}-{BudgetType}, e.g. 2023-ProfitAndLoss, which issues exactly one report request for that year.\"\n },\n {\n \"case\": \"query — WHERE on anything but Id, ORDERBY, COUNT(*), column lists\",\n \"error\": \"UNSUPPORTED_QUERY\",\n \"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.\",\n \"workaround\": \"Fetch the window with SELECT * FROM Budget and filter the (at most six) rows client-side.\"\n },\n {\n \"case\": \"read — Class and Customer budget breakdowns\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"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.\",\n \"workaround\": \"Read the class- or customer-level figures from the budget reports in QuickBooks Desktop directly.\"\n },\n {\n \"case\": \"read — budget-vs-actual report types\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"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.\",\n \"workaround\": \"Pull the actuals with the Reports surface (ProfitAndLoss / BalanceSheet) and compare them against this Budget client-side.\"\n },\n {\n \"case\": \"read — AccountRef.value on an unrecognised row label\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"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 — matching FullName (stripping a leading \\\"{AccountNumber} · \\\" from every colon-separated segment of a qualified/subaccount label, e.g. \\\"40100 · Construction Income:40130 · Labor Income\\\") and, failing that, the leaf segment's own AccountNumber — but a label neither can explain yields AccountRef with a name and no value rather than an invented id.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Permanent: qbXML has no BudgetAdd. Budget setup stays in the Desktop UI — QBO's own Budget entity is read-only too, so no QBO-compatible client loses anything here.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Permanent: qbXML has no BudgetMod. Budget changes stay in the Desktop UI.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Permanent: qbXML has no BudgetDel.\"\n }\n ]\n },\n \"CDC\": {\n \"entity\": \"CDC\",\n \"verdict\": \"live\",\n \"group\": \"platform\",\n \"read\": \"full\",\n \"write\": \"none\",\n \"headline\": \"Change Data Capture — one poll returns changed + deleted records across entities.\",\n \"usage\": \"GET /v3/company/{companyId}/cdc?entities=Invoice,Customer&changedSince=2026-07-01\",\n \"fields\": [\n {\n \"qbo\": \"entities\",\n \"support\": \"full\",\n \"note\": \"Comma-separated QBO entity names. Unsupported names return per-entity Fault slots; live entities in the same request still return data.\"\n },\n {\n \"qbo\": \"changedSince\",\n \"support\": \"full\",\n \"note\": \"ISO 8601 timestamp or YYYY-MM-DD, at most 30 days back (QBO's own limit).\"\n },\n {\n \"qbo\": \"deleted-record stubs\",\n \"support\": \"full\",\n \"note\": \"status:'Deleted' stubs via Desktop's TxnDeletedQuery/ListDeletedQuery, with TimeDeleted as MetaData.LastUpdatedTime.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"changedSince older than 30 days\",\n \"error\": \"CDC_INVALID_CHANGED_SINCE\",\n \"note\": \"Hard limit, cloned from QBO. Use /query with a MetaData.LastUpdatedTime filter for older data.\"\n },\n {\n \"case\": \"more than 1,000 objects for one entity\",\n \"error\": \"CDC_OVERFLOW\",\n \"note\": \"Loud per-entity fault, never silent truncation. Page through /query instead.\"\n },\n {\n \"case\": \"deactivated list records reported as deletions\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop only hard-deletes unused list records. Active:false is a change, not a deletion — it surfaces as a changed record.\"\n },\n {\n \"case\": \"deleted TaxAgency / ExchangeRate / Transfer detection\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Tax agencies are vendors on Desktop (deletion indistinguishable); exchange rates ride the Currency list; 'Transfer' is not a valid TxnDelType.\"\n },\n {\n \"case\": \"Budget in the entities list\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"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.\",\n \"workaround\": \"Re-read it with SELECT * FROM Budget (or GET /budget/{fiscalYear}-{BudgetType}) whenever you need the current figures.\"\n }\n ]\n },\n \"Class\": {\n \"entity\": \"Class\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"full\",\n \"headline\": \"Hierarchical Class list; SubClass/FullyQualifiedName from Desktop Sublevel/FullName\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ParentRef\",\n \"support\": \"full\",\n \"note\": \"Becomes a Desktop sub-class; FullName is colon-delimited (e.g. Services:West Coast).\"\n },\n {\n \"qbo\": \"FullyQualifiedName\",\n \"support\": \"full\",\n \"note\": \"Read-only, derived by Desktop from the parent chain.\"\n },\n {\n \"qbo\": \"SubClass\",\n \"support\": \"full\",\n \"note\": \"Read-only, derived from Desktop Sublevel (true when Sublevel > 0).\"\n }\n ],\n \"unsupported\": []\n },\n \"ClearedStatus\": {\n \"entity\": \"ClearedStatus\",\n \"verdict\": \"live\",\n \"group\": \"platform\",\n \"read\": \"partial\",\n \"write\": \"partial\",\n \"headline\": \"TenkeyBridge extension (QBO has none): POST /clearedstatus sets QuickBooks Desktop's cleared status (Cleared, NotCleared, Pending) on a check, deposit, bill payment check or journal entry, for the transaction's own bank side (TxnId alone) or for one line (LineId). GET /clearedstatus reads it back per split with one bounded QuickBooks read.\",\n \"usage\": \"POST /v3/company/{companyId}/clearedstatus[?requestid=...] and GET /v3/company/{companyId}/clearedstatus?txnid=...&txntype=...\",\n \"fields\": [\n {\n \"qbo\": \"TxnId\",\n \"support\": \"full\",\n \"note\": \"The Id of the transaction, as a read of the Purchase, Deposit, BillPayment or JournalEntry returned it.\"\n },\n {\n \"qbo\": \"LineId\",\n \"support\": \"full\",\n \"note\": \"Optional. A Line.Id of that transaction: sets that one line's account side. The line's account must be a balance sheet account other than A/R and A/P (a bank, credit card or other current asset account); an income, expense or cost of goods line is 422 UNSUPPORTED_BY_DESKTOP. Without it, a Check, Deposit or BillPayment sets its own bank side and a JournalEntry sets its first line.\"\n },\n {\n \"qbo\": \"ClearedStatus\",\n \"support\": \"full\",\n \"note\": \"Cleared, NotCleared or Pending (case sensitive). Reconciled is QuickBooks' own state and cannot be written.\"\n },\n {\n \"qbo\": \"TxnType\",\n \"support\": \"partial\",\n \"note\": \"Optional on the write: Purchase, Deposit, BillPayment or JournalEntry. Send it with a requestid so a lost outcome can be reconciled with a read. Required on the read (and Transfer is allowed there).\"\n },\n {\n \"qbo\": \"Splits\",\n \"support\": \"full\",\n \"note\": \"In the read-back: one entry per bank or balance sheet posting of the transaction, with Role (Header, Line, From, To), LineId (the value to send back), ClearedStatus and Amount. SetByTxnId marks the split a request without a LineId would set.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Transfer\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"QuickBooks Desktop refuses a Transfer id for a cleared status change (probe, QB Enterprise 24), so neither side of a transfer can be set. It can be read back. Record the movement as a deposit, check or journal entry instead, or clear it in QuickBooks.\",\n \"workaround\": \"Use a Deposit (line from the clearing account) or a JournalEntry, and set the line you need by LineId.\"\n },\n {\n \"case\": \"Income, expense, cost of goods, A/R or A/P line\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"QuickBooks only keeps a cleared status for lines on other balance sheet accounts. A TxnId alone on a JournalEntry whose first line is on such an account is refused the same way.\"\n },\n {\n \"case\": \"Invoice, Bill, SalesReceipt and the other transaction types\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Only Purchase (check), Deposit, BillPayment (check) and JournalEntry are supported. A credit card Purchase or a credit card BillPayment was not probed.\"\n },\n {\n \"case\": \"Cleared status on an ordinary read\",\n \"error\": \"n/a\",\n \"note\": \"Entity reads never carry a cleared status and never cost an extra QuickBooks read; QuickBooks' Ret objects do not hold one. Use GET /clearedstatus.\"\n }\n ]\n },\n \"CompanyCurrency\": {\n \"entity\": \"CompanyCurrency\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Desktop CurrencyQuery list, including inactive currencies; create activates or adds a currency, update changes Name and Active. Empty when multicurrency is off (statusCode 3250, confirmed live, and 3170 both normalized to [])\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"full\",\n \"note\": \"Desktop Name. On create the default is the code. Can be changed on update.\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\",\n \"note\": \"Desktop IsActive. Update can activate or deactivate a currency (proven live). Prefer deactivating to deleting: delete is not proven live.\"\n },\n {\n \"qbo\": \"Code\",\n \"support\": \"partial\",\n \"note\": \"Desktop CurrencyCode, an ISO 4217 code. Required on create (400, code 2020 without it) and never changed afterwards: an update that names a different code is UNSUPPORTED_BY_DESKTOP. Create (POST /companycurrency) is activate-or-add; see the Name and Active rows and the create unsupported cases below.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Setting an exchange rate on create or update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"CurrencyMod has no rate field. Set the list rate in QuickBooks, or send ExchangeRate on the transaction.\"\n }\n ]\n },\n \"CompanyInfo\": {\n \"entity\": \"CompanyInfo\",\n \"verdict\": \"live\",\n \"group\": \"company\",\n \"read\": \"full\",\n \"write\": \"none\",\n \"headline\": \"Read-only; Id equals the Company ID, no Desktop write path\",\n \"fields\": [\n {\n \"qbo\": \"CompanyName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"LegalName\",\n \"support\": \"full\",\n \"note\": \"Desktop LegalCompanyName.\"\n },\n {\n \"qbo\": \"CompanyAddr\",\n \"support\": \"full\",\n \"note\": \"Desktop Address.\"\n },\n {\n \"qbo\": \"CustomerCommunicationAddr\",\n \"support\": \"full\",\n \"note\": \"Desktop CompanyAddressForCustomer — an independent address, not a copy of CompanyAddr; absent if Desktop has none on file.\"\n },\n {\n \"qbo\": \"LegalAddr\",\n \"support\": \"full\",\n \"note\": \"Desktop LegalAddress.\"\n },\n {\n \"qbo\": \"PrimaryPhone\",\n \"support\": \"full\",\n \"note\": \"Desktop Phone.\"\n },\n {\n \"qbo\": \"Email\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"FiscalYearStartMonth\",\n \"support\": \"full\",\n \"note\": \"Desktop FirstMonthFiscalYear; both sides use English month names (live-verified \\\"January\\\").\"\n },\n {\n \"qbo\": \"WebAddr\",\n \"support\": \"full\",\n \"note\": \"Desktop CompanyWebSite as WebAddr.URI; absent when no website is on file.\"\n },\n {\n \"qbo\": \"CustomerCommunicationEmailAddr\",\n \"support\": \"full\",\n \"note\": \"Desktop CompanyEmailForCustomer as Address; absent when none is on file.\"\n },\n {\n \"qbo\": \"NameValue\",\n \"support\": \"partial\",\n \"note\": \"TaxForm and CompanyType only, as Name/Value pairs when present; EIN is never returned.\"\n },\n {\n \"qbo\": \"Country\",\n \"support\": \"full\",\n \"note\": \"Desktop Address.Country, passed through as free text — no normalization, and often blank on US company files.\"\n },\n {\n \"qbo\": \"CompanyStartDate\",\n \"support\": \"none\",\n \"note\": \"No Desktop CompanyRet equivalent — omitted rather than guessed at; never returned.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"SupportedLanguages\",\n \"support\": \"none\",\n \"note\": \"No Desktop CompanyRet equivalent — omitted rather than guessed at; never returned.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"DefaultTimeZone\",\n \"support\": \"none\",\n \"note\": \"No Desktop CompanyRet equivalent — omitted rather than guessed at; never returned.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"EmployerId\",\n \"support\": \"none\",\n \"note\": \"Desktop has an EIN, but TenkeyBridge deliberately does not expose it: it is sensitive and not needed to sync books. Never returned or accepted.\",\n \"error\": \"UNMAPPED_FIELD\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Create, update, or delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"CompanyInfo is read/query only — there is exactly one company record, and Desktop has no API to create or modify it.\"\n },\n {\n \"case\": \"Any WHERE clause, ORDERBY, COUNT(*), column list, or STARTPOSITION/MAXRESULTS\",\n \"error\": \"UNSUPPORTED_QUERY\",\n \"note\": \"CompanyQueryRq takes no filters and always returns the single open company record. Use SELECT * FROM CompanyInfo.\"\n }\n ]\n },\n \"CreditCardPayment\": {\n \"entity\": \"CreditCardPayment\",\n \"verdict\": \"gap\",\n \"group\": \"gaps\",\n \"read\": \"none\",\n \"write\": \"none\",\n \"headline\": \"QBO's 'pay down a credit card' transaction has no Desktop record of its own — Desktop books the same event as a Transfer or a Check against the card account, so there is nothing to project a CreditCardPayment from.\",\n \"fields\": [],\n \"unsupported\": [\n {\n \"case\": \"read\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"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.\",\n \"workaround\": \"Read the same events as Transfer (ToAccountRef = the credit card account) or as a Purchase of type Check. Both are live in TenkeyBridge.\"\n },\n {\n \"case\": \"query\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"No Desktop CreditCardPayment exists to query; card paydowns appear under Transfer or Purchase.\",\n \"workaround\": \"Query Transfer or Purchase and filter client-side by the credit card account.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"TenkeyBridge will not guess which Desktop transaction to create in place of a CreditCardPayment.\",\n \"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.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"No Desktop CreditCardPayment to update; update the Transfer or Purchase instead.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"No Desktop CreditCardPayment to delete; delete the Purchase instead (Transfer cannot be deleted through qbXML).\"\n }\n ]\n },\n \"CreditMemo\": {\n \"entity\": \"CreditMemo\",\n \"verdict\": \"live\",\n \"group\": \"sales\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Invoice twin — Balance and RemainingCredit both map from Desktop CreditRemaining\",\n \"fields\": [\n {\n \"qbo\": \"CustomerRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ClassRef\",\n \"support\": \"full\",\n \"note\": \"Header-level class (Desktop ClassRef, read and write). Line-level ClassRef is separate.\"\n },\n {\n \"qbo\": \"DepartmentRef\",\n \"support\": \"none\",\n \"note\": \"UNMAPPED_FIELD by default. With Departments from classes turned on for the company file, the gateway maps it to the header ClassRef (written to it, read from it); sending a different ClassRef as well is a 400.\",\n \"error\": \"UNMAPPED_FIELD\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the customer, so CurrencyRef is checked and then dropped: one that differs from the customer's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create. On a sparse update it is sent only when you change it; the update placement is not proven live.\"\n },\n {\n \"qbo\": \"HomeBalance\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop CreditRemainingInHomeCurrency. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"BillAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PONumber\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"SalesTermRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DueDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"CustomerMemo\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop CustomerMsgRef by FullName; the message must already exist as a Desktop customer message. Updatable via sparse update (#55).\"\n },\n {\n \"qbo\": \"ProjectRef\",\n \"support\": \"full\",\n \"note\": \"A Desktop job is a QBO project, so ProjectRef sets the transaction's customer to the job (send the job's Id or full name). If CustomerRef is sent too, the job wins, and nothing is looked up: the job already implies its parent customer. Read: when the customer is a job (its full name contains a colon), ProjectRef is returned with the same value and name as CustomerRef, which stays exactly as Desktop returns it. A QBO project is one level deep and a Desktop job can sit under another job, so ProjectRef here means any job.\"\n },\n {\n \"qbo\": \"EmailStatus\",\n \"support\": \"partial\",\n \"note\": \"Maps to Desktop IsToBeEmailed. NeedToSend writes true; NotSet and EmailSent write false, because Desktop only knows whether the form is still queued. Read: true is NeedToSend, false is NotSet. Desktop does not record that a form was sent, so EmailSent is never returned. Setting NeedToSend sends nothing by itself: it only queues the form in QuickBooks.\"\n },\n {\n \"qbo\": \"PrintStatus\",\n \"support\": \"partial\",\n \"note\": \"Maps to Desktop IsToBePrinted. NeedToPrint writes true; NotSet and PrintComplete write false. Read: true is NeedToPrint, false is NotSet. Desktop does not record that a form was printed, so PrintComplete is never returned.\"\n },\n {\n \"qbo\": \"BillEmail\",\n \"support\": \"partial\",\n \"note\": \"Accepted and not stored. Desktop sales forms have no email address of their own: QuickBooks sends a form to the customer's email address. BillEmailCc and BillEmailBcc are accepted and dropped the same way. They are never returned on read, so update the customer's PrimaryEmailAddr to change where forms go.\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"note\": \"Same DetailType support as Invoice: SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; DiscountLineDetail names a Desktop discount item by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount). With no ItemRef but a DiscountAccountRef, the gateway uses the one active discount item that posts to that account; none or several is MISSING_REQUIRED_DESKTOP_ITEM, and a discount item is never created for you. SubTotalLineDetail needs no ItemRef: the gateway uses the company's active subtotal item (the one named Subtotal if there are several, else the first), and only when there is none it creates an item named Subtotal (it has no account and posts nothing); a subtotal line is sent without Amount, Qty or Rate because Desktop computes the amount and refuses one. Other DetailTypes return UNSUPPORTED_BY_DESKTOP. Lines read back in Desktop's own order; a group line reads as GroupLineDetail with its component lines in GroupLineDetail.Line (each with its own Id) and the bundle total as Amount; a subtotal line reads as SubTotalLineDetail; 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. The Ids on a group's component lines (GroupLineDetail.Line[].Id) are read-only: they identify what was read and are not accepted as line Ids on a write.\"\n },\n {\n \"qbo\": \"TxnTaxDetail\",\n \"support\": \"partial\",\n \"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). On read, TaxLine carries a NetAmountTaxable that is derived, not read: the sum of the Tax-coded line Amounts (discount lines are not subtracted, verified live), returned only when it reproduces Desktop's SalesTaxTotal to the cent and omitted otherwise (custom tax codes, or a discount whose taxability is unknown). Updatable via sparse update (#55).\"\n },\n {\n \"qbo\": \"LinkedTxn\",\n \"support\": \"partial\",\n \"note\": \"Read-only; reflects applied payments/credits, ignored on write — same as QBO.\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only, mapped from Desktop TotalAmount.\"\n },\n {\n \"qbo\": \"Balance\",\n \"support\": \"full\",\n \"note\": \"Read-only remaining unapplied credit; mapped from Desktop CreditRemaining.\"\n },\n {\n \"qbo\": \"RemainingCredit\",\n \"support\": \"full\",\n \"note\": \"Read-only — total credit still available to apply. A distinct QBO field, not an alias of Balance; both map from Desktop's single CreditRemaining since Desktop has only the one figure.\"\n },\n {\n \"qbo\": \"ApplyTaxAfterDiscount\",\n \"support\": \"partial\",\n \"note\": \"Maps onto the discount line's own sales tax code, proven live on QuickBooks Enterprise 24: Tax is tax after the discount (true), Non is tax on the full amount (false). On write, true or false is never sent as a field; every discount line with no TaxCodeRef of its own is coded Tax or Non, and an explicit TAX or NON that contradicts the value is 400 (code 2010, element Line.DiscountLineDetail.TaxCodeRef). A custom tax code on a discount line wins. DiscountLineDetail.TaxCodeRef is written as that line's sales tax code. With no discount lines the value is accepted and does nothing. Read: present only when the form has discount lines and they are all Tax (true) or all Non (false); omitted when mixed. On a sparse update with no Line, a value equal to the current one is accepted; a different one is 422 UNSUPPORTED_BY_DESKTOP, so send the full Line array to change it. Any value that is not a boolean is 400 (code 2010).\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension: QBO cannot void a CreditMemo; QuickBooks Desktop can. POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType CreditMemo), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QuickBooks Enterprise 24 (2026-10-20). The re-read shows PrivateNote as `VOID: <memo>` (bare `VOID:` when there was none), TotalAmt, Balance and RemainingCredit at 0 and every line quantity and amount at 0, with the lines kept. A void does not reliably advance the SyncToken, so re-read the record instead of relying on it; voiding again is accepted. A credit memo that was applied to an invoice can be voided too: the credit is released, so the invoice's balance reopens by the credit that had been applied and its LinkedTxn drops the credit memo (the cash payment stays). The response is whatever Desktop returns on the re-read (nothing is fabricated).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"GET /{id}/pdf\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"qbXML cannot render or return a PDF of a transaction, so the route answers 422. Render the PDF from the JSON record in your own application.\"\n },\n {\n \"case\": \"POST /{id}/send (actually sending the email)\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"The route is queue-only: it sets EmailStatus NeedToSend (Desktop IsToBeEmailed) through a sparse update and returns the record, so the form lands in QuickBooks' To be e-mailed queue. TenkeyBridge sends no mail; QuickBooks sends the form to the customer's email address. sendTo is ignored (X-TKB-Warning says so). Desktop refuses the queue (3180) when the company file has no company email.\"\n },\n {\n \"case\": \"Line.DiscountLineDetail without an ItemRef or a single matching DiscountAccountRef item (bare-percentage or amount-off discounts)\",\n \"error\": \"MISSING_REQUIRED_DESKTOP_ITEM\",\n \"note\": \"Desktop discounts are items. Send DiscountAccountRef and the gateway uses the one active discount item that posts to that account; with no account, no match or several matches the call is refused and nothing is guessed, because a wrong item would post the discount to the wrong account. Create a discount item through the Item API (DesktopItemType Discount) or in QuickBooks (Lists > Item List > New > Discount) and pass it as DiscountLineDetail.ItemRef by value (ListID) or name (full name). See COMPATIBILITY.md.\"\n },\n {\n \"case\": \"Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"These line types do not map to QuickBooks Desktop sales transactions. Remove them or flatten to a supported DetailType. See COMPATIBILITY.md.\"\n },\n {\n \"case\": \"ApplyTaxAfterDiscount changed on a sparse update that carries no Line\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"On Desktop the value lives on each discount line's tax code, so it cannot change on its own. Send the full Line array in the same update.\"\n }\n ]\n },\n \"Customer\": {\n \"entity\": \"Customer\",\n \"verdict\": \"live\",\n \"group\": \"sales\",\n \"read\": \"full\",\n \"write\": \"full\",\n \"headline\": \"Sub-customer maps to Desktop Customer:Job\",\n \"fields\": [\n {\n \"qbo\": \"DisplayName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"CompanyName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Title\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"GivenName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"MiddleName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"FamilyName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrimaryEmailAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrimaryPhone\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"AlternatePhone\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Fax\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"BillAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Notes\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ParentRef\",\n \"support\": \"full\",\n \"note\": \"Becomes a Desktop Job under the parent; FullName is colon-delimited.\"\n },\n {\n \"qbo\": \"SalesTermRef\",\n \"support\": \"full\",\n \"note\": \"Desktop TermsRef.\"\n },\n {\n \"qbo\": \"CustomerTypeRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DefaultTaxCodeRef\",\n \"support\": \"full\",\n \"note\": \"Desktop SalesTaxCodeRef.\"\n },\n {\n \"qbo\": \"AcctNum\",\n \"support\": \"full\",\n \"note\": \"Desktop AccountNumber.\"\n },\n {\n \"qbo\": \"Balance\",\n \"support\": \"full\",\n \"note\": \"Read-only, as in QBO.\"\n },\n {\n \"qbo\": \"BalanceWithJobs\",\n \"support\": \"full\",\n \"note\": \"Read-only; Desktop TotalBalance.\"\n },\n {\n \"qbo\": \"FullyQualifiedName\",\n \"support\": \"full\",\n \"note\": \"Read-only, derived by Desktop.\"\n },\n {\n \"qbo\": \"Job\",\n \"support\": \"full\",\n \"note\": \"Read-only, derived by Desktop Sublevel.\"\n },\n {\n \"qbo\": \"IsProject\",\n \"support\": \"full\",\n \"note\": \"A QBO project is a sub-customer, and a Desktop job is the same thing, so IsProject reads true for any customer under a parent (Desktop Sublevel above 0), exactly like Job. On create or update IsProject: true needs ParentRef (400 2020 without one) and is not sent, because the parent already makes it a job; IsProject: false with a ParentRef is a contradiction (400 2010). select * from Customer where IsProject = true works. A Desktop job can sit under another job, so project here means any Desktop job; QBO projects are one level deep. Jobs are reachable from transactions through ProjectRef.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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).\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). Written on create and stored by Desktop (the currency must be active; activate it with CompanyCurrency). On update Desktop allows a change only while the customer has no transactions (proven live; otherwise Desktop refuses it, 400 code 2500). On a file with multicurrency off only USD is accepted (and dropped).\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Not a Desktop customer field. Accepted and ignored.\"\n },\n {\n \"qbo\": \"PreferredPaymentMethodRef\",\n \"support\": \"partial\",\n \"note\": \"Accepted and ignored — Desktop manages this itself; multi-currency mapping lands later.\"\n },\n {\n \"qbo\": \"PreferredDeliveryMethod\",\n \"support\": \"none\",\n \"note\": \"Desktop has no delivery-method preference. Remove the field from your payload.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"Taxable\",\n \"support\": \"none\",\n \"note\": \"Desktop customers have no taxable flag; set tax codes on transactions instead.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"PrintOnCheckName\",\n \"support\": \"none\",\n \"note\": \"Desktop CustomerRet has no PrintAs element (unlike Vendor/Employee).\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"Mobile\",\n \"support\": \"none\",\n \"note\": \"Desktop CustomerRet has no separate mobile-phone element beyond Phone/AltPhone/Fax.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"WebAddr\",\n \"support\": \"none\",\n \"note\": \"Desktop CustomerRet has no website element.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n }\n ],\n \"unsupported\": []\n },\n \"CustomerType\": {\n \"entity\": \"CustomerType\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"none\",\n \"headline\": \"Read/query only — QBO CustomerType is read-only via the API; Desktop hierarchy is not exposed\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Create, update or deactivate\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"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.\",\n \"workaround\": \"Create, rename or deactivate the type in QuickBooks Desktop itself; the change shows up on the next read.\"\n }\n ]\n },\n \"Department\": {\n \"entity\": \"Department\",\n \"verdict\": \"gap\",\n \"group\": \"gaps\",\n \"read\": \"none\",\n \"write\": \"none\",\n \"headline\": \"QuickBooks Desktop has no Department (location) list, so Department is unsupported by default. Opt in per company file with Departments from classes and Department becomes an alias of Class (DepartmentRef on a transaction becomes its header ClassRef).\",\n \"fields\": [\n {\n \"qbo\": \"Id\",\n \"support\": \"partial\",\n \"note\": \"Only with Departments from classes on: the Class ListID.\"\n },\n {\n \"qbo\": \"Name\",\n \"support\": \"partial\",\n \"note\": \"Only with Departments from classes on: the Class Name (31 characters max).\"\n },\n {\n \"qbo\": \"SubDepartment\",\n \"support\": \"partial\",\n \"note\": \"Only with Departments from classes on: read-only, true when the class has a parent.\"\n },\n {\n \"qbo\": \"ParentRef\",\n \"support\": \"partial\",\n \"note\": \"Only with Departments from classes on: the parent class.\"\n },\n {\n \"qbo\": \"FullyQualifiedName\",\n \"support\": \"partial\",\n \"note\": \"Only with Departments from classes on: the class full name (Parent:Child). Read-only.\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"partial\",\n \"note\": \"Only with Departments from classes on: class IsActive. Deactivate with Active:false.\"\n },\n {\n \"qbo\": \"SyncToken\",\n \"support\": \"partial\",\n \"note\": \"Only with Departments from classes on: the class EditSequence.\"\n },\n {\n \"qbo\": \"MetaData\",\n \"support\": \"partial\",\n \"note\": \"Only with Departments from classes on: class TimeCreated / TimeModified.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"read\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Off by default. Re-audited 2026-07-29 against the qbxmlops130 message set: qbXML has no Department or Location list (no Add/Mod/Query message pair). The tokens only appear as plain STRTYPE fields (Employee.Department, FixedAsset.Location, Lead.Location), which are annotations, not a queryable list.\",\n \"workaround\": \"Turn on Departments from classes for the company file (portal: company file page, Departments card; or PATCH /admin/v1/companies/{companyId}/settings with departmentsFromClasses: true). Department then reads your QuickBooks classes. See the Departments guide.\"\n },\n {\n \"case\": \"query\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Off by default: no Department list to query. With Departments from classes on, SELECT ... FROM Department is run against Class and answered as Department; DepartmentRef in a transaction query means its ClassRef.\",\n \"workaround\": \"Turn on Departments from classes, or query Class directly.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Off by default. With Departments from classes on, creating a Department creates a Class (ParentRef makes it a sub-class).\",\n \"workaround\": \"Turn on Departments from classes, or create a Class.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Off by default. With Departments from classes on, an update edits the Class (sparse; Name, Active, ParentRef).\",\n \"workaround\": \"Turn on Departments from classes, or update the Class.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Always unsupported: a Desktop class cannot be deleted through qbXML. Deactivate with Active:false.\"\n },\n {\n \"case\": \"DepartmentRef on a transaction\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"With Departments from classes on it maps to the header ClassRef on Invoice, SalesReceipt, Estimate, CreditMemo, PurchaseOrder and TimeActivity. Sending a different ClassRef as well is a 400. Bill, Purchase, VendorCredit, JournalEntry, Deposit, RefundReceipt and Transfer have no header class in QuickBooks Desktop (class lives on the lines), so DepartmentRef there is a 422 that says to set ClassRef per line. Off: UNMAPPED_FIELD.\",\n \"workaround\": \"Set ClassRef on each line for those transactions.\"\n }\n ]\n },\n \"Deposit\": {\n \"entity\": \"Deposit\",\n \"verdict\": \"live\",\n \"group\": \"banking\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Undeposited Funds → bank via LinkedTxn or manual DepositLineDetail\",\n \"fields\": [\n {\n \"qbo\": \"DepositToAccountRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"note\": \"Write: LinkedTxn (PaymentTxnID path) for undeposited payments, or DepositLineDetail{Entity, AccountRef, PaymentMethodRef, CheckNum} for a manual line — 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 — 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 is updated through the CashBack field, not Line. 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.\"\n },\n {\n \"qbo\": \"CashBack\",\n \"support\": \"partial\",\n \"note\": \"Create and read map to Desktop CashBackInfo. An update that changes CashBack sends one CashBackInfoMod built from the current record with your AccountRef, Memo and Amount laid over it; an update that echoes the current CashBack unchanged sends nothing. CashBack: null removes it by setting its Amount to 0.00, and a read treats a cash back at 0.00 as none (Desktop keeps the element at 0.00 and the deposit total returns to the lines). Adding cash back to a deposit that has none is 422 UNSUPPORTED_BY_DESKTOP: Desktop cannot add cash back to an existing deposit, so re-create it. Verified live on QuickBooks Enterprise 24 (2026-10-15).\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only from Desktop DepositTotal.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). Written on create and stored by Desktop. The currency must be active (400 otherwise; activate it with CompanyCurrency) and must equal the currency of DepositToAccountRef: Desktop does not check this, so TenkeyBridge does (400, code 2010). Send DepositToAccountRef with CurrencyRef on update. On a file with multicurrency off only USD is accepted (and dropped). Changing CurrencyRef on update is not proven live.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create. On a sparse update it is sent only when you change it; the update placement is not proven live.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop DepositTotalInHomeCurrency. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension: QBO cannot void a Deposit; QuickBooks Desktop can. POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType Deposit), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QuickBooks Enterprise 24 (2026-10-15). The re-read shows PrivateNote as `VOID: <memo>` and TotalAmt and every line Amount at 0.00 with the lines kept. A void does not reliably advance the SyncToken, so re-read the record instead of relying on it; voiding again is accepted. The response is whatever Desktop returns on the re-read (nothing is fabricated).\"\n }\n ],\n \"unsupported\": []\n },\n \"Employee\": {\n \"entity\": \"Employee\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"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; pay rates and other payroll fields out of scope\",\n \"fields\": [\n {\n \"qbo\": \"GivenName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"MiddleName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"FamilyName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Suffix\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DisplayName\",\n \"support\": \"partial\",\n \"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).\"\n },\n {\n \"qbo\": \"PrintOnCheckName\",\n \"support\": \"full\",\n \"note\": \"Desktop PrintAs.\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\",\n \"note\": \"Deactivate with a sparse update of Active:false. QBO deactivates employees rather than deleting them, and so does TenkeyBridge, even though Desktop can delete an employee that has no transactions.\"\n },\n {\n \"qbo\": \"PrimaryPhone\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Mobile\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrimaryEmailAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrimaryAddr\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"HiredDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ReleasedDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"BirthDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Gender\",\n \"support\": \"full\",\n \"note\": \"Male or Female.\"\n },\n {\n \"qbo\": \"SSN\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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).\"\n },\n {\n \"qbo\": \"EmployeeNumber\",\n \"support\": \"full\",\n \"note\": \"Desktop AccountNumber (the Account No. field on the employee record), up to 99 characters. Verified live on QuickBooks Enterprise 24 (2026-10-15).\"\n },\n {\n \"qbo\": \"TargetBonus\",\n \"support\": \"full\",\n \"note\": \"Desktop TargetBonus, a money amount. Accepted on create and update without a payroll subscription (verified live on QuickBooks Enterprise 24, 2026-10-15); Desktop's create response omits it but reads return it.\"\n },\n {\n \"qbo\": \"PayrollInfo\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension, read-only: Desktop's EmployeePayrollInfo as { PayPeriod, ClassRef, Earnings: [{ PayrollItemRef, Rate | RatePercent }], UseTimeDataToCreatePaychecks, SickHours, VacationHours } with hours as decimal numbers (PT40H30M0S reads 40.5). Present only when the file has a payroll subscription and the integrated app may access personal data (Edit, Preferences, Integrated Applications); otherwise absent. A create carrying PayrollInfo, or an update that changes it, answers 422 UNSUPPORTED_BY_DESKTOP; an unchanged echo on update is ignored. Not filterable.\"\n },\n {\n \"qbo\": \"AdditionalContactRef\",\n \"support\": \"none\",\n \"note\": \"Desktop AdditionalContactRef has no honest QBO Employee field; omitted rather than guessed at.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"QBO employees are deactivated, not deleted. Desktop can delete an employee with no transactions, but TenkeyBridge keeps deactivate-only to match QBO (sparse update with Active:false).\"\n },\n {\n \"case\": \"Writing payroll fields\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Pay periods, earnings rates and sick or vacation hours are read-only (see PayrollInfo). Set them in QuickBooks Desktop.\"\n }\n ]\n },\n \"Entitlements\": {\n \"entity\": \"Entitlements\",\n \"verdict\": \"live\",\n \"group\": \"platform\",\n \"read\": \"partial\",\n \"write\": \"none\",\n \"headline\": \"GET /v3/company/{companyId}/entitlements — a static, honest capability document for a QuickBooks Desktop company (no per-file subscription data).\",\n \"usage\": \"GET /v3/company/{companyId}/entitlements\",\n \"fields\": [\n {\n \"qbo\": \"Entitlements.platform\",\n \"support\": \"full\",\n \"note\": \"Always \\\"QuickBooks Desktop\\\" — TenkeyBridge talks to Desktop, never to a QBO subscription.\"\n },\n {\n \"qbo\": \"Entitlements.features\",\n \"support\": \"partial\",\n \"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.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"QBO subscription tier, seats and add-ons\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop has no subscription entitlements exposed over qbXML; the response says so explicitly rather than inventing values.\"\n }\n ]\n },\n \"Estimate\": {\n \"entity\": \"Estimate\",\n \"verdict\": \"live\",\n \"group\": \"sales\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Same shape as Invoice; expiration date and active/closed status, no acceptance tracking\",\n \"fields\": [\n {\n \"qbo\": \"CustomerRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ClassRef\",\n \"support\": \"full\",\n \"note\": \"Header-level class (Desktop ClassRef, read and write). Line-level ClassRef is separate.\"\n },\n {\n \"qbo\": \"DepartmentRef\",\n \"support\": \"none\",\n \"note\": \"UNMAPPED_FIELD by default. With Departments from classes turned on for the company file, the gateway maps it to the header ClassRef (written to it, read from it); sending a different ClassRef as well is a 400.\",\n \"error\": \"UNMAPPED_FIELD\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"BillAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PONumber\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"SalesTermRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DueDate\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"ExpirationDate\",\n \"support\": \"full\",\n \"note\": \"Maps to the Desktop estimate DueDate. Read and write.\"\n },\n {\n \"qbo\": \"TxnStatus\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"CustomerMemo\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop CustomerMsgRef by FullName; the message must already exist as a Desktop customer message. Updatable via sparse update (#55).\"\n },\n {\n \"qbo\": \"ProjectRef\",\n \"support\": \"full\",\n \"note\": \"A Desktop job is a QBO project, so ProjectRef sets the transaction's customer to the job (send the job's Id or full name). If CustomerRef is sent too, the job wins, and nothing is looked up: the job already implies its parent customer. Read: when the customer is a job (its full name contains a colon), ProjectRef is returned with the same value and name as CustomerRef, which stays exactly as Desktop returns it. A QBO project is one level deep and a Desktop job can sit under another job, so ProjectRef here means any job.\"\n },\n {\n \"qbo\": \"EmailStatus\",\n \"support\": \"partial\",\n \"note\": \"Maps to Desktop IsToBeEmailed. NeedToSend writes true; NotSet and EmailSent write false, because Desktop only knows whether the form is still queued. Read: true is NeedToSend, false is NotSet. Desktop does not record that a form was sent, so EmailSent is never returned. Setting NeedToSend sends nothing by itself: it only queues the form in QuickBooks.\"\n },\n {\n \"qbo\": \"PrintStatus\",\n \"support\": \"none\",\n \"note\": \"Desktop estimates have no to-be-printed flag. NotSet (the QBO default) is accepted and sends nothing; NeedToPrint and PrintComplete are refused with UNSUPPORTED_BY_DESKTOP. Never returned on read.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"BillEmail\",\n \"support\": \"partial\",\n \"note\": \"Accepted and not stored. Desktop sales forms have no email address of their own: QuickBooks sends a form to the customer's email address. BillEmailCc and BillEmailBcc are accepted and dropped the same way. They are never returned on read, so update the customer's PrimaryEmailAddr to change where forms go.\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"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 names a Desktop discount item by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount). With no ItemRef but a DiscountAccountRef, the gateway uses the one active discount item that posts to that account; none or several is MISSING_REQUIRED_DESKTOP_ITEM, and a discount item is never created for you. SubTotalLineDetail needs no ItemRef: the gateway uses the company's active subtotal item (the one named Subtotal if there are several, else the first), and only when there is none it creates an item named Subtotal (it has no account and posts nothing); a subtotal line is sent without Amount, Qty or Rate because Desktop computes the amount and refuses one. Other DetailTypes return UNSUPPORTED_BY_DESKTOP. Lines read back in Desktop's own order; a group line reads as GroupLineDetail with its component lines in GroupLineDetail.Line (each with its own Id) and the bundle total as Amount; a subtotal line reads as SubTotalLineDetail; 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. The Ids on a group's component lines (GroupLineDetail.Line[].Id) are read-only: they identify what was read and are not accepted as line Ids on a write.\"\n },\n {\n \"qbo\": \"TxnTaxDetail\",\n \"support\": \"partial\",\n \"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 is derived, not read: the sum of the Tax-coded line Amounts (discount lines are not subtracted, verified live), returned only when it reproduces Desktop's SalesTaxTotal to the cent and omitted otherwise (custom tax codes, or a discount whose taxability is unknown). Updatable via sparse update (#55).\"\n },\n {\n \"qbo\": \"LinkedTxn\",\n \"support\": \"full\",\n \"note\": \"Populated on read from LinkedTxn (IncludeLinkedTxns automatic) — progress-invoicing links when present. Links to Desktop-only transaction types (SalesOrder, ItemReceipt, …) are omitted rather than guessed at. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only, computed by Desktop as Subtotal + SalesTaxTotal (not independently verified live — see issue #38 report).\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the customer, so CurrencyRef is checked and then dropped: one that differs from the customer's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create. On a sparse update it is sent only when you change it; the update placement is not proven live.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop TotalAmountInHomeCurrency. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"AcceptedBy\",\n \"support\": \"none\",\n \"note\": \"Desktop estimates have no accepted-by field. Track acceptance in your own system.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"AcceptedDate\",\n \"support\": \"none\",\n \"note\": \"Desktop estimates have no accepted-date field. Track acceptance in your own system.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"ApplyTaxAfterDiscount\",\n \"support\": \"partial\",\n \"note\": \"Maps onto the discount line's own sales tax code, proven live on QuickBooks Enterprise 24: Tax is tax after the discount (true), Non is tax on the full amount (false). On write, true or false is never sent as a field; every discount line with no TaxCodeRef of its own is coded Tax or Non, and an explicit TAX or NON that contradicts the value is 400 (code 2010, element Line.DiscountLineDetail.TaxCodeRef). A custom tax code on a discount line wins. DiscountLineDetail.TaxCodeRef is written as that line's sales tax code. With no discount lines the value is accepted and does nothing. Read: present only when the form has discount lines and they are all Tax (true) or all Non (false); omitted when mixed. On a sparse update with no Line, a value equal to the current one is accepted; a different one is 422 UNSUPPORTED_BY_DESKTOP, so send the full Line array to change it. Any value that is not a boolean is 400 (code 2010).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"GET /{id}/pdf\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"qbXML cannot render or return a PDF of a transaction, so the route answers 422. Render the PDF from the JSON record in your own application.\"\n },\n {\n \"case\": \"POST /{id}/send (actually sending the email)\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"The route is queue-only: it sets EmailStatus NeedToSend (Desktop IsToBeEmailed) through a sparse update and returns the record, so the form lands in QuickBooks' To be e-mailed queue. TenkeyBridge sends no mail; QuickBooks sends the form to the customer's email address. sendTo is ignored (X-TKB-Warning says so). Desktop refuses the queue (3180) when the company file has no company email.\"\n },\n {\n \"case\": \"Line.DiscountLineDetail without an ItemRef or a single matching DiscountAccountRef item (bare-percentage or amount-off discounts)\",\n \"error\": \"MISSING_REQUIRED_DESKTOP_ITEM\",\n \"note\": \"Desktop discounts are items. Send DiscountAccountRef and the gateway uses the one active discount item that posts to that account; with no account, no match or several matches the call is refused and nothing is guessed, because a wrong item would post the discount to the wrong account. Create a discount item through the Item API (DesktopItemType Discount) or in QuickBooks (Lists > Item List > New > Discount) and pass it as DiscountLineDetail.ItemRef by value (ListID) or name (full name). See COMPATIBILITY.md.\"\n },\n {\n \"case\": \"Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"These line types do not map to QuickBooks Desktop sales transactions. Remove them or flatten to a supported DetailType. See COMPATIBILITY.md.\"\n },\n {\n \"case\": \"ApplyTaxAfterDiscount changed on a sparse update that carries no Line\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"On Desktop the value lives on each discount line's tax code, so it cannot change on its own. Send the full Line array in the same update.\"\n }\n ]\n },\n \"ExchangeRate\": {\n \"entity\": \"ExchangeRate\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"partial\",\n \"write\": \"none\",\n \"headline\": \"Projected from CurrencyRet.ExchangeRate + AsOfDate, plus QBO's keyed lookup; one row per currency that carries a rate; empty when multicurrency is off (statusCode 3250, confirmed live, and 3170 both normalized to [])\",\n \"fields\": [\n {\n \"qbo\": \"SourceCurrencyCode\",\n \"support\": \"full\",\n \"note\": \"Desktop CurrencyCode on the same CurrencyRet.\"\n },\n {\n \"qbo\": \"Rate\",\n \"support\": \"full\",\n \"note\": \"Desktop ExchangeRate.\"\n },\n {\n \"qbo\": \"AsOfDate\",\n \"support\": \"full\",\n \"note\": \"Desktop AsOfDate when present; omitted when Desktop has none.\"\n },\n {\n \"qbo\": \"TargetCurrencyCode\",\n \"support\": \"full\",\n \"note\": \"The company file's home currency as an ISO code, read from Preferences through the currency book. Omitted when the home currency cannot be determined; never invented.\"\n },\n {\n \"qbo\": \"keyed lookup\",\n \"support\": \"full\",\n \"note\": \"GET /exchangerate?sourcecurrencycode=CAD[&asofdate=2026-10-19] answers the current rate with TargetCurrencyCode. The home currency answers Rate 1 with AsOfDate = asofdate or today. An unknown currency code, or a currency with no rate, is 400 code 610. A missing sourcecurrencycode is 400 code 2020.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Keyed lookup with asofdate before the stored AsOfDate\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"QuickBooks Desktop keeps only the latest exchange rate per currency, so a date earlier than the stored AsOfDate cannot be answered (400). A date on or after it answers the stored rate. On a file with multicurrency off the lookup is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"case\": \"Create, update, or delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"ExchangeRate is read and query only. Desktop keeps one rate per currency on the currency list and CurrencyMod cannot change it (the request fails to parse), so a rate is set in QuickBooks. A transaction can carry its own rate: see ExchangeRate on the sales and purchase forms.\"\n },\n {\n \"case\": \"Currencies without ExchangeRate on CurrencyRet\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Projection skips CurrencyRets that do not carry ExchangeRate (home currency rows often omit it).\"\n }\n ]\n },\n \"InventoryAdjustment\": {\n \"entity\": \"InventoryAdjustment\",\n \"verdict\": \"live\",\n \"group\": \"purchasing\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Quantity and value adjustments to inventory items: create (by difference, to an absolute quantity or value, or with your own value), read, update (header and lines) and delete\",\n \"fields\": [\n {\n \"qbo\": \"AdjustAccountRef\",\n \"support\": \"full\",\n \"note\": \"Desktop AccountRef, the adjustment (offset) account. Required on create.\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"note\": \"Desktop RefNumber: max 11 characters. A longer value is rejected up front with a 400 fault (code 2050).\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\",\n \"note\": \"Desktop Memo.\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"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; quantity on hand changes by exactly that amount, verified live. The absolute forms are TenkeyBridge extensions inside ItemAdjustmentLineDetail (QBO only has the QtyDiff delta), create only: NewQty is the quantity on hand AFTER the adjustment (a number of at least 0, at most 5 decimal places; Desktop QuantityAdjustment/NewQuantity). NewValue is the item's TOTAL inventory value after the adjustment (not a unit cost; at most 2 decimal places; Desktop ValueAdjustment/NewValue). Send NewQty alone, NewValue alone (quantity unchanged, QtyDiff reads 0) or both; QtyDiff next to either is a 400 (2010) because Desktop silently ignores NewValue beside a quantity difference. A read never returns NewQty or NewValue, only the resulting QtyDiff and Amount. Proven live on QuickBooks Enterprise 24 (2026-10-20): NewQty 55 on a 50-unit item at average cost 18.00 reads QtyDiff 5, Amount 90.00; NewValue 123.45 on 55 units worth 990.00 reads Amount -866.55 and moves the average cost, and deleting the adjustment reverses it. The same item on two lines is refused (Desktop rejects it). Desktop's ValueDifference is Line.Amount, the value change of the line (the Ret line is flat QuantityDifference/ValueDifference). Without an Amount Desktop computes it as the quantity change times the item's average cost; Line.Amount sets it yourself (proven live 2026-10-21): QtyDiff with Amount, NewQty with Amount, or Amount alone (a value-only line, QtyDiff reads 0). Amount takes at most 2 decimals and cannot be combined with NewValue (both set the value; 400, 2010). A negative Amount is accepted only on a value-only line: next to a quantity decrease Desktop silently ignores it and prices the units at average cost, and next to an increase it refuses it (3210), so the gateway answers 400 (2010) up front. A positive Amount next to a quantity decrease is honored, and 0.00 next to a quantity is honored. Line.Description cannot be written (Desktop has no line memo). Update: Line is the WHOLE table, as in QBO. A line sent with its Id keeps that line (QtyDiff changes it), a line with no Id is added, and a line you leave out is deleted. Omit Line to leave every line alone; an empty array is refused (2020), and a repeated or unknown Id is refused (2010). Posting a read back whole works: an Amount on an existing line that equals the value the read returned is ignored. A different Amount is sent as ValueDifference, alone (the quantity is kept) or with a new QtyDiff. Desktop remembers whether a value was set explicitly: a QtyDiff-only update re-prices a computed value at average cost but keeps an explicit Amount. A value-only line (no quantity change) can be updated with a new Amount, or given a QtyDiff and an Amount; sent unchanged it is kept as it is.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). Writes are accepted and ignored. On a single-currency file a CurrencyRef other than USD or an ExchangeRate other than 1 is refused (400 UNSUPPORTED_BY_DESKTOP).\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only. Writes are accepted and ignored. On a single-currency file a CurrencyRef other than USD or an ExchangeRate other than 1 is refused (400 UNSUPPORTED_BY_DESKTOP).\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension: QBO cannot void an InventoryAdjustment; QuickBooks Desktop can. POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType InventoryAdjustment), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QuickBooks Enterprise 24 (2026-10-15). The re-read shows PrivateNote as `VOID: <memo>` and every line quantity change and value change at 0. The void reverses the stock effect, so the item QuantityOnHand returns to its value before the adjustment. A void does not reliably advance the SyncToken, so re-read the record instead of relying on it; voiding again is accepted. The response is whatever Desktop returns on the re-read (nothing is fabricated).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"NewQty or NewValue on an update line\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop's InventoryAdjustmentLineMod only has QuantityDifference and ValueDifference, so the absolute forms work on create only. To change an existing line send QtyDiff.\"\n },\n {\n \"case\": \"QtyDiff together with NewQty or NewValue on the same line\",\n \"error\": \"2010\",\n \"note\": \"Refused up front: Desktop silently ignores NewValue next to a quantity difference, and NewQty contradicts it. Send QtyDiff alone, or NewQty and/or NewValue.\"\n }\n ]\n },\n \"Invoice\": {\n \"entity\": \"Invoice\",\n \"verdict\": \"live\",\n \"group\": \"sales\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Line model, tax, discount, linked txns, and custom fields\",\n \"fields\": [\n {\n \"qbo\": \"CustomerRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ClassRef\",\n \"support\": \"full\",\n \"note\": \"Header-level class (Desktop ClassRef, read and write). Line-level ClassRef is separate.\"\n },\n {\n \"qbo\": \"DepartmentRef\",\n \"support\": \"none\",\n \"note\": \"UNMAPPED_FIELD by default. With Departments from classes turned on for the company file, the gateway maps it to the header ClassRef (written to it, read from it); sending a different ClassRef as well is a 400.\",\n \"error\": \"UNMAPPED_FIELD\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"BillAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipMethodRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PONumber\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"SalesTermRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DueDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"CustomerMemo\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop CustomerMsgRef by FullName; the message must already exist as a Desktop customer message. Updatable via sparse update (#55).\"\n },\n {\n \"qbo\": \"ProjectRef\",\n \"support\": \"full\",\n \"note\": \"A Desktop job is a QBO project, so ProjectRef sets the transaction's customer to the job (send the job's Id or full name). If CustomerRef is sent too, the job wins, and nothing is looked up: the job already implies its parent customer. Read: when the customer is a job (its full name contains a colon), ProjectRef is returned with the same value and name as CustomerRef, which stays exactly as Desktop returns it. A QBO project is one level deep and a Desktop job can sit under another job, so ProjectRef here means any job.\"\n },\n {\n \"qbo\": \"EmailStatus\",\n \"support\": \"partial\",\n \"note\": \"Maps to Desktop IsToBeEmailed. NeedToSend writes true; NotSet and EmailSent write false, because Desktop only knows whether the form is still queued. Read: true is NeedToSend, false is NotSet. Desktop does not record that a form was sent, so EmailSent is never returned. Setting NeedToSend sends nothing by itself: it only queues the form in QuickBooks.\"\n },\n {\n \"qbo\": \"PrintStatus\",\n \"support\": \"partial\",\n \"note\": \"Maps to Desktop IsToBePrinted. NeedToPrint writes true; NotSet and PrintComplete write false. Read: true is NeedToPrint, false is NotSet. Desktop does not record that a form was printed, so PrintComplete is never returned.\"\n },\n {\n \"qbo\": \"BillEmail\",\n \"support\": \"partial\",\n \"note\": \"Accepted and not stored. Desktop sales forms have no email address of their own: QuickBooks sends a form to the customer's email address. BillEmailCc and BillEmailBcc are accepted and dropped the same way. They are never returned on read, so update the customer's PrimaryEmailAddr to change where forms go.\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"note\": \"SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail names a Desktop discount item by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount). With no ItemRef but a DiscountAccountRef, the gateway uses the one active discount item that posts to that account; none or several is MISSING_REQUIRED_DESKTOP_ITEM, and a discount item is never created for you. SubTotalLineDetail needs no ItemRef: the gateway uses the company's active subtotal item (the one named Subtotal if there are several, else the first), and only when there is none it creates an item named Subtotal (it has no account and posts nothing); a subtotal line is sent without Amount, Qty or Rate because Desktop computes the amount and refuses one. Other DetailTypes return UNSUPPORTED_BY_DESKTOP. Lines read back in Desktop's own order; a group line reads as GroupLineDetail with its component lines in GroupLineDetail.Line (each with its own Id) and the bundle total as Amount; a subtotal line reads as SubTotalLineDetail; 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. The Ids on a group's component lines (GroupLineDetail.Line[].Id) are read-only: they identify what was read and are not accepted as line Ids on a write.\"\n },\n {\n \"qbo\": \"TxnTaxDetail\",\n \"support\": \"partial\",\n \"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 derived, not read: the sum of the Tax-coded line Amounts (discount lines are not subtracted, verified live), returned only when it reproduces Desktop's SalesTaxTotal to the cent and omitted otherwise (custom tax codes, or a discount whose taxability is unknown). Updatable via sparse update (#55).\"\n },\n {\n \"qbo\": \"LinkedTxn\",\n \"support\": \"full\",\n \"note\": \"Populated on read from LinkedTxn when IncludeLinkedTxns is requested (automatic). Desktop ReceivePayment → QBO Payment; links to Desktop-only transaction types (SalesOrder, ItemReceipt, …) are omitted rather than guessed at. Accepted and ignored on write — same as QBO treats it as read-only.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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).\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only, computed by Desktop as Subtotal + SalesTaxTotal.\"\n },\n {\n \"qbo\": \"Balance\",\n \"support\": \"full\",\n \"note\": \"Read-only, computed by Desktop as BalanceRemaining.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the customer, so CurrencyRef is checked and then dropped: one that differs from the customer's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create and on update (changing only the rate). On a sparse update it is sent only when you change it.\"\n },\n {\n \"qbo\": \"HomeBalance\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop BalanceRemainingInHomeCurrency. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"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).\"\n },\n {\n \"qbo\": \"ApplyTaxAfterDiscount\",\n \"support\": \"partial\",\n \"note\": \"Maps onto the discount line's own sales tax code, proven live on QuickBooks Enterprise 24: Tax is tax after the discount (true), Non is tax on the full amount (false). On write, true or false is never sent as a field; every discount line with no TaxCodeRef of its own is coded Tax or Non, and an explicit TAX or NON that contradicts the value is 400 (code 2010, element Line.DiscountLineDetail.TaxCodeRef). A custom tax code on a discount line wins. DiscountLineDetail.TaxCodeRef is written as that line's sales tax code. With no discount lines the value is accepted and does nothing. Read: present only when the form has discount lines and they are all Tax (true) or all Non (false); omitted when mixed. On a sparse update with no Line, a value equal to the current one is accepted; a different one is 422 UNSUPPORTED_BY_DESKTOP, so send the full Line array to change it. Any value that is not a boolean is 400 (code 2010).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"GET /{id}/pdf\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"qbXML cannot render or return a PDF of a transaction, so the route answers 422. Render the PDF from the JSON record in your own application.\"\n },\n {\n \"case\": \"POST /{id}/send (actually sending the email)\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"The route is queue-only: it sets EmailStatus NeedToSend (Desktop IsToBeEmailed) through a sparse update and returns the record, so the form lands in QuickBooks' To be e-mailed queue. TenkeyBridge sends no mail; QuickBooks sends the form to the customer's email address. sendTo is ignored (X-TKB-Warning says so). Desktop refuses the queue (3180) when the company file has no company email.\"\n },\n {\n \"case\": \"Line.DiscountLineDetail without an ItemRef or a single matching DiscountAccountRef item (bare-percentage or amount-off discounts)\",\n \"error\": \"MISSING_REQUIRED_DESKTOP_ITEM\",\n \"note\": \"Desktop discounts are items. Send DiscountAccountRef and the gateway uses the one active discount item that posts to that account; with no account, no match or several matches the call is refused and nothing is guessed, because a wrong item would post the discount to the wrong account. Create a discount item through the Item API (DesktopItemType Discount) or in QuickBooks (Lists > Item List > New > Discount) and pass it as DiscountLineDetail.ItemRef by value (ListID) or name (full name). See COMPATIBILITY.md.\"\n },\n {\n \"case\": \"Nested/grouped line types other than SalesItemLineDetail, DiscountLineDetail, GroupLineDetail, and DescriptionOnly\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"These line types do not map to QuickBooks Desktop sales transactions. Remove them or flatten to a supported DetailType. See COMPATIBILITY.md.\"\n },\n {\n \"case\": \"ApplyTaxAfterDiscount changed on a sparse update that carries no Line\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"On Desktop the value lives on each discount line's tax code, so it cannot change on its own. Send the full Line array in the same update.\"\n }\n ]\n },\n \"Item\": {\n \"entity\": \"Item\",\n \"verdict\": \"live\",\n \"group\": \"sales\",\n \"read\": \"partial\",\n \"write\": \"partial\",\n \"headline\": \"One Item becomes several Desktop item types\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"full\",\n \"note\": \"Desktop item Name is the leaf name (max 31 characters); FullyQualifiedName is derived.\"\n },\n {\n \"qbo\": \"FullyQualifiedName\",\n \"support\": \"full\",\n \"note\": \"Read-only; derived from the Desktop FullName. Echoed values on update are ignored.\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\",\n \"note\": \"Deactivate with a sparse update setting Active to false; items are never deleted.\"\n },\n {\n \"qbo\": \"Type\",\n \"support\": \"partial\",\n \"note\": \"Service, NonInventory, Inventory and Group read and write. Every Desktop item type reads, in get-by-id and in query results, with the nearest QBO Type and a read-only DesktopItemType: inventory assemblies read as Inventory, fixed assets as NonInventory, and other-charge, discount, subtotal, payment, sales tax and sales tax group items as Service. Type cannot change after creation. Category has no Desktop equivalent.\"\n },\n {\n \"qbo\": \"DesktopItemType\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension (QBO has no such field). Read on every item: Service, NonInventory, Inventory, InventoryAssembly, FixedAsset, OtherCharge, Discount, Subtotal, Payment, SalesTax, SalesTaxGroup or Group. It is also the write selector for the families QBO has no Type for: Discount, OtherCharge, Subtotal, Payment, InventoryAssembly and FixedAsset (send it with the matching Type: Service for the first four, Inventory for InventoryAssembly, NonInventory for FixedAsset). A value that disagrees with Type, or one that tries to change on update, is a 400 with code 2010. FixedAsset is written with Type NonInventory (the same pair a read returns); see the fixed asset rows below. SalesTax and SalesTaxGroup items cannot be written through the Item API (write a sales tax item through POST /taxrate and a sales tax group through POST /taxservice/taxcode).\"\n },\n {\n \"qbo\": \"ItemGroupDetail\",\n \"support\": \"full\",\n \"note\": \"Group items, in QBO's bundle shape: ItemGroupDetail.ItemGroupLine[{ItemRef, Qty}]. A TenkeyBridge write extension, since QBO itself cannot create bundles. A line with Qty omitted is sent with Qty 1. A create needs at least one line. On update, sending ItemGroupDetail replaces the whole component list (post back every line you want to keep); a sparse update that does not carry it, such as a rename, leaves the components alone; an explicitly empty ItemGroupLine array empties the group.\"\n },\n {\n \"qbo\": \"PrintGroupedItems\",\n \"support\": \"full\",\n \"note\": \"TenkeyBridge extension. Group items only: whether the component lines print on a transaction (Desktop IsPrintItemsInGroup).\"\n },\n {\n \"qbo\": \"ItemAssemblyDetail\",\n \"support\": \"full\",\n \"note\": \"TenkeyBridge extension (inventory assemblies are a Desktop concept): ItemAssemblyDetail.ItemAssemblyLine[{ItemRef, Qty}], with the same rules as ItemGroupDetail (Qty omitted means 1). Create with Type Inventory and DesktopItemType InventoryAssembly plus the Inventory fields (IncomeAccountRef, ExpenseAccountRef, AssetAccountRef).\"\n },\n {\n \"qbo\": \"DiscountPercent\",\n \"support\": \"full\",\n \"note\": \"TenkeyBridge extension. Discount items: a percentage discount (for example 10 for ten percent). Send it or UnitPrice (a flat amount), not both. A discount item needs IncomeAccountRef on create.\"\n },\n {\n \"qbo\": \"DepositToAccountRef\",\n \"support\": \"full\",\n \"note\": \"TenkeyBridge extension. Payment items: the account the payment is deposited to. On update an omitted value keeps the stored account; null resets it to Undeposited Funds.\"\n },\n {\n \"qbo\": \"PaymentMethodRef\",\n \"support\": \"full\",\n \"note\": \"TenkeyBridge extension. Payment items: the payment method.\"\n },\n {\n \"qbo\": \"TaxRate\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension. Read only, on SalesTax items: the rate as a percentage. Write sales tax items through the TaxRate endpoint (POST /taxrate) and sales tax groups through POST /taxservice/taxcode.\"\n },\n {\n \"qbo\": \"AgencyRef\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension. Read only, on SalesTax items: the tax agency vendor.\"\n },\n {\n \"qbo\": \"TaxRateRefs\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension. Read only, on SalesTaxGroup items: the member tax items.\"\n },\n {\n \"qbo\": \"PurchaseDate\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension. Fixed asset items only (any other item type is a 400, code 2010). The date the asset was bought (YYYY-MM-DD). Required on create (Desktop requires it); read back as sent.\"\n },\n {\n \"qbo\": \"AcquiredAs\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension. Fixed asset items only: New or Old (default New on create). Desktop requires it, so a create always sends it.\"\n },\n {\n \"qbo\": \"VendorOrPayeeName\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension. Fixed asset items only: who the asset was bought from (text, max 50 characters).\"\n },\n {\n \"qbo\": \"Location\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension. Fixed asset items only: where the asset is kept (max 50 characters).\"\n },\n {\n \"qbo\": \"SerialNumber\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension. Fixed asset items only (max 30 characters).\"\n },\n {\n \"qbo\": \"Description\",\n \"support\": \"full\",\n \"note\": \"Desktop sales description: SalesOrPurchase/Desc, SalesAndPurchase/SalesDesc, or SalesDesc on Inventory. On a fixed asset item it is the asset description (AssetDesc, max 50 characters), read as the purchase description when the asset has none.\"\n },\n {\n \"qbo\": \"UnitPrice\",\n \"support\": \"full\",\n \"note\": \"Desktop sales price. Sent with up to five decimals. On a Desktop discount item a flat rate reads as UnitPrice and a percentage discount reads as DiscountPercent; both can be written on a discount item. On other-charge items it is the flat amount.\"\n },\n {\n \"qbo\": \"Sku\",\n \"support\": \"partial\",\n \"note\": \"QBO Sku maps to Desktop ManufacturerPartNumber (max 31 characters) — 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.\"\n },\n {\n \"qbo\": \"TrackQtyOnHand\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"QtyOnHand\",\n \"support\": \"partial\",\n \"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. QuantityOnHand on an Inventory or assembly create posts an opening-balance inventory adjustment in QuickBooks (dated the create day, Opening Balance Equity), and the item cannot be deleted until that adjustment is deleted. The sandbox does not emulate that adjustment.\"\n },\n {\n \"qbo\": \"InvStartDate\",\n \"support\": \"partial\",\n \"note\": \"Write-only, create only (Desktop InventoryDate). Not returned on read.\"\n },\n {\n \"qbo\": \"IncomeAccountRef\",\n \"support\": \"full\",\n \"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).\"\n },\n {\n \"qbo\": \"ExpenseAccountRef\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"AssetAccountRef\",\n \"support\": \"full\",\n \"note\": \"Inventory and fixed asset items; required on create for both (a fixed asset item with no asset account is refused by Desktop, error 3180, so it is a 400 here with code 2020).\"\n },\n {\n \"qbo\": \"PurchaseDesc\",\n \"support\": \"full\",\n \"note\": \"Fixed asset items: required on create (Description is used when it is omitted), max 50 characters. 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.\"\n },\n {\n \"qbo\": \"PurchaseCost\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"PrefVendorRef\",\n \"support\": \"full\",\n \"note\": \"Inventory and two-sided Service/NonInventory.\"\n },\n {\n \"qbo\": \"ParentRef\",\n \"support\": \"full\",\n \"note\": \"Desktop item hierarchy; sub-items are FullName paths (Parent:Child).\"\n },\n {\n \"qbo\": \"SubItem\",\n \"support\": \"full\",\n \"note\": \"Derived from Desktop Sublevel; read-only.\"\n },\n {\n \"qbo\": \"ClassRef\",\n \"support\": \"full\",\n \"note\": \"Desktop ClassRef.\"\n },\n {\n \"qbo\": \"SalesTaxCodeRef\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"Taxable\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Writing SalesTax or SalesTaxGroup items\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"These read through the Item API (with TaxRate, AgencyRef and TaxRateRefs) but cannot be written through the Item API.\",\n \"workaround\": \"Write a sales tax item through the TaxRate endpoint (POST /taxrate) and a sales tax group through POST /taxservice/taxcode.\"\n },\n {\n \"case\": \"Fixed asset item fields beyond the listed extensions (PONumber, Notes, warranty date, asset number, cost basis, year-end depreciation, sales information)\",\n \"error\": \"UNMAPPED_FIELD\",\n \"note\": \"Fixed asset items write and read the fields listed on the DesktopItemType row. The other Desktop fixed asset fields are not mapped.\"\n },\n {\n \"case\": \"Category items, and turning a sales-only item into a two-sided one\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Category has no Desktop equivalent. Desktop also rejects the SalesOrPurchase to SalesAndPurchase conversion (error 3170): include PurchaseDesc, PurchaseCost, ExpenseAccountRef or PrefVendorRef when a Service or NonInventory item is created.\"\n },\n {\n \"case\": \"Changing QtyOnHand after creation\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"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.)\"\n }\n ]\n },\n \"JournalCode\": {\n \"entity\": \"JournalCode\",\n \"verdict\": \"gap\",\n \"group\": \"gaps\",\n \"read\": \"none\",\n \"write\": \"none\",\n \"headline\": \"France-only QBO regulatory feature; not applicable to Desktop — 'JournalCode' occurs nowhere in the qbxmlops130 message set.\",\n \"fields\": [],\n \"unsupported\": [\n {\n \"case\": \"read\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Re-audited 2026-07-29: JournalCode is a France-locale QBO regulatory concept (mandatory journal coding for FEC compliance) with zero counterpart in qbXML — US Desktop has no such concept to map.\"\n },\n {\n \"case\": \"query\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"JournalCode is a France-locale QBO regulatory concept with no Desktop counterpart.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"JournalCode is a France-locale QBO regulatory concept with no Desktop counterpart.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"JournalCode is a France-locale QBO regulatory concept with no Desktop counterpart.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"JournalCode is a France-locale QBO regulatory concept with no Desktop counterpart.\"\n }\n ]\n },\n \"JournalEntry\": {\n \"entity\": \"JournalEntry\",\n \"verdict\": \"live\",\n \"group\": \"banking\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Debit/Credit lines split across Desktop JournalDebitLine / JournalCreditLine\",\n \"fields\": [\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop Memo when the company file/OSR returns a header Memo on JournalEntry.\"\n },\n {\n \"qbo\": \"Adjustment\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop IsAdjustment.\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"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, so 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: Type is filled by a name lookup (Customer, Vendor or Employee; other names have no Type). Desktop's line-level EntityRef carries no entity-kind flag, so the gateway asks QuickBooks which list owns the name (one extra round trip, cached per company for 15 minutes); if the lookup fails the line comes back with EntityRef only. A Type you send on write is accepted and not stored, and the answer to a create or update carries no Type on its lines (a read does).\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only aggregate when present; not independently computed.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). Written on create and stored by Desktop. The currency must be active (400 otherwise; activate it with CompanyCurrency). Desktop refuses a foreign currency on an entry whose lines use only home-currency accounts, and a currency that differs from a foreign account on a line (400, code 2500). On a file with multicurrency off only USD is accepted (and dropped). Changing CurrencyRef on update is not proven live.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create and on a sparse update that changes only the rate. It is sent on update only when you change it.\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension: QBO cannot void a JournalEntry; QuickBooks Desktop can. POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType JournalEntry), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QuickBooks Enterprise 24 (2026-10-15). The re-read shows every line Amount at 0.00 with the lines kept, and `VOID:` before the memo of the first line only (the entry's own PrivateNote is unchanged). Desktop returns both lines on the debit side after a void, so a voided journal entry does not keep its per-line debit and credit sides. A void does not reliably advance the SyncToken, so re-read the record instead of relying on it; voiding again is accepted. The response is whatever Desktop returns on the re-read (nothing is fabricated).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Unbalanced journal entry (debits ≠ credits)\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop rejects unbalanced JEs. Balance debits and credits before create.\"\n },\n {\n \"case\": \"Line DetailType other than JournalEntryLineDetail\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Only JournalEntryLineDetail maps to Desktop journal lines.\"\n }\n ]\n },\n \"Paycheck\": {\n \"entity\": \"Paycheck\",\n \"verdict\": \"live\",\n \"group\": \"transactions\",\n \"read\": \"partial\",\n \"write\": \"none\",\n \"headline\": \"TenkeyBridge extension: read-only list of QuickBooks Desktop payroll paychecks (header rows: employee, bank account, date, check number, net pay). QuickBooks Online has no Paycheck entity. Needs a payroll subscription and the personal-data permission\",\n \"fields\": [\n {\n \"qbo\": \"MetaData\",\n \"support\": \"full\",\n \"note\": \"Id is Desktop's TxnID. CreateTime and LastUpdatedTime come from Desktop's TimeCreated / TimeModified. There is no SyncToken: Desktop's paycheck rows carry no EditSequence.\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\",\n \"note\": \"The check date. Pushed to Desktop as a TransactionDateRangeFilter.\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"note\": \"Desktop RefNumber. Filters on it are applied by the gateway after the read.\"\n },\n {\n \"qbo\": \"EmployeeRef\",\n \"support\": \"full\",\n \"note\": \"Desktop EntityRef, the employee. An equality filter is pushed to Desktop as a TransactionEntityFilter.\"\n },\n {\n \"qbo\": \"BankAccountRef\",\n \"support\": \"full\",\n \"note\": \"Desktop AccountRef, the bank account the check is drawn on.\"\n },\n {\n \"qbo\": \"NetPay\",\n \"support\": \"full\",\n \"note\": \"Desktop Amount with the sign flipped: Desktop reports money out as negative, NetPay is the positive take-home amount. Filterable, applied by the gateway.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Earnings, taxes and deductions\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"qbXML has no paycheck detail query: the paycheck list answers header rows only. Pay stub lines (earnings, taxes, deductions, hours) come from the payroll reports.\"\n },\n {\n \"case\": \"create, update, delete or void\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Paycheck is read-only through TenkeyBridge. Paychecks are created in QuickBooks Desktop payroll.\",\n \"workaround\": \"Create or void the paycheck in QuickBooks Desktop (Employees, Pay Employees); it shows up on the next read.\"\n },\n {\n \"case\": \"File without payroll\",\n \"error\": \"PAYROLL_SUBSCRIPTION_REQUIRED\",\n \"note\": \"Desktop answers status 3262 when the company file has no payroll subscription (422 PAYROLL_SUBSCRIPTION_REQUIRED), and 3261 when the integrated app lacks the personal-data permission (403 QB_PERSONAL_DATA_DENIED).\"\n }\n ]\n },\n \"Payment\": {\n \"entity\": \"Payment\",\n \"verdict\": \"live\",\n \"group\": \"sales\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Applying a payment to specific invoices\",\n \"fields\": [\n {\n \"qbo\": \"CustomerRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ARAccountRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PaymentRefNum\",\n \"support\": \"full\",\n \"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).\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PaymentMethodRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DepositToAccountRef\",\n \"support\": \"full\",\n \"note\": \"Omit to use Desktop's Undeposited Funds preference, same as QBO.\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"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 — re-fetch the invoice for balance/date/doc number.\"\n },\n {\n \"qbo\": \"UnappliedAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only; Desktop UnusedPayment.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"note\": \"Name/StringValue populated from Desktop custom fields (DataExt); DefinitionId not available from Desktop; read-only because QuickBooks does not allow a public custom field on a received payment (the definition is refused with status 3351, verified live 2026-10-15). Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the customer, so CurrencyRef is checked and then dropped: one that differs from the customer's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create. On a sparse update it is sent only when you change it; the update placement is not proven live.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop TotalAmountInHomeCurrency. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"ProcessPayment\",\n \"support\": \"partial\",\n \"note\": \"Accepted and ignored — TenkeyBridge never initiates card processing.\"\n },\n {\n \"qbo\": \"TxnNumber\",\n \"support\": \"none\",\n \"note\": \"Desktop's internal auto-increment TxnNumber has no QBO equivalent and is not surfaced.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"UnusedCredits\",\n \"support\": \"none\",\n \"note\": \"Desktop UnusedCredits (unapplied credit memos available to the customer) is distinct from UnappliedAmt/UnusedPayment; no honest home on Payment — belongs on CreditMemo.Balance.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"operation=void\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"qbXML's TxnVoidType has no ReceivePayment value — a customer payment cannot be voided through the SDK (HTTP 400). Delete it (?operation=delete) and re-enter it if needed.\"\n }\n ]\n },\n \"PaymentMethod\": {\n \"entity\": \"PaymentMethod\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Create only — Desktop has no PaymentMethodMod; Type coarsens Desktop's fine enum to CREDIT_CARD | NON_CREDIT_CARD\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Type\",\n \"support\": \"partial\",\n \"note\": \"Desktop PaymentMethodType (Visa, Cash, Check, …) coarsens to QBO CREDIT_CARD | NON_CREDIT_CARD on read. Create writes a representative Desktop value (OtherCreditCard / Other) — the fine enum is not preserved across a round-trip.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop has no PaymentMethodMod. Create a new PaymentMethod instead; list entities are not deleted — deactivate is also unavailable without Mod.\"\n }\n ]\n },\n \"PayrollItemWage\": {\n \"entity\": \"PayrollItemWage\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"none\",\n \"headline\": \"TenkeyBridge extension: read/query the payroll wage items (Regular Pay, Overtime Pay, ...) a TimeActivity can name; QuickBooks Desktop only\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"full\",\n \"note\": \"Up to 31 characters.\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\",\n \"note\": \"Queries return active items only unless you filter on Active.\"\n },\n {\n \"qbo\": \"WageType\",\n \"support\": \"full\",\n \"note\": \"Desktop's enum string, unchanged: Bonus, Commission, HourlyOvertime, HourlyRegular, HourlySick, HourlyVacation, SalaryRegular, SalarySick, SalaryVacation.\"\n },\n {\n \"qbo\": \"ExpenseAccountRef\",\n \"support\": \"full\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Create, update, deactivate or delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"PayrollItemWage is read-only through TenkeyBridge. Reading wage items works on a company file without a payroll subscription.\",\n \"workaround\": \"Create or edit the wage item in QuickBooks Desktop (Lists, Payroll Item List); it shows up on the next read.\"\n }\n ]\n },\n \"Preferences\": {\n \"entity\": \"Preferences\",\n \"verdict\": \"live\",\n \"group\": \"company\",\n \"read\": \"partial\",\n \"write\": \"none\",\n \"headline\": \"Read-only singleton (Id=1); honest subset of Desktop PreferencesQuery groups\",\n \"fields\": [\n {\n \"qbo\": \"AccountingInfoPrefs\",\n \"support\": \"partial\",\n \"note\": \"ClassTrackingPerTxn/ClassTrackingPerTxnLine ← IsUsingClassTracking (same bool projected to both); TrackDepartments is false, or true when the company file has Departments from classes turned on (Department is then an alias of Class). UseAccountNumbers ← IsUsingAccountNumbers; BookCloseDate ← AccountingPreferences.ClosingDate when the file has one; FirstMonthOfFiscalYear ← company FirstMonthFiscalYear and TaxYearMonth ← FirstMonthIncomeTaxYear (read from a companion company query; omitted if that query fails).\"\n },\n {\n \"qbo\": \"CurrencyPrefs\",\n \"support\": \"partial\",\n \"note\": \"MultiCurrencyEnabled ← IsMultiCurrencyOn; HomeCurrency ← HomeCurrencyRef, answered as the ISO code (USD) on multicurrency files; absent when multicurrency is off.\"\n },\n {\n \"qbo\": \"TimeTrackingPrefs\",\n \"support\": \"partial\",\n \"note\": \"WorkWeekStartDate ← FirstDayOfWeek only.\"\n },\n {\n \"qbo\": \"TaxPrefs\",\n \"support\": \"partial\",\n \"note\": \"UsingSalesTax true when SalesTaxPreferences is present on PreferencesRet; no other TaxPrefs fields.\"\n },\n {\n \"qbo\": \"SalesFormsPrefs\",\n \"support\": \"partial\",\n \"note\": \"UsingPriceLevels ← PriceLevels.IsUsingPriceLevels; DefaultShipMethodRef; AllowEstimates/UsingProgressInvoicing from JobsAndEstimatesPreferences. DefaultTerms never populated, because Desktop SalesAndCustomersPreferences carries no DefaultTermsRef (qbXML 13.0). IsAutoApplyingPayments has no honest QBO SalesFormsPrefs twin, and Desktop has no credits-specific auto-apply element, so AutoApplyCredit is omitted.\"\n },\n {\n \"qbo\": \"VendorAndPurchasesPrefs\",\n \"support\": \"partial\",\n \"note\": \"UsingInventory ← IsUsingInventory only. DaysBillsAreDue / auto-discount have no honest QBO twin.\"\n },\n {\n \"qbo\": \"ReportPrefs\",\n \"support\": \"partial\",\n \"note\": \"ReportBasis ← SummaryReportBasis when Cash or Accrual.\"\n },\n {\n \"qbo\": \"ProductAndServicesPrefs\",\n \"support\": \"partial\",\n \"note\": \"QuantityOnHand ← IsUsingInventory only; nothing else has a Desktop twin.\"\n },\n {\n \"qbo\": \"EmailMessagesPrefs\",\n \"support\": \"none\",\n \"note\": \"No honest PreferencesRet projection — omitted rather than guessed.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"OtherPrefs\",\n \"support\": \"none\",\n \"note\": \"No honest PreferencesRet projection — omitted rather than guessed.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Create, update, or delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Preferences is read/query only in QBO and Desktop — there is no PreferencesAdd/Mod.\"\n },\n {\n \"case\": \"Any WHERE clause, ORDERBY, COUNT(*), column list, or STARTPOSITION/MAXRESULTS\",\n \"error\": \"UNSUPPORTED_QUERY\",\n \"note\": \"PreferencesQueryRq takes no filters and always returns the single open company PreferencesRet. Use SELECT * FROM Preferences.\"\n }\n ]\n },\n \"Purchase\": {\n \"entity\": \"Purchase\",\n \"verdict\": \"live\",\n \"group\": \"purchasing\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Fans out to Check / CreditCardCharge / CreditCardCredit by PaymentType\",\n \"fields\": [\n {\n \"qbo\": \"PaymentType\",\n \"support\": \"partial\",\n \"note\": \"Check and CreditCard map to Desktop families; Cash is partial (maps to Check against the supplied bank/petty-cash AccountRef — Desktop has no separate cash purchase type). On update PaymentType is immutable across Desktop's families: a Check (or Cash) purchase cannot become a CreditCard one, or the reverse, and a charge cannot become a credit; the update is refused (2010). Delete it and create a new Purchase.\"\n },\n {\n \"qbo\": \"Credit\",\n \"support\": \"full\",\n \"note\": \"true + PaymentType CreditCard → CreditCardCredit*; false/omitted → CreditCardCharge*. Immutable on update (changing it is refused, 2010).\"\n },\n {\n \"qbo\": \"AccountRef\",\n \"support\": \"full\",\n \"note\": \"Bank account (Check/Cash) or credit-card account (CreditCard).\"\n },\n {\n \"qbo\": \"EntityRef\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop PayeeEntityRef (Customer/Vendor/Employee).\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrintStatus\",\n \"support\": \"partial\",\n \"note\": \"NeedToPrint/PrintComplete ⇄ IsToBePrinted (Check family).\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"full\",\n \"note\": \"AccountBasedExpenseLineDetail and ItemBasedExpenseLineDetail via shared Bill line machinery. Update: Line is the WHOLE table, as in QBO. A line sent with its Id (the Line.Id a read returned) keeps that line, a line with no Id is added, and a line you leave out is deleted. Omit Line to leave every line alone (a header-only update such as PrivateNote never touches lines); an empty array is refused (2020), and a repeated or unknown Id is refused (2010). A line cannot change type: sending an expense line's Id with an item detail (or the reverse) is 2010, so omit the Id to replace it. On an item line that sends Amount without Qty or UnitPrice, Desktop keeps the stored quantity and re-derives the unit cost, so the Amount you send is the Amount you read back (verified live, 2026-10-14). Item group lines read as their component item lines, in the group's place and in Desktop's order, each carrying the TenkeyBridge extension fields GroupLineId (the group's Id) and GroupItemRef. The Id on each of those component lines is read-only: it identifies what was read and is not accepted as a line Id on a write. A transaction that has item group lines refuses a Line update with UNSUPPORTED_BY_DESKTOP, because a table update would delete them; header-only updates still work. Applies to Check, CreditCardCharge and CreditCardCredit alike.\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only from Desktop Amount.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the payee, then from the account when there is no payee, so CurrencyRef is checked and then dropped: one that differs is a 400 (code 2010). A payee and an account in different currencies are refused, except that a home-currency account may pay a payee in another currency. On a file with multicurrency off only USD is accepted (and dropped).\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create. On a sparse update it is sent only when you change it; the update placement is not proven live.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop AmountInHomeCurrency. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"query paging\",\n \"support\": \"full\",\n \"note\": \"STARTPOSITION and MAXRESULTS page across all three Desktop families as one list: Check, then CreditCardCharge, then CreditCardCredit, each in Desktop order, with refund checks left out of the count. A deep page costs two QuickBooks messages (the ids of every row the query selects, then the page by id) and faults with UNSUPPORTED_QUERY past 5000 rows in one family; narrow with a TxnDate or MetaData.LastUpdatedTime range.\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"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` — 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).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"A check applied to a credit memo (a refund check)\",\n \"error\": \"NOT_FOUND\",\n \"note\": \"A Desktop check applied to a credit memo is a QBO RefundReceipt, never a Purchase, so Purchase reads, deletes and updates skip it (GET by id is 610 Object Not Found). Use RefundReceipt.\"\n },\n {\n \"case\": \"PaymentType outside Check/Cash/CreditCard\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Only Check, Cash (→Check), and CreditCard map to Desktop purchase families.\"\n }\n ]\n },\n \"PurchaseOrder\": {\n \"entity\": \"PurchaseOrder\",\n \"verdict\": \"live\",\n \"group\": \"purchasing\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Non-posting; item lines only — never touches the GL on either side\",\n \"fields\": [\n {\n \"qbo\": \"VendorRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ClassRef\",\n \"support\": \"full\",\n \"note\": \"Header-level class (Desktop ClassRef, read and write). Line-level ClassRef is separate.\"\n },\n {\n \"qbo\": \"DepartmentRef\",\n \"support\": \"none\",\n \"note\": \"UNMAPPED_FIELD by default. With Departments from classes turned on for the company file, the gateway maps it to the header ClassRef (written to it, read from it); sending a different ClassRef as well is a 400.\",\n \"error\": \"UNMAPPED_FIELD\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"VendorAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DueDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ExpectedDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipMethodRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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).\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"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 — 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. Item group lines (PurchaseOrderLineGroupRet) read as their component item lines, in the group's place and in Desktop's order, each carrying the TenkeyBridge extension fields GroupLineId (the group's Id), GroupItemRef and GroupQuantity; the component lines are read-only. Create: send {DetailType: GroupLineDetail, GroupLineDetail: {GroupItemRef, Quantity}} among the item lines (PurchaseOrderLineGroupAdd; GroupItemRef is required, Quantity optional). Update, with the whole Line array: send all of a group's component lines back to keep the group, none of them to delete it; sending only some is a 400 (2010). A component can be edited in place: change its Qty, UnitPrice, Amount, Description, ItemRef, ClassRef or CustomerRef in the whole array and send every component of the group (the gateway sends one nested PurchaseOrderLineMod per component inside the group's PurchaseOrderLineGroupMod; Desktop deletes any component left out of that list, so a partial list with an edit is a 400, 2010). The edit follows the plain item line rules: a Qty or UnitPrice change re-derives Amount, an Amount change keeps the quantity and derives the rate, an Amount that only repeats the read is ignored. Edits survive a later group quantity change (the component quantities follow the group quantity, 5 at group quantity 2 becomes 7.5 at 3). Changing a component's DetailType or GroupLineId, or combining a component edit with a change to the group's item or quantity in the same request, is a 400 (2010). To change the group itself send a GroupLineDetail line whose Id is the group's GroupLineId (GroupItemRef and Quantity you omit are filled from the current record; PurchaseOrderLineGroupMod); a GroupLineDetail line without an Id adds a new group. An Id cannot change a line between item and group (400, 2010). Verified live on QuickBooks Enterprise 24 (2026-09-30, group create and update 2026-10-20, component edits 2026-10-21): the Id/new/deleted-line table, qty recompute and OSR child order are accepted.\"\n },\n {\n \"qbo\": \"LinkedTxn\",\n \"support\": \"partial\",\n \"note\": \"Read-only, populated on read: the Bill(s) created from the purchase order, as {TxnId, TxnType: Bill}. Desktop-only link types (ItemReceipt, ...) are omitted. On a keyed GET, a query and every page of a paged query (live, 2026-10-21). Accepted and ignored on write, as in QBO. Linking a new Bill to a purchase order is not supported (see Bill.LinkedTxn).\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only from Desktop TotalAmount.\"\n },\n {\n \"qbo\": \"POStatus\",\n \"support\": \"partial\",\n \"note\": \"Open/Closed map to Desktop IsManuallyClosed, a Mod-only element: PurchaseOrderAdd has no IsManuallyClosed at all. Create with POStatus Open (or omitted) is one Add. Create with POStatus Closed is two QuickBooks requests, a PurchaseOrderAdd then a PurchaseOrderMod that closes it, and answers with the closed purchase order. If the close fails after the add, the purchase order exists and is open: the answer is 502 PO_CLOSE_FAILED naming its Id (and a requestid replay answers 502 REQUEST_OUTCOME_UNKNOWN naming the same Id, without re-sending), so do not retry the create; send an update with POStatus Closed. 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 and 2026-10-15): closing and reopening both work, and a Mod carrying the Add's own TxnID and EditSequence closes the new PO.\"\n },\n {\n \"qbo\": \"APAccountRef\",\n \"support\": \"none\",\n \"note\": \"Purchase orders are non-posting — there is no AP account on Desktop POs.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the vendor, so CurrencyRef is checked and then dropped: one that differs from the vendor's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create. On a sparse update it is sent only when you change it; the update placement is not proven live.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop TotalAmountInHomeCurrency. Accepted and ignored on write.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"AccountBasedExpenseLineDetail on a PurchaseOrder line\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop PO lines are item-only. Use ItemBasedExpenseLineDetail, or post a Bill/Purchase for account expenses.\"\n }\n ]\n },\n \"RecurringTransaction\": {\n \"entity\": \"RecurringTransaction\",\n \"verdict\": \"gap\",\n \"group\": \"gaps\",\n \"read\": \"none\",\n \"write\": \"none\",\n \"headline\": \"Desktop's memorized transactions are not exposed by qbXML — there is no message to list, read, create, or execute them.\",\n \"fields\": [],\n \"unsupported\": [\n {\n \"case\": \"read\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Re-audited 2026-07-29: no MemorizedTxn message of any kind exists in the qbxmlops130 message set. The only trace of the concept in the entire schema is a cosmetic 'memorizedTxn' row label in generic report output — a taxonomy tag, not an access path to a memorized transaction's contents or schedule.\",\n \"workaround\": \"Manage memorized transactions in the Desktop UI. Transactions they generate ARE visible through TenkeyBridge once QuickBooks posts them — they arrive as ordinary invoices/bills/etc.\"\n },\n {\n \"case\": \"query\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Memorized transactions cannot be enumerated via qbXML — zero functional API surface.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Memorized transactions cannot be created via qbXML; manage them in the Desktop UI.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Memorized transactions cannot be updated via qbXML; manage them in the Desktop UI.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Memorized transactions cannot be deleted via qbXML; manage them in the Desktop UI.\"\n }\n ]\n },\n \"RefundReceipt\": {\n \"entity\": \"RefundReceipt\",\n \"verdict\": \"live\",\n \"group\": \"sales\",\n \"read\": \"partial\",\n \"write\": \"partial\",\n \"headline\": \"Refunds of applied credits by card (ARRefundCreditCard) or by check (a Check applied to the credit memo); not general item-line refunds\",\n \"fields\": [\n {\n \"qbo\": \"CustomerRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DepositToAccountRef\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop RefundFromAccountRef.\"\n },\n {\n \"qbo\": \"PaymentMethodRef\",\n \"support\": \"full\",\n \"note\": \"Card refunds: must be a credit-card payment method in the company file. Check refunds: not applicable, a 2010 fault if sent.\"\n },\n {\n \"qbo\": \"RefundMethod\",\n \"support\": \"full\",\n \"note\": \"TenkeyBridge extension (QBO has no such field). Check or CreditCard, default CreditCard so existing callers are unchanged. Check writes a Desktop Check applied to the credit memo (DepositToAccountRef is the bank account the check is drawn on, CustomerRef the payee); any other value is 2010. Reads return RefundMethod Check on refund checks and RefundMethod CreditCard on card refunds. A refund check is a RefundReceipt only: it is excluded from Purchase reads. Change data capture: deleted RefundReceipts are found by asking Desktop for deleted Checks as well as deleted card refunds, and a deleted record carries no link to a credit memo, so every deleted ordinary check is also reported as a deleted RefundReceipt. Treat a RefundReceipt deletion as a hint and confirm with a read.\"\n },\n {\n \"qbo\": \"ARAccountRef\",\n \"support\": \"full\",\n \"note\": \"TenkeyBridge extension for check refunds: the Accounts Receivable account Desktop needs on the check's expense line (a check without it is refused). Optional over REST: when omitted the gateway uses the credit memo's own A/R account, else the company's A/R account.\"\n },\n {\n \"qbo\": \"PrintStatus\",\n \"support\": \"partial\",\n \"note\": \"Check refunds only. TenkeyBridge sends the check as not to be printed (Desktop would otherwise drop DocNumber); send NeedToPrint to queue it for printing, in which case Desktop ignores DocNumber.\"\n },\n {\n \"qbo\": \"BillEmail\",\n \"support\": \"partial\",\n \"note\": \"Accepted and not stored. Desktop sales forms have no email address of their own: QuickBooks sends a form to the customer's email address. BillEmailCc and BillEmailBcc are accepted and dropped the same way. They are never returned on read, so update the customer's PrimaryEmailAddr to change where forms go.\"\n },\n {\n \"qbo\": \"ApplyTaxAfterDiscount\",\n \"support\": \"partial\",\n \"note\": \"Accepted when true or false and never sent: a Desktop refund receipt here carries no discount lines for it to apply to. Any other value is 400 (code 2010).\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\",\n \"note\": \"Queries scan Desktop's checks to find refund checks, so an unfiltered query on a file with 1000 or more checks faults rather than return a partial answer. Narrow by TxnDate.\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"note\": \"Check refunds take exactly one Line (Desktop applies one credit memo per check; more is 2010) with Amount and LinkedTxn, and a refund larger than the credit memo's remaining credit is refused by Desktop with a 400 (3210 \\\"The amount you entered is greater than the amount of the credit.\\\" for a partial over-refund, and 3210 with its own text when the memo is already fully refunded). Deleting the check restores the credit. Card refunds: LinkedTxn credit-memo applications → RefundAppliedToTxnAdd only. At least one Line is required on create, because Desktop's ARRefundCreditCardAdd requires one or more RefundAppliedToTxnAdd; an empty/missing Line array fails loud rather than sending Desktop an invalid request. SalesItemLineDetail / item-line refunds return UNSUPPORTED_BY_DESKTOP; use CreditMemo + payment/refund pair instead (see CreditMemo).\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only from Desktop TotalAmount.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the customer, so CurrencyRef is checked and then dropped: one that differs from the customer's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP. Not stored by Desktop for a check refund.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from the check refund AmountInHomeCurrency. Accepted and ignored on write.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Item-line RefundReceipt (SalesItemLineDetail etc.)\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"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 are supported with RefundMethod Check (a Check applied to the credit memo); cash refunds are recorded in QuickBooks (Customers > Refund).\"\n },\n {\n \"case\": \"Update / sparse update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Neither refund family (ARRefundCreditCard or Check applied to a credit memo) has an update path in this release. Delete and create again.\"\n },\n {\n \"case\": \"ApplyTaxAfterDiscount is not a boolean\",\n \"error\": \"2010\",\n \"note\": \"ApplyTaxAfterDiscount must be true or false. Either value is accepted and has no effect on a refund receipt, which carries no discount lines.\"\n }\n ]\n },\n \"ReimburseCharge\": {\n \"entity\": \"ReimburseCharge\",\n \"verdict\": \"gap\",\n \"group\": \"gaps\",\n \"read\": \"none\",\n \"write\": \"none\",\n \"headline\": \"QBO's billable-charge object has no Desktop record behind it — in qbXML, billability is a status flag (BillableStatus) on the source expense/item/time lines, never a standalone charge you can query.\",\n \"fields\": [],\n \"unsupported\": [\n {\n \"case\": \"read\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Re-audited 2026-07-29: 'ReimburseCharge' occurs nowhere in the qbxmlops130 message set. Desktop models billability as a BillableStatus enum (Billable / NotBillable / HasBeenBilled) on expense and item lines of purchase transactions and on time entries — there is no separate queryable charge object to project one from.\",\n \"workaround\": \"Read billable state where Desktop actually keeps it: TimeActivity exposes BillableStatus today, and billable purchase lines live on their source Bill/Purchase transactions.\"\n },\n {\n \"case\": \"query\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"No standalone billable-charge object exists in qbXML to query; billability is line-level state on source transactions.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"ReimburseCharge is a QBO cloud concept with no Desktop qbXML analog; mark source lines Billable instead.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"ReimburseCharge is a QBO cloud concept with no Desktop qbXML analog.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"ReimburseCharge is a QBO cloud concept with no Desktop qbXML analog.\"\n }\n ]\n },\n \"Reports\": {\n \"entity\": \"Reports\",\n \"verdict\": \"live\",\n \"group\": \"platform\",\n \"read\": \"partial\",\n \"write\": \"none\",\n \"headline\": \"Seventy-seven QBO-compatible reports served from QuickBooks Desktop: 26 translated live from Desktop's report engine (summary, detail, aging, balance, sales, sales-tax and budget reports), 49 Desktop extension reports with no QBO twin, and two composites, AccountList (built from Desktop's account list) and CashFlow (built from several queries). CashFlow is derived, not translated: Desktop's SDK has no cash-flow report, so it is computed from Profit and Loss and two Trial Balances and checked against Desktop before it is returned.\",\n \"usage\": \"GET /v3/company/{companyId}/reports/ProfitAndLoss?start_date=2026-01-01&end_date=2026-12-31&summarize_column_by=Month\",\n \"fields\": [\n {\n \"qbo\": \"ProfitAndLoss / BalanceSheet / TrialBalance\",\n \"support\": \"full\",\n \"note\": \"GeneralSummaryReportQueryRq (ProfitAndLossStandard / BalanceSheetStandard / TrialBalance). Values verbatim from Desktop — no recomputation. BalanceSheet also takes report_date as an as-of.\"\n },\n {\n \"qbo\": \"AgedReceivables / AgedPayables\",\n \"support\": \"full\",\n \"note\": \"AgingReportQueryRq (ARAgingSummary / APAgingSummary). Desktop's file-configured aging buckets come back as columns, honestly.\"\n },\n {\n \"qbo\": \"CustomerBalance / VendorBalance\",\n \"support\": \"full\",\n \"note\": \"CustomerBalanceSummary / VendorBalanceSummary. As-of (report_date). Month (and the other period splits) are accepted; Desktop refuses ReportBasis here.\"\n },\n {\n \"qbo\": \"CustomerIncome / VendorExpenses\",\n \"support\": \"full\",\n \"note\": \"IncomeByCustomerSummary / ExpenseByVendorSummary.\"\n },\n {\n \"qbo\": \"CustomerSales / ItemSales (aliases SalesByCustomer / SalesByProduct)\",\n \"support\": \"full\",\n \"note\": \"SalesByCustomerSummary / SalesByItemSummary. ItemSales carries Desktop's extra columns (% of Sales, Avg Price, COGS, Gross Margin).\"\n },\n {\n \"qbo\": \"InventoryValuationSummary\",\n \"support\": \"full\",\n \"note\": \"InventoryValuationSummary, as-of (report_date), item filter only. Desktop refuses ReportBasis and SummarizeColumnsBy here.\"\n },\n {\n \"qbo\": \"ProfitAndLossDetail / GeneralLedger\",\n \"support\": \"partial\",\n \"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).\"\n },\n {\n \"qbo\": \"JournalReport / TransactionList\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"InventoryValuationDetail / TransactionListByCustomer / TransactionListByVendor\",\n \"support\": \"partial\",\n \"note\": \"GeneralDetailReportQueryRq InventoryValuationDetail / TxnListByCustomer / TxnListByVendor. ColKeys best-effort. Desktop refuses ReportBasis on all three (3151), so accounting_method faults. InventoryValuationDetail takes the item filter only.\"\n },\n {\n \"qbo\": \"TaxSummary\",\n \"support\": \"partial\",\n \"note\": \"Desktop's Sales Tax Liability report (GeneralSummaryReportQueryRq SalesTaxLiability): taxable and non-taxable sales and tax collected. accounting_method is honored. Desktop refuses SummarizeColumnsBy here, so summarize_column_by takes Total only.\"\n },\n {\n \"qbo\": \"CustomerBalanceDetail / VendorBalanceDetail\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"AgedReceivableDetail / AgedPayableDetail\",\n \"support\": \"partial\",\n \"note\": \"AgingReportQueryRq ARAgingDetail / APAgingDetail, as-of (report_date), with the receivable (customer) or payable (vendor) filter. ColKeys best-effort.\"\n },\n {\n \"qbo\": \"CashFlow\",\n \"support\": \"partial\",\n \"note\": \"Derived (TkbDerivedReport): Desktop's SDK has no cash-flow report, so TenkeyBridge builds the indirect-method statement from Desktop's Profit and Loss and two Trial Balances, classified by account type. Bank accounts plus Undeposited Funds count as cash, as in QBO. Fixed Asset accounts, including accumulated depreciation, are investing (Desktop's own default classification). Self-checking: if the derived net income differs from Desktop's by a cent, or a trial-balance row cannot be matched to an account, the call fails with REPORT_COMPOSE_FAILED (502) instead of answering. Five QuickBooks round trips. Sandbox realms serve it from captured sample inputs (SandboxStaticReport).\"\n },\n {\n \"qbo\": \"AccountList\",\n \"support\": \"partial\",\n \"note\": \"Built from Desktop's account list (AccountQueryRq). Desktop has no account detail type, so that column is absent.\"\n },\n {\n \"qbo\": \"ClassSales\",\n \"support\": \"partial\",\n \"note\": \"Desktop's custom summary report (CustomSummaryReportQueryRq, rows by Class over OrdinaryIncome accounts): one row per class plus Unclassified and TOTAL. Takes dates or date_macro, accounting_method, summarize_column_by (Month, Week, Days, Quarter, Year), customer, item, class and transaction_type. The account filter is fixed to income, so account, account_type, vendor and the modified-date filter fault.\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\"\n },\n {\n \"qbo\": \"TransactionListWithSplits\",\n \"support\": \"partial\",\n \"note\": \"Desktop's custom transaction detail report (CustomDetailReportQueryRq, rows by Account): every transaction line with a Split column, grouped under each account it touches. Takes dates or date_macro, accounting_method, customer, vendor, item, class, account or account_type, transaction_type, start_moddate/end_moddate and columns (default columns: date, type, number, name, memo, account, split, amount). No column split. Each filter was proven against QuickBooks Enterprise 24 (2026-10-20). Desktop groups the rows by account, so a transaction with two splits appears under both accounts.\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\"\n },\n {\n \"qbo\": \"BudgetOverview / BudgetVsActuals\",\n \"support\": \"partial\",\n \"note\": \"BudgetSummaryReportQueryRq ProfitAndLossBudgetOverview / ProfitAndLossBudgetVsActual, one column group per month plus a period total. Desktop scopes a budget report by fiscal year, so these take fiscal_year (four digits, default: the current year) instead of dates, plus an optional class filter (one or more class Ids; sent as BudgetCriterion AccountsAndClasses so the budget side follows the filter, live-proven on a class budget), and no other filters or column split; column titles are qualified with their month (for example 'Jan 26 - Budget'). Profit and loss budgets only; balance sheet budgets stay on the Budget entity. A budget set up only by class (or by customer) reads as zeros without the class filter: the unfiltered read asks Desktop for the account budget, and no customer filter is offered (qbXML cannot create a customer budget, and BudgetCriterion AccountsAndCustomers returned nothing beyond the account budget on the test file). Read-only, like QBO.\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\"\n },\n {\n \"qbo\": \"Desktop extension reports\",\n \"support\": \"full\",\n \"note\": \"ProfitAndLossByClass, ProfitAndLossByJob, ProfitAndLossPrevYearComp, ProfitAndLossYTDComp, BalanceSheetPrevYearComp, BalanceSheetByClass, PurchaseByVendorSummary, PurchaseByItemSummary, SalesByRepSummary, InventoryStockStatusByItem, OpenInvoices, UnpaidBillsDetail, OpenPOs, SalesByCustomerDetail, SalesByItemDetail, IncomeByCustomerDetail, ExpenseByVendorDetail, PurchaseByVendorDetail, DepositDetail, CheckDetail, BalanceSheetDetail, CollectionsReport, and since Reports wave 4 TxnDetailByAccount, UnbilledCostsByJob, AuditTrail, 1099Detail, SalesByRepDetail, PurchaseByItemDetail, OpenPOsByJob, EstimatesByJob, JobProgressInvoicesVsEstimates, OpenSalesOrderByCustomer, OpenSalesOrderByItem, PendingSales, IncomeTaxDetail, MissingChecks, SalesTaxRevenueSummary, IncomeTaxSummary, BalanceSheetSummary, InventoryStockStatusByVendor, and the Job and Time reports JobProfitabilitySummary, JobEstimatesVsActualsSummary, ItemProfitability, ItemEstimatesVsActuals, JobProfitabilityDetail, JobEstimatesVsActualsDetail, TimeByJobSummary, TimeByJobDetail, TimeByItem, TimeByName, and since Reports wave 5 PhysicalInventoryWorksheet (a bare snapshot: Desktop refuses every period, filter, basis and column option on it, so the gateway refuses them too) and the Advanced Inventory reports InventoryValuationSummaryBySite, LotNumberInStockBySite and SerialNumberInStockBySite (sent bare; a company file without Advanced Inventory answers 3250, which becomes a 422 REPORT_FEATURE_UNAVAILABLE naming the feature; not live-proven past that gate, and unavailable in the sandbox). Six payroll reports (2026-12-03): PayrollTransactionDetail, PayrollItemDetail, PayrollTransactionsByPayee and PayrollReviewDetail (PayrollDetailReportQueryRq) and PayrollSummary and EmployeeEarningsSummary (PayrollSummaryReportQueryRq). They take a period only (start_date/end_date or date_macro): no filter, column split, accounting_method or columns, because only the period was proven live, and anything else is refused before Desktop. They need a QuickBooks Desktop payroll subscription (status 3262 becomes 422 PAYROLL_SUBSCRIPTION_REQUIRED) and the integrated-application personal-data permission (status 3261 becomes 403 QB_PERSONAL_DATA_DENIED). The sandbox replays one fixed capture of each. Filters are enabled only where they were proven live on QuickBooks Enterprise 24 (2026-10-20): customer/vendor, item, class, account type, transaction type and modified date on the detail reports (not the account filter on UnbilledCostsByJob and PendingSales, which Desktop fails with an internal error), the same minus modified date on the summaries, all but vendor on the four Job summaries, customer, item and class on the Time reports; the two Job detail reports require a customer or job Id and take no other filter; MissingChecks requires account Ids (Desktop refuses a bare query and an account type, as it does ReportBasis) and takes transaction type, class, modified date and columns. 1099Detail takes no filter at all (an entity filter crashed QuickBooks, so the gateway refuses every filter on it before it reaches Desktop). The Time reports take no columns (Desktop refuses Duration). Desktop reports with no QBO twin, served under their Desktop names in the same QBO report JSON.\"\n },\n {\n \"qbo\": \"start_date / end_date / date_macro\",\n \"support\": \"full\",\n \"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 — Desktop's own bare default is month-to-date, so TenkeyBridge always sends an explicit period.\"\n },\n {\n \"qbo\": \"report_date\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"accounting_method\",\n \"support\": \"partial\",\n \"note\": \"Cash/Accrual → 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.\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\"\n },\n {\n \"qbo\": \"summarize_column_by\",\n \"support\": \"partial\",\n \"note\": \"Total, Month, Week, Days, Quarter, Year, Customers, Vendors, Classes → 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.\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\"\n },\n {\n \"qbo\": \"customer / vendor / item / class\",\n \"support\": \"partial\",\n \"note\": \"Comma-separated Ids → ReportEntityFilter (customer + vendor) / ReportItemFilter / ReportClassFilter. AR reports accept customer only, AP reports vendor only; InventoryValuationSummary accepts item only.\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\"\n },\n {\n \"qbo\": \"account / account_type\",\n \"support\": \"partial\",\n \"note\": \"account is comma-separated account Ids (ReportAccountFilter ListID); account_type is one QBO account type (Bank, AccountsReceivable, OtherCurrentAsset, FixedAsset, OtherAsset, AccountsPayable, CreditCard, OtherCurrentLiability, LongTermLiability, Equity, Income, CostOfGoodsSold, Expense, OtherIncome, OtherExpense) mapped to AccountTypeFilter. Sending both faults. Accepted on the summary reports (except InventoryValuationSummary) and on every detail report except AgedReceivableDetail / AgedPayableDetail. The aging reports refuse both: Desktop's aging account filter does not filter meaningfully.\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\"\n },\n {\n \"qbo\": \"transaction_type\",\n \"support\": \"partial\",\n \"note\": \"Comma-separated QBO transaction types (Invoice, CreditMemo, SalesReceipt, Payment, Deposit, Transfer, Estimate, Bill, VendorCredit, BillPayment, BillPaymentCheck, BillPaymentCreditCard, Check, CreditCardCharge, CreditCardCredit, PurchaseOrder, JournalEntry, InventoryQuantityAdjustment) mapped to ReportTxnTypeFilter. BillPayment fans out to both check and credit-card bill payments. Types with no single Desktop twin (Expense, CashPurchase, RefundReceipt) fault. Accepted on summary, detail and aging reports (not InventoryValuationSummary).\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\"\n },\n {\n \"qbo\": \"start_moddate / end_moddate\",\n \"support\": \"partial\",\n \"note\": \"ISO dates that filter on the transaction last-modified date (ReportModifiedDateRangeFilter). Both are required together, otherwise REPORT_INVALID_DATE. Detail reports only (not AgedReceivableDetail / AgedPayableDetail); summary and aging reports refuse them.\",\n \"error\": \"REPORT_INVALID_DATE\"\n },\n {\n \"qbo\": \"columns\",\n \"support\": \"partial\",\n \"note\": \"Comma-separated QBO ColKeys (tx_date, txn_type, doc_num, txn_num, name, cust_name, vend_name, memo, account_name, split_acc, klass_name, is_cleared, debt_amt, credit_amt, subt_nat_amount, rbal_nat_amount, subt_open_bal, due_date, past_due, po_num, term_name) mapped to IncludeColumn; aliases dedupe and an unknown key faults listing the accepted ones. Detail reports and AgedReceivableDetail / AgedPayableDetail only. When columns is sent, data rows carry the QuickBooks transaction id as id on the txn_type cell (GeneralLedger cost-posting rows have none). If txn_type is not among the requested columns, the id is on the first cell.\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\"\n },\n {\n \"qbo\": \"Column titles\",\n \"support\": \"partial\",\n \"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 — QBO does not document them).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"department / qzurl / adjusted_gain_loss\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\",\n \"note\": \"Desktop has no departments (use class); QuickZoom URLs and multicurrency gain/loss adjustment are QBO-only.\"\n },\n {\n \"case\": \"aging_period / num_periods / aging_method\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\",\n \"note\": \"Desktop aging buckets are company-file configuration, not request parameters.\"\n },\n {\n \"case\": \"summarize_column_by = Employees / ProductsAndServices / Departments / Location\",\n \"error\": \"REPORT_UNSUPPORTED_OPTION\",\n \"note\": \"qbXML's SummarizeColumnsBy has no per-item, per-employee or per-location split (ItemType splits by item type, not by item).\"\n },\n {\n \"case\": \"DepartmentSales\",\n \"error\": \"REPORT_UNKNOWN\",\n \"note\": \"Desktop has no departments. Use ClassSales.\"\n },\n {\n \"case\": \"other QBO report names\",\n \"error\": \"REPORT_UNKNOWN\",\n \"note\": \"Not shipped. The fault lists the supported reports.\"\n }\n ]\n },\n \"SalesReceipt\": {\n \"entity\": \"SalesReceipt\",\n \"verdict\": \"live\",\n \"group\": \"sales\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Same as Invoice + deposit account\",\n \"fields\": [\n {\n \"qbo\": \"CustomerRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ClassRef\",\n \"support\": \"full\",\n \"note\": \"Header-level class (Desktop ClassRef, read and write). Line-level ClassRef is separate.\"\n },\n {\n \"qbo\": \"DepartmentRef\",\n \"support\": \"none\",\n \"note\": \"UNMAPPED_FIELD by default. With Departments from classes turned on for the company file, the gateway maps it to the header ClassRef (written to it, read from it); sending a different ClassRef as well is a 400.\",\n \"error\": \"UNMAPPED_FIELD\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"BillAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ShipMethodRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DepositToAccountRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"CustomerMemo\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop CustomerMsgRef by FullName; the message must already exist as a Desktop customer message. Updatable via sparse update (#55).\"\n },\n {\n \"qbo\": \"ProjectRef\",\n \"support\": \"full\",\n \"note\": \"A Desktop job is a QBO project, so ProjectRef sets the transaction's customer to the job (send the job's Id or full name). If CustomerRef is sent too, the job wins, and nothing is looked up: the job already implies its parent customer. Read: when the customer is a job (its full name contains a colon), ProjectRef is returned with the same value and name as CustomerRef, which stays exactly as Desktop returns it. A QBO project is one level deep and a Desktop job can sit under another job, so ProjectRef here means any job.\"\n },\n {\n \"qbo\": \"EmailStatus\",\n \"support\": \"partial\",\n \"note\": \"Maps to Desktop IsToBeEmailed. NeedToSend writes true; NotSet and EmailSent write false, because Desktop only knows whether the form is still queued. Read: true is NeedToSend, false is NotSet. Desktop does not record that a form was sent, so EmailSent is never returned. Setting NeedToSend sends nothing by itself: it only queues the form in QuickBooks.\"\n },\n {\n \"qbo\": \"PrintStatus\",\n \"support\": \"partial\",\n \"note\": \"Maps to Desktop IsToBePrinted. NeedToPrint writes true; NotSet and PrintComplete write false. Read: true is NeedToPrint, false is NotSet. Desktop does not record that a form was printed, so PrintComplete is never returned.\"\n },\n {\n \"qbo\": \"BillEmail\",\n \"support\": \"partial\",\n \"note\": \"Accepted and not stored. Desktop sales forms have no email address of their own: QuickBooks sends a form to the customer's email address. BillEmailCc and BillEmailBcc are accepted and dropped the same way. They are never returned on read, so update the customer's PrimaryEmailAddr to change where forms go.\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"partial\",\n \"note\": \"SalesItemLineDetail, GroupLineDetail, and DescriptionOnly map cleanly; line-level ClassRef and ServiceDate are populated on read; DiscountLineDetail names a Desktop discount item by DiscountLineDetail.ItemRef (value = ListID, or name = full name; PercentBased + DiscountPercent sends RatePercent, an amount discount sends Amount). With no ItemRef but a DiscountAccountRef, the gateway uses the one active discount item that posts to that account; none or several is MISSING_REQUIRED_DESKTOP_ITEM, and a discount item is never created for you. SubTotalLineDetail needs no ItemRef: the gateway uses the company's active subtotal item (the one named Subtotal if there are several, else the first), and only when there is none it creates an item named Subtotal (it has no account and posts nothing); a subtotal line is sent without Amount, Qty or Rate because Desktop computes the amount and refuses one. Other DetailTypes return UNSUPPORTED_BY_DESKTOP. Lines read back in Desktop's own order; a group line reads as GroupLineDetail with its component lines in GroupLineDetail.Line (each with its own Id) and the bundle total as Amount; a subtotal line reads as SubTotalLineDetail; 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. The Ids on a group's component lines (GroupLineDetail.Line[].Id) are read-only: they identify what was read and are not accepted as line Ids on a write.\"\n },\n {\n \"qbo\": \"TxnTaxDetail\",\n \"support\": \"partial\",\n \"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 is derived, not read: the sum of the Tax-coded line Amounts (discount lines are not subtracted, verified live), returned only when it reproduces Desktop's SalesTaxTotal to the cent and omitted otherwise (custom tax codes, or a discount whose taxability is unknown). Updatable via sparse update (#55).\"\n },\n {\n \"qbo\": \"LinkedTxn\",\n \"support\": \"partial\",\n \"note\": \"Desktop SalesReceiptQueryRq has no IncludeLinkedTxns and SalesReceiptRet carries no LinkedTxnRet (qbXML 13.0) — never populated on read. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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.\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only; Desktop computes it.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the customer, so CurrencyRef is checked and then dropped: one that differs from the customer's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create. On a sparse update it is sent only when you change it; the update placement is not proven live.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop TotalAmountInHomeCurrency. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"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).\"\n },\n {\n \"qbo\": \"ApplyTaxAfterDiscount\",\n \"support\": \"partial\",\n \"note\": \"Maps onto the discount line's own sales tax code, proven live on QuickBooks Enterprise 24: Tax is tax after the discount (true), Non is tax on the full amount (false). On write, true or false is never sent as a field; every discount line with no TaxCodeRef of its own is coded Tax or Non, and an explicit TAX or NON that contradicts the value is 400 (code 2010, element Line.DiscountLineDetail.TaxCodeRef). A custom tax code on a discount line wins. DiscountLineDetail.TaxCodeRef is written as that line's sales tax code. With no discount lines the value is accepted and does nothing. Read: present only when the form has discount lines and they are all Tax (true) or all Non (false); omitted when mixed. On a sparse update with no Line, a value equal to the current one is accepted; a different one is 422 UNSUPPORTED_BY_DESKTOP, so send the full Line array to change it. Any value that is not a boolean is 400 (code 2010).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"GET /{id}/pdf\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"qbXML cannot render or return a PDF of a transaction, so the route answers 422. Render the PDF from the JSON record in your own application.\"\n },\n {\n \"case\": \"POST /{id}/send (actually sending the email)\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"The route is queue-only: it sets EmailStatus NeedToSend (Desktop IsToBeEmailed) through a sparse update and returns the record, so the form lands in QuickBooks' To be e-mailed queue. TenkeyBridge sends no mail; QuickBooks sends the form to the customer's email address. sendTo is ignored (X-TKB-Warning says so). Desktop refuses the queue (3180) when the company file has no company email.\"\n },\n {\n \"case\": \"ApplyTaxAfterDiscount changed on a sparse update that carries no Line\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"On Desktop the value lives on each discount line's tax code, so it cannot change on its own. Send the full Line array in the same update.\"\n }\n ]\n },\n \"Tag\": {\n \"entity\": \"Tag\",\n \"verdict\": \"gap\",\n \"group\": \"gaps\",\n \"read\": \"none\",\n \"write\": \"none\",\n \"headline\": \"QBO Tags (and Tag classifications) are a cloud-only labeling feature — QuickBooks Desktop has no free-form tag object, and its nearest dimensional list (Class) is already exposed as Class.\",\n \"fields\": [],\n \"unsupported\": [\n {\n \"case\": \"read\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"qbXML has no Tag or TagClassification message; Desktop has no equivalent many-to-many labeling of transactions.\",\n \"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.\"\n },\n {\n \"case\": \"query\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"There is no Desktop tag list to query.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop cannot store tags, so none can be created.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop cannot store tags, so none can be updated.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Desktop cannot store tags, so none can be deleted.\"\n }\n ]\n },\n \"TaxAgency\": {\n \"entity\": \"TaxAgency\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"none\",\n \"headline\": \"Read-only projection — Vendors referenced by any ItemSalesTax.TaxVendorRef (no native Desktop TaxAgency list)\",\n \"fields\": [\n {\n \"qbo\": \"DisplayName\",\n \"support\": \"full\",\n \"note\": \"Vendor Name.\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"TaxTrackedOnPurchases\",\n \"support\": \"none\",\n \"note\": \"No Desktop equivalent on the Vendor projection.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n },\n {\n \"qbo\": \"TaxTrackedOnSales\",\n \"support\": \"none\",\n \"note\": \"No Desktop equivalent on the Vendor projection.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Create or update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"TaxAgency is a read-only projection of the Vendors that a sales tax item names as its tax agency. Desktop has no tax agency record of its own (live probe 2026-10-20: a VendorAdd flagged IsSalesTaxAgency is accepted but nothing reads it back, and the vendor does not become an agency). A vendor becomes a tax agency when a tax rate points at it.\",\n \"workaround\": \"Create the vendor with POST /vendor, then create a tax rate that names it (POST /taxrate with AgencyRef). It then appears in /taxagency.\"\n }\n ]\n },\n \"TaxClassification\": {\n \"entity\": \"TaxClassification\",\n \"verdict\": \"gap\",\n \"group\": \"gaps\",\n \"read\": \"none\",\n \"write\": \"none\",\n \"headline\": \"Cloud automated-sales-tax concept with no Desktop counterpart — Desktop's tax model is explicit tax items and codes, all of which TenkeyBridge exposes.\",\n \"fields\": [],\n \"unsupported\": [\n {\n \"case\": \"read\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Re-audited 2026-07-29: 'TaxClassification' occurs nowhere in the qbxmlops130 message set. Desktop's tax machinery is ItemSalesTax / ItemSalesTaxGroup / SalesTaxCode — explicit records, not AST classification codes — and those ARE available through TenkeyBridge as TaxRate, TaxCode, and TaxAgency.\",\n \"workaround\": \"Use TaxCode/TaxRate/TaxAgency for Desktop's real tax model instead of AST classifications.\"\n },\n {\n \"case\": \"query\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"TaxClassification is part of QBO's automated sales tax stack; Desktop uses explicit tax items/codes instead.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"TaxClassification cannot be created on Desktop via qbXML.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"TaxClassification cannot be updated on Desktop via qbXML.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"TaxClassification cannot be deleted on Desktop via qbXML.\"\n }\n ]\n },\n \"TaxCode\": {\n \"entity\": \"TaxCode\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"full\",\n \"headline\": \"Desktop SalesTaxCode list (TAX/NON); Name max 3 chars (fail-loud, never truncated); a plain taxable/non-taxable flag pair, not a rate container\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"full\",\n \"note\": \"Desktop limits Name to 3 characters. Longer names return 400 — never truncated.\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Description\",\n \"support\": \"full\",\n \"note\": \"Desktop Desc.\"\n },\n {\n \"qbo\": \"Taxable\",\n \"support\": \"full\",\n \"note\": \"Desktop IsTaxable.\"\n },\n {\n \"qbo\": \"SalesTaxRateList\",\n \"support\": \"none\",\n \"note\": \"Desktop's US edition (QBD) does not have ItemSalesTaxRef/ItemPurchaseTaxRef on SalesTaxCode — the OSR marks both 'not in QBD' (they exist only for QBCA/QBUK/QBAU). US Desktop SalesTaxCode is just the taxable/non-taxable flag pair; rate association lives on ItemSalesTax items. Read TaxRate for rate values/agency. Never returned on read; writing it faults UNMAPPED_FIELD.\",\n \"error\": \"UNMAPPED_FIELD\"\n }\n ],\n \"unsupported\": []\n },\n \"TaxPayment\": {\n \"entity\": \"TaxPayment\",\n \"verdict\": \"live\",\n \"group\": \"transactions\",\n \"read\": \"partial\",\n \"write\": \"none\",\n \"headline\": \"Read-only view of Desktop sales tax payment checks (SalesTaxPaymentCheck). QuickBooks Online offers TaxPayment only in AU, CA and UK; TenkeyBridge serves it for US Desktop sales tax payment checks.\",\n \"fields\": [\n {\n \"qbo\": \"PaymentDate\",\n \"support\": \"full\",\n \"note\": \"Desktop TxnDate. Emitted as PaymentDate, the key in Intuit's Read and Query samples; Intuit's attribute table names it TxnDate.\"\n },\n {\n \"qbo\": \"PaymentAmount\",\n \"support\": \"full\",\n \"note\": \"Desktop Amount.\"\n },\n {\n \"qbo\": \"PaymentAccountRef\",\n \"support\": \"full\",\n \"note\": \"Desktop BankAccountRef.\"\n },\n {\n \"qbo\": \"Description\",\n \"support\": \"full\",\n \"note\": \"Desktop Memo.\"\n },\n {\n \"qbo\": \"Refund\",\n \"support\": \"full\",\n \"note\": \"Always false: a Desktop sales tax payment check is a payment, and a refund is recorded as a Deposit.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Tax agency, check number and per-item amounts\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"SalesTaxPaymentCheck carries a payee agency, RefNumber and per-item lines, but QBO's TaxPayment has no field for them, so they are not returned.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"QBO's TaxPayment is read-only via the API; TenkeyBridge matches that. Record the payment in QuickBooks Desktop.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"QBO's TaxPayment is read-only via the API; TenkeyBridge matches that.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"QBO's TaxPayment is read-only via the API; TenkeyBridge matches that.\"\n }\n ]\n },\n \"TaxRate\": {\n \"entity\": \"TaxRate\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Read like QBO; create and update are a TenkeyBridge extension over Desktop ItemSalesTaxAdd/Mod (QBO has no TaxRate write). Sales-tax groups are not projected as TaxRates.\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"full\",\n \"note\": \"Create and update. Max 31 characters, rejected up front with a 400 (2050). Required on create.\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\",\n \"note\": \"Create and update (Desktop IsActive). Deactivate with a sparse update of Active false.\"\n },\n {\n \"qbo\": \"RateValue\",\n \"support\": \"full\",\n \"note\": \"Desktop TaxRate percentage, a number from 0 to 100 kept to full precision (8.875 stays 8.875). Required on create. Create and update.\"\n },\n {\n \"qbo\": \"Description\",\n \"support\": \"full\",\n \"note\": \"Desktop ItemDesc. Create and update.\"\n },\n {\n \"qbo\": \"AgencyRef\",\n \"support\": \"full\",\n \"note\": \"Desktop TaxVendorRef, the tax agency Vendor. Required on create.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Create or update through a QBO client\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"QBO rejects a TaxRate write, so an app written for QBO never sends one. TenkeyBridge accepts it as an extension (POST /taxrate), mapped to ItemSalesTaxAdd and ItemSalesTaxMod. A sparse update sends only the fields you changed.\",\n \"workaround\": \"To create a rate together with the tax code that groups it, use POST /taxservice/taxcode.\"\n },\n {\n \"case\": \"ItemSalesTaxGroup as TaxRate\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Sales-tax groups are not projected as TaxRate rows. Group members are themselves ItemSalesTax list items and appear as individual TaxRates via ItemSalesTaxQuery. A group is created through TaxService.\"\n }\n ]\n },\n \"TaxService\": {\n \"entity\": \"TaxService\",\n \"verdict\": \"live\",\n \"group\": \"platform\",\n \"read\": \"none\",\n \"write\": \"partial\",\n \"headline\": \"POST /taxservice/taxcode creates tax rates and the tax code that groups them (Desktop ItemSalesTaxAdd then ItemSalesTaxGroupAdd). The TaxCodeId is a sales tax group, used on a sales form as TxnTaxDetail.TxnTaxCodeRef.\",\n \"usage\": \"POST /v3/company/{companyId}/taxservice/taxcode\",\n \"fields\": [\n {\n \"qbo\": \"TaxCode\",\n \"support\": \"full\",\n \"note\": \"The tax code name, 1 to 31 characters. Becomes a Desktop sales tax group; a name already in use is refused by QuickBooks.\"\n },\n {\n \"qbo\": \"TaxRateDetails.TaxRateName\",\n \"support\": \"full\",\n \"note\": \"Name of a new rate, 1 to 31 characters (a Desktop sales tax item).\"\n },\n {\n \"qbo\": \"TaxRateDetails.RateValue\",\n \"support\": \"full\",\n \"note\": \"Percentage from 0 to 100.\"\n },\n {\n \"qbo\": \"TaxRateDetails.TaxAgencyId\",\n \"support\": \"full\",\n \"note\": \"The tax agency, a Desktop Vendor Id.\"\n },\n {\n \"qbo\": \"TaxRateDetails.TaxApplicableOn\",\n \"support\": \"partial\",\n \"note\": \"Sales only. Any other value is UNSUPPORTED_BY_DESKTOP: Desktop sales tax items apply to sales only.\"\n },\n {\n \"qbo\": \"TaxRateDetails.TaxRateId\",\n \"support\": \"full\",\n \"note\": \"Send it alone to put an existing rate in the new code instead of creating one. Also how to retry after TAX_CODE_PARTIAL.\"\n },\n {\n \"qbo\": \"TaxCodeId\",\n \"support\": \"partial\",\n \"note\": \"In the answer. It is a Desktop sales tax group id, not a TaxCode (TAX or NON): GET /taxcode/{id} will not find it. It is what you send as TxnTaxDetail.TxnTaxCodeRef on an invoice or other sales form, which maps to Desktop ItemSalesTaxRef.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"read, query, update, delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"TaxService is a create-only operation. There is no TaxService object to read back; read the rates as TaxRate.\"\n },\n {\n \"case\": \"Rates created but the tax code not\",\n \"error\": \"TAX_CODE_PARTIAL\",\n \"note\": \"The two steps are separate QuickBooks messages. If the tax code is refused after the rates were created (usually a duplicate name), the answer is 502 TAX_CODE_PARTIAL naming every created TaxRateId. Resend with TaxRateDetails [{ TaxRateId }] for those rates and an unused TaxCode name. Resending the original request is refused by QuickBooks as a duplicate name, so no extra rates are created. The endpoint honors requestid: a replay after success returns the tax code read back from QuickBooks, and a replay after this fault does not re-send.\"\n }\n ]\n },\n \"Term\": {\n \"entity\": \"Term\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Merged StandardTerms + DateDrivenTerms; Type STANDARD | DATE_DRIVEN dispatches which Desktop list; create-only\",\n \"fields\": [\n {\n \"qbo\": \"Name\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Type\",\n \"support\": \"full\",\n \"note\": \"STANDARD ⇄ StandardTerms*; DATE_DRIVEN ⇄ DateDrivenTerms*. Fixed at create — the whole entity is create-only, so this can never change via update.\"\n },\n {\n \"qbo\": \"DueDays\",\n \"support\": \"full\",\n \"note\": \"STANDARD only — Desktop StdDueDays.\"\n },\n {\n \"qbo\": \"DiscountDays\",\n \"support\": \"full\",\n \"note\": \"STANDARD only — Desktop StdDiscountDays.\"\n },\n {\n \"qbo\": \"DiscountPercent\",\n \"support\": \"full\",\n \"note\": \"Both types — Desktop DiscountPct.\"\n },\n {\n \"qbo\": \"DayOfMonthDue\",\n \"support\": \"full\",\n \"note\": \"DATE_DRIVEN only.\"\n },\n {\n \"qbo\": \"DueNextMonthDays\",\n \"support\": \"full\",\n \"note\": \"DATE_DRIVEN only.\"\n },\n {\n \"qbo\": \"DiscountDayOfMonth\",\n \"support\": \"full\",\n \"note\": \"DATE_DRIVEN only.\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Update any Term field\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"qbXML has no StandardTermsMod or DateDrivenTermsMod — Desktop's OSR only defines Add and Query for both Terms lists. Term write support is create-only.\"\n },\n {\n \"case\": \"Deactivate a Term\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"Deactivation is a Mod-only operation (IsActive via StandardTermsMod/DateDrivenTermsMod), which doesn't exist in qbXML. Impossible via the SDK, not just unimplemented here.\"\n }\n ]\n },\n \"TimeActivity\": {\n \"entity\": \"TimeActivity\",\n \"verdict\": \"live\",\n \"group\": \"lists\",\n \"read\": \"full\",\n \"write\": \"partial\",\n \"headline\": \"Employee and vendor time; Duration compiled from Hours/Minutes or a StartTime/EndTime span\",\n \"fields\": [\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"NameOf\",\n \"support\": \"full\",\n \"note\": \"Employee or Vendor; anything else returns 2010. Desktop does not store the kind: reads ask QuickBooks which name list owns the entry (one extra round trip, cached per company file for 15 minutes) and fail with 502 NAME_LOOKUP_FAILED if that lookup fails. An entry whose name is neither an employee nor a vendor carries no NameOf.\"\n },\n {\n \"qbo\": \"EmployeeRef\",\n \"support\": \"full\",\n \"note\": \"Required when NameOf is Employee or omitted; Desktop EntityRef. Missing value returns 2020. Sending EmployeeRef together with VendorRef returns 2010.\"\n },\n {\n \"qbo\": \"VendorRef\",\n \"support\": \"full\",\n \"note\": \"Vendor time: send NameOf Vendor with VendorRef (or just VendorRef). Desktop EntityRef. Vendor time must be NotBillable, which is what we send when BillableStatus is omitted; Billable vendor time is refused by QuickBooks.\"\n },\n {\n \"qbo\": \"CustomerRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"ItemRef\",\n \"support\": \"full\",\n \"note\": \"Desktop ItemServiceRef.\"\n },\n {\n \"qbo\": \"ClassRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DepartmentRef\",\n \"support\": \"none\",\n \"note\": \"UNMAPPED_FIELD by default. With Departments from classes turned on for the company file, the gateway maps it to the header ClassRef (written to it, read from it); sending a different ClassRef as well is a 400.\",\n \"error\": \"UNMAPPED_FIELD\"\n },\n {\n \"qbo\": \"Description\",\n \"support\": \"full\",\n \"note\": \"Desktop Notes.\"\n },\n {\n \"qbo\": \"BillableStatus\",\n \"support\": \"partial\",\n \"note\": \"Billable, NotBillable, HasBeenBilled; any other value returns 2010. Desktop is stricter than QBO here: \\\"Billable\\\" requires BOTH CustomerRef and ItemRef on the same entry, or QuickBooks rejects the save (\\\"Billable activities must have a customer:job and service item\\\"). Send both, or mark the entry NotBillable. Omitted on create → we emit NotBillable explicitly (QBO's omitted-default); Desktop would otherwise infer Billable from CustomerRef alone. A sparse update that never mentions BillableStatus carries the stored value forward instead — the default only applies to genuinely-absent-on-create.\"\n },\n {\n \"qbo\": \"Hours\",\n \"support\": \"full\",\n \"note\": \"Explicit duration input; wins over StartTime/EndTime when both are present.\"\n },\n {\n \"qbo\": \"Minutes\",\n \"support\": \"full\",\n \"note\": \"Explicit duration input; wins over StartTime/EndTime when both are present.\"\n },\n {\n \"qbo\": \"StartTime\",\n \"support\": \"full\",\n \"note\": \"Alternate duration input paired with EndTime; Desktop only stores the computed Duration, not the span itself.\"\n },\n {\n \"qbo\": \"EndTime\",\n \"support\": \"full\",\n \"note\": \"Alternate duration input paired with StartTime; must be after it, or 2010.\"\n },\n {\n \"qbo\": \"BreakHours\",\n \"support\": \"partial\",\n \"note\": \"Only valid alongside StartTime/EndTime; supplying it with Hours/Minutes returns 2010.\"\n },\n {\n \"qbo\": \"BreakMinutes\",\n \"support\": \"partial\",\n \"note\": \"Only valid alongside StartTime/EndTime; supplying it with Hours/Minutes returns 2010.\"\n },\n {\n \"qbo\": \"HourlyRate\",\n \"support\": \"partial\",\n \"note\": \"Accepted and ignored. Desktop time tracking does not take a Rate through this interface: QuickBooks answers \\\"The field Rate is not supported by this implementation\\\" (probe PD5), so it is never sent.\"\n },\n {\n \"qbo\": \"CostRate\",\n \"support\": \"partial\",\n \"note\": \"Accepted and ignored. Desktop time tracking has no cost-rate element.\"\n },\n {\n \"qbo\": \"Taxable\",\n \"support\": \"partial\",\n \"note\": \"Accepted and ignored — Desktop time tracking has no taxable flag.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"note\": \"Desktop TimeTrackingQueryRq has no OwnerID element (qbXML 13.0), so custom fields are never returned for time entries. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Accepted and ignored. Desktop time tracking has no currency. On a single-currency file a CurrencyRef other than USD or an ExchangeRate other than 1 is refused (400 UNSUPPORTED_BY_DESKTOP).\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Accepted and ignored. Desktop time tracking has no currency. On a single-currency file a CurrencyRef other than USD or an ExchangeRate other than 1 is refused (400 UNSUPPORTED_BY_DESKTOP).\"\n },\n {\n \"qbo\": \"PayrollItemRef\",\n \"support\": \"full\",\n \"note\": \"TenkeyBridge extension (QBO Accounting has no equivalent): maps to Desktop PayrollItemWageRef, read from and written to the entry as { value, name }. Pick a wage item from the PayrollItemWage list (Regular Pay, Overtime Pay, ...). Required on every entry for an employee whose \\\"Use time data to create paychecks\\\" is on: without it QuickBooks refuses the save (statusCode 3180, \\\"Activities for this employee must have a payroll item\\\"). For an employee set not to use time data it is optional and stored when sent. Vendor entries accept and store one too. A sparse update that omits it keeps the stored item; sending a different one changes it; it cannot be cleared.\"\n },\n {\n \"qbo\": \"TxnNumber\",\n \"support\": \"none\",\n \"note\": \"Desktop's internal auto-increment TxnNumber has no QBO equivalent and is not surfaced.\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\"\n }\n ],\n \"unsupported\": []\n },\n \"Transfer\": {\n \"entity\": \"Transfer\",\n \"verdict\": \"live\",\n \"group\": \"banking\",\n \"read\": \"full\",\n \"write\": \"full\",\n \"headline\": \"Bank-to-bank transfer between two accounts\",\n \"fields\": [\n {\n \"qbo\": \"FromAccountRef\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop TransferFromAccountRef.\"\n },\n {\n \"qbo\": \"ToAccountRef\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop TransferToAccountRef.\"\n },\n {\n \"qbo\": \"Amount\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). Writes are accepted and ignored. On a single-currency file a CurrencyRef other than USD or an ExchangeRate other than 1 is refused (400 UNSUPPORTED_BY_DESKTOP).\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only. Writes are accepted and ignored. On a single-currency file a CurrencyRef other than USD or an ExchangeRate other than 1 is refused (400 UNSUPPORTED_BY_DESKTOP).\"\n }\n ],\n \"unsupported\": [\n {\n \"case\": \"Delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"\\\"Transfer\\\" is not a valid qbXML TxnDelType enum value (verified live: status 3110), so delete is not wired for this entity.\"\n }\n ]\n },\n \"Vendor\": {\n \"entity\": \"Vendor\",\n \"verdict\": \"live\",\n \"group\": \"purchasing\",\n \"read\": \"full\",\n \"write\": \"full\",\n \"headline\": \"1099 / tax-ID field naming only\",\n \"fields\": [\n {\n \"qbo\": \"DisplayName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Active\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"CompanyName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Title\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"GivenName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"MiddleName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"FamilyName\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrintOnCheckName\",\n \"support\": \"full\",\n \"note\": \"Desktop PrintAs.\"\n },\n {\n \"qbo\": \"BillAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrimaryPhone\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"AlternatePhone\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Fax\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"PrimaryEmailAddr\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"TaxIdentifier\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop VendorTaxIdent.\"\n },\n {\n \"qbo\": \"Vendor1099\",\n \"support\": \"full\",\n \"note\": \"Maps to Desktop IsVendorEligibleFor1099.\"\n },\n {\n \"qbo\": \"AcctNum\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Balance\",\n \"support\": \"full\",\n \"note\": \"Read-only, as in QBO.\"\n },\n {\n \"qbo\": \"CustomField\",\n \"support\": \"partial\",\n \"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).\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). Written on create and stored by Desktop (the currency must be active; activate it with CompanyCurrency). A sparse vendor update that sends no currency leaves CurrencyRef unchanged (proven live). Changing the currency on update is not proven live (Desktop may refuse it once the vendor has transactions, as it does for customers). On a file with multicurrency off only USD is accepted (and dropped).\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Not a Desktop vendor field. Accepted and ignored.\"\n }\n ],\n \"unsupported\": []\n },\n \"VendorCredit\": {\n \"entity\": \"VendorCredit\",\n \"verdict\": \"live\",\n \"group\": \"purchasing\",\n \"read\": \"full\",\n \"write\": \"full\",\n \"headline\": \"Bill mirror image — expense and item lines\",\n \"fields\": [\n {\n \"qbo\": \"VendorRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"APAccountRef\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"TxnDate\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"DocNumber\",\n \"support\": \"full\",\n \"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.\"\n },\n {\n \"qbo\": \"PrivateNote\",\n \"support\": \"full\"\n },\n {\n \"qbo\": \"Line\",\n \"support\": \"full\",\n \"note\": \"AccountBasedExpenseLineDetail and ItemBasedExpenseLineDetail via shared Bill line machinery. Update: Line is the WHOLE table, as in QBO. A line sent with its Id (the Line.Id a read returned) keeps that line, a line with no Id is added, and a line you leave out is deleted. Omit Line to leave every line alone (a header-only update such as PrivateNote never touches lines); an empty array is refused (2020), and a repeated or unknown Id is refused (2010). A line cannot change type: sending an expense line's Id with an item detail (or the reverse) is 2010, so omit the Id to replace it. On an item line that sends Amount without Qty or UnitPrice, Desktop keeps the stored quantity and re-derives the unit cost, so the Amount you send is the Amount you read back (verified live, 2026-10-14). Item group lines read as their component item lines, in the group's place and in Desktop's order, each carrying the TenkeyBridge extension fields GroupLineId (the group's Id) and GroupItemRef. The Id on each of those component lines is read-only: it identifies what was read and is not accepted as a line Id on a write. A transaction that has item group lines refuses a Line update with UNSUPPORTED_BY_DESKTOP, because a table update would delete them; header-only updates still work.\"\n },\n {\n \"qbo\": \"TotalAmt\",\n \"support\": \"full\",\n \"note\": \"Read-only from Desktop CreditAmount.\"\n },\n {\n \"qbo\": \"Balance\",\n \"support\": \"full\",\n \"note\": \"Read-only remaining credit from Desktop CreditRemaining.\"\n },\n {\n \"qbo\": \"CurrencyRef\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; CurrencyRef.value is the ISO code (CAD). On write the currency comes from the vendor, so CurrencyRef is checked and then dropped: one that differs from the vendor's currency is a 400 (code 2010). On a file with multicurrency off only USD is accepted (and dropped); any other code is 400 UNSUPPORTED_BY_DESKTOP.\"\n },\n {\n \"qbo\": \"ExchangeRate\",\n \"support\": \"partial\",\n \"note\": \"Read and write on multicurrency files only. A positive number sent as a float and stored with every digit (a rate of 0.731234 is kept as .731234). Omit it and Desktop uses the currency's list rate. Desktop refuses a rate other than 1 on a home-currency transaction (400, code 2010). A rate of 1 is accepted (proven live on an invoice). On a file with multicurrency off only 1 is accepted (and dropped); any other rate is 400 UNSUPPORTED_BY_DESKTOP. Proven live on create. On a sparse update it is sent only when you change it; the update placement is not proven live.\"\n },\n {\n \"qbo\": \"HomeTotalAmt\",\n \"support\": \"partial\",\n \"note\": \"Read on multicurrency files only; the amount in the home currency, from Desktop CreditAmountInHomeCurrency. Accepted and ignored on write.\"\n },\n {\n \"qbo\": \"operation=void\",\n \"support\": \"partial\",\n \"note\": \"TenkeyBridge extension: QBO cannot void a VendorCredit; QuickBooks Desktop can. POST ?operation=void with {Id, SyncToken}: sends TxnVoidRq (TxnVoidType VendorCredit), then re-reads and returns the record. SyncToken is verified against the current EditSequence first (mismatch = 5010). Proven live on QuickBooks Enterprise 24 (2026-10-15). The re-read shows PrivateNote as `VOID: <memo>` and every amount and line Amount at 0.00 with the lines kept. A void does not reliably advance the SyncToken, so re-read the record instead of relying on it; voiding again is accepted. The response is whatever Desktop returns on the re-read (nothing is fabricated).\"\n }\n ],\n \"unsupported\": []\n },\n \"VendorType\": {\n \"entity\": \"VendorType\",\n \"verdict\": \"gap\",\n \"group\": \"gaps\",\n \"read\": \"none\",\n \"write\": \"none\",\n \"headline\": \"QBO has no VendorType entity to be compatible with — Desktop's vendor-type list (VendorTypeAdd/Query) has no counterpart in the QBO Accounting API, so TenkeyBridge does not expose it.\",\n \"fields\": [],\n \"unsupported\": [\n {\n \"case\": \"read\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"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.\",\n \"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.\"\n },\n {\n \"case\": \"query\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"No QBO VendorType resource to mirror, so no query is exposed.\"\n },\n {\n \"case\": \"create\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"No QBO VendorType resource to mirror, so no create is exposed.\"\n },\n {\n \"case\": \"update\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"No QBO VendorType resource to mirror, so no update is exposed.\"\n },\n {\n \"case\": \"delete\",\n \"error\": \"UNSUPPORTED_BY_DESKTOP\",\n \"note\": \"No QBO VendorType resource to mirror, so no delete is exposed.\"\n }\n ]\n }\n};\n","import { ENTITIES, type EntityName } from \"@tenkeybridge/client\";\nimport { CATALOG, type CatalogEntry } from \"./generated/catalog.js\";\n\nexport function resolveCatalog(name: string): CatalogEntry | undefined {\n const key = Object.keys(CATALOG).find((k) => k.toLowerCase() === name.toLowerCase());\n return key ? CATALOG[key] : undefined;\n}\n\nexport function resolveEntityName(name: string): EntityName | undefined {\n return (Object.keys(ENTITIES) as EntityName[]).find(\n (e) => e.toLowerCase() === name.toLowerCase(),\n );\n}\n\nexport type CatalogSummaryRow = Pick<\n CatalogEntry,\n \"entity\" | \"verdict\" | \"group\" | \"read\" | \"write\" | \"headline\" | \"usage\"\n>;\n\nexport function catalogSummary(): CatalogSummaryRow[] {\n return Object.values(CATALOG).map(({ entity, verdict, group, read, write, headline, usage }) => ({\n entity,\n verdict,\n group,\n read,\n write,\n headline,\n ...(usage ? { usage } : {}),\n }));\n}\n","import type { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { ENTITIES, TenkeyBridgeApiError, type EntityName, type QueryOptions } from \"@tenkeybridge/client\";\nimport { z } from \"zod\";\nimport { resolveCatalog, resolveEntityName } from \"./catalog.js\";\nimport { toolVisible, type AccessSummary } from \"./access.js\";\n\nexport interface EntityAccessorLike {\n get?(id?: string): Promise<unknown>;\n query?(opts?: QueryOptions): Promise<unknown>;\n create?(payload: unknown): Promise<unknown>;\n update?(payload: unknown): Promise<unknown>;\n delete?(args: { Id: string; SyncToken?: string }): Promise<unknown>;\n void?(args: { Id: string; SyncToken: string }): Promise<unknown>;\n}\n\nexport type GatewayClient = Record<string, unknown> & {\n query(entity: string, opts?: QueryOptions): Promise<unknown>;\n report?(name: string, params?: Record<string, string>): Promise<unknown>;\n setClearedStatus?(args: { TxnId: string; LineId?: string; ClearedStatus: string; TxnType?: string }, opts?: { requestId?: string }): Promise<unknown>;\n getClearedStatus?(args: { txnId: string; txnType: string }): Promise<unknown>;\n};\n\ntype ToolResult = {\n content: Array<{ type: \"text\"; text: string }>;\n isError?: boolean;\n};\n\nfunction ok(result: unknown): ToolResult {\n return { content: [{ type: \"text\", text: JSON.stringify(result, null, 2) }] };\n}\n\nfunction fail(message: string): ToolResult {\n return { isError: true, content: [{ type: \"text\", text: message }] };\n}\n\nfunction failure(err: unknown): ToolResult {\n if (err instanceof TenkeyBridgeApiError) {\n return fail(\n JSON.stringify(\n {\n status: err.status,\n code: err.code,\n message: err.message,\n fixes: err.tkb?.fixes,\n docsUrl: err.tkb?.docsUrl,\n ...(err.code === \"SCOPE_DENIED\"\n ? { hint: \"This credential is restricted. Ask the owner of this OAuth app to widen its access in the TenkeyBridge portal. Do not retry.\" }\n : {}),\n ...(err.code === \"IP_NOT_ALLOWED\"\n ? { hint: \"This OAuth app only accepts calls from certain IP addresses and this server is not one of them. Ask the owner to add this server's public address under Allowed IP addresses in the TenkeyBridge portal. Do not retry or re-authorize.\" }\n : {}),\n },\n null,\n 2,\n ),\n );\n }\n return fail(err instanceof Error ? err.message : String(err));\n}\n\nfunction unknownEntity(name: string): ToolResult {\n const gap = resolveCatalog(name);\n if (gap) {\n if (gap.verdict === \"live\") {\n // Live platform endpoints (Reports, Batch, CDC, ...) aren't entities — no accessor\n // exists for them, so don't fall through to the gap-caveat shape below, which would\n // read as \"call this tool, mind the caveats\" and send an agent into a retry loop.\n return fail(\n `${gap.entity} is a platform endpoint, not reachable through this server's entity tools. ` +\n `${gap.entity === \"Reports\" ? \"Use the run_report tool.\" : `Call the REST API directly: ${gap.usage}.`} Detail: compat://entity/${gap.entity.toLowerCase()}`,\n );\n }\n const cases = gap.unsupported\n .map((u) => `- ${u.case}: ${u.error}${u.workaround ? ` — workaround: ${u.workaround}` : \"\"}`)\n .join(\"\\n\");\n return fail(`${gap.entity}: ${gap.headline}\\n${cases}\\nDetail: compat://entity/${gap.entity.toLowerCase()}`);\n }\n return fail(\n `Unknown entity \"${name}\". Supported entities: ${Object.keys(ENTITIES).join(\", \")}. ` +\n `Read the compat://catalog resource to check support before calling.`,\n );\n}\n\nfunction accessor(client: GatewayClient, name: EntityName): EntityAccessorLike {\n return client[ENTITIES[name].accessor] as EntityAccessorLike;\n}\n\nfunction readOnly(name: EntityName): ToolResult {\n const entry = resolveCatalog(name);\n return fail(\n `${name} is read-only through TenkeyBridge (write: ${ENTITIES[name].write}).` +\n (entry ? ` ${entry.headline}` : \"\") +\n ` Detail: compat://entity/${name.toLowerCase()}`,\n );\n}\n\nexport function registerTools(server: McpServer, client: GatewayClient, access?: AccessSummary): void {\n // Restricted keys: hide tools the credential cannot use at all. Best-effort UX only;\n // the gateway enforces. No access block (older gateway) leaves every tool listed.\n const hide = (name: string, tool: { disable(): void }): void => {\n if (!toolVisible(access, name)) tool.disable();\n };\n\n const entityArg = z\n .string()\n .describe('Entity name, e.g. \"Invoice\" or \"Customer\" (case-insensitive). See compat://catalog.');\n\n hide(\"query\", server.registerTool(\n \"query\",\n {\n description:\n \"Run a QBO-style query against the connected QuickBooks Desktop company file. \" +\n \"Supports AND-joined WHERE conditions (=, !=, <, >, <=, >=, IN, LIKE; no OR) plus startPosition/maxResults paging. \" +\n \"Check the compat://catalog resource for entity support first.\",\n inputSchema: {\n entity: entityArg,\n 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'\\\"\"),\n startPosition: z.number().int().positive().optional(),\n maxResults: z.number().int().positive().max(1000).optional(),\n },\n },\n async ({ entity, where, startPosition, maxResults }) => {\n const name = resolveEntityName(entity);\n if (!name) return unknownEntity(entity);\n try {\n return ok(await client.query(name, {\n ...(where !== undefined ? { where } : {}),\n ...(startPosition !== undefined ? { startPosition } : {}),\n ...(maxResults !== undefined ? { maxResults } : {}),\n }));\n } catch (err) {\n return failure(err);\n }\n },\n ));\n\n hide(\"run_report\", server.registerTool(\n \"run_report\",\n {\n description:\n \"Run a QuickBooks Desktop report and get QBO-style report JSON (Header, Columns, Rows). \" +\n \"Report names are QBO names such as ProfitAndLoss, BalanceSheet or CashFlow, plus Desktop extension reports. \" +\n \"Params use QBO names, e.g. start_date, end_date, date_macro, accounting_method, summarize_column_by, \" +\n \"customer, vendor, item, class, account, account_type, transaction_type, columns, report_date, \" +\n \"start_moddate, end_moddate. BudgetOverview and BudgetVsActuals take fiscal_year instead of dates; \" +\n \"MissingChecks requires account, and JobProfitabilityDetail and JobEstimatesVsActualsDetail require customer. \" +\n \"ClassSales gives income by class; TransactionListWithSplits lists every split line. \" +\n \"The payroll reports (PayrollTransactionDetail, PayrollSummary and four more) take a period only (start_date, end_date or date_macro). \" +\n \"Read compat://entity/reports for the available reports and which params each takes.\",\n inputSchema: {\n report: z.string().describe('Report name, e.g. \"ProfitAndLoss\" (case-insensitive).'),\n params: z.record(z.string()).optional().describe('Query params, e.g. { \"date_macro\": \"Last Month\" }.'),\n },\n },\n async ({ report, params }) => {\n if (!client.report) return fail(\"This TenkeyBridge client has no report() method; upgrade @tenkeybridge/client to 0.5.0.\");\n try {\n return ok(await client.report(report, params ?? {}));\n } catch (err) {\n return failure(err);\n }\n },\n ));\n\n hide(\"get\", server.registerTool(\n \"get\",\n {\n description:\n \"Fetch one entity by Id (singletons like CompanyInfo and Preferences need no id).\",\n inputSchema: {\n entity: entityArg,\n id: z.string().optional().describe(\"Entity Id — required unless the entity is a singleton.\"),\n },\n },\n async ({ entity, id }) => {\n const name = resolveEntityName(entity);\n if (!name) return unknownEntity(entity);\n const acc = accessor(client, name);\n if (!acc?.get) return fail(`${name} does not support get. See compat://entity/${name.toLowerCase()}.`);\n try {\n if (ENTITIES[name].singleton) return ok(await acc.get());\n if (!id) return fail(`${name} requires an id — pass the entity Id (use the query tool to find one).`);\n return ok(await acc.get(id));\n } catch (err) {\n return failure(err);\n }\n },\n ));\n\n hide(\"create\", server.registerTool(\n \"create\",\n {\n description:\n \"Create an entity from QBO-shaped JSON (same payloads as the QuickBooks Online API). \" +\n \"Check compat://entity/{name} for field support first.\",\n inputSchema: {\n entity: entityArg,\n payload: z.record(z.unknown()).describe(\"QBO-shaped entity JSON.\"),\n },\n },\n async ({ entity, payload }) => {\n const name = resolveEntityName(entity);\n if (!name) return unknownEntity(entity);\n if (ENTITIES[name].write === \"none\") return readOnly(name);\n try {\n return ok(await accessor(client, name).create!(payload));\n } catch (err) {\n return failure(err);\n }\n },\n ));\n\n hide(\"update\", server.registerTool(\n \"update\",\n {\n description:\n \"Sparse-update an entity: payload must include Id plus only the fields to change.\",\n inputSchema: {\n entity: entityArg,\n payload: z.record(z.unknown()).describe(\"Must include Id; include only fields being changed.\"),\n },\n },\n async ({ entity, payload }) => {\n const name = resolveEntityName(entity);\n if (!name) return unknownEntity(entity);\n if (ENTITIES[name].write === \"none\") return readOnly(name);\n if (typeof payload.Id !== \"string\" || payload.Id.length === 0) {\n return fail(\"update payload must include the entity's Id (string). Updates are sparse — send Id + changed fields only.\");\n }\n try {\n return ok(await accessor(client, name).update!(payload));\n } catch (err) {\n return failure(err);\n }\n },\n ));\n\n hide(\"delete\", server.registerTool(\n \"delete\",\n {\n description: \"Delete an entity by Id (SyncToken optional, as in QBO).\",\n inputSchema: {\n entity: entityArg,\n id: z.string(),\n syncToken: z.string().optional(),\n },\n },\n async ({ entity, id, syncToken }) => {\n const name = resolveEntityName(entity);\n if (!name) return unknownEntity(entity);\n if (ENTITIES[name].write === \"none\") return readOnly(name);\n try {\n return ok(await accessor(client, name).delete!({ Id: id, ...(syncToken ? { SyncToken: syncToken } : {}) }));\n } catch (err) {\n return failure(err);\n }\n },\n ));\n\n hide(\"void\", server.registerTool(\n \"void\",\n {\n description:\n \"Void a transaction by Id + SyncToken (QBO ?operation=void). Supported: Invoice, SalesReceipt, Purchase, BillPayment, and as TenkeyBridge extensions Bill, VendorCredit, Deposit, JournalEntry, InventoryAdjustment. \" +\n \"Destructive: on QuickBooks Desktop the record stays but its totals are zeroed and its memo is prefixed \\\"VOID:\\\". \" +\n \"Returns the post-void record. Fetch the current SyncToken with the get tool first.\",\n inputSchema: {\n entity: entityArg,\n id: z.string(),\n syncToken: z.string().describe(\"Current SyncToken of the transaction (required; a stale token is rejected).\"),\n },\n },\n async ({ entity, id, syncToken }) => {\n const name = resolveEntityName(entity);\n if (!name) return unknownEntity(entity);\n if (!ENTITIES[name].voidable) {\n const supported = Object.values(ENTITIES).filter((e) => e.voidable).map((e) => e.name).join(\", \");\n return fail(`${name} cannot be voided through TenkeyBridge. Voidable entities: ${supported}.`);\n }\n try {\n return ok(await accessor(client, name).void!({ Id: id, SyncToken: syncToken }));\n } catch (err) {\n return failure(err);\n }\n },\n ));\n\n const CLEARED_NEEDS = \"This TenkeyBridge client has no cleared status methods; upgrade @tenkeybridge/client to 0.8.0.\";\n\n hide(\"set_cleared_status\", server.registerTool(\n \"set_cleared_status\",\n {\n description:\n \"Set QuickBooks Desktop's cleared status (Cleared, NotCleared, Pending) on an existing Purchase (check), Deposit, BillPayment (check) or JournalEntry. \" +\n \"A TenkeyBridge extension (QBO has no equivalent). With only the transaction id it sets the transaction's own bank/card side \" +\n \"(a journal entry's first line); with line_id it sets that one line's account side, which must be a bank or other balance sheet account \" +\n \"other than A/R and A/P (an expense or income line is refused). A Transfer cannot be cleared through the API. \" +\n \"Setting a status is idempotent, so retrying is safe; pass request_id (and txn_type) for replay protection. \" +\n \"Use get_cleared_status to confirm what stuck.\",\n inputSchema: {\n txn_id: z.string().describe(\"Id of the transaction, as returned by get/query.\"),\n cleared_status: z.enum([\"Cleared\", \"NotCleared\", \"Pending\"]),\n line_id: z.string().optional().describe(\"Line.Id of the line whose account side to set; omit to set the transaction's own bank side.\"),\n txn_type: z.enum([\"Purchase\", \"Deposit\", \"BillPayment\", \"JournalEntry\"]).optional().describe(\"Entity of the transaction; lets a lost outcome be reconciled with a read.\"),\n request_id: z.string().optional().describe(\"Idempotency key (1-50 printable ASCII characters).\"),\n },\n },\n async ({ txn_id, cleared_status, line_id, txn_type, request_id }) => {\n if (!client.setClearedStatus) return fail(CLEARED_NEEDS);\n try {\n return ok(await client.setClearedStatus(\n { TxnId: txn_id, ClearedStatus: cleared_status, ...(line_id !== undefined ? { LineId: line_id } : {}), ...(txn_type !== undefined ? { TxnType: txn_type } : {}) },\n request_id !== undefined ? { requestId: request_id } : {},\n ));\n } catch (err) {\n return failure(err);\n }\n },\n ));\n\n hide(\"get_cleared_status\", server.registerTool(\n \"get_cleared_status\",\n {\n description:\n \"Read the cleared status of each bank / balance sheet split of one transaction (Purchase, Deposit, BillPayment, JournalEntry, or Transfer). \" +\n \"Costs one extra bounded QuickBooks read (the transaction's own accounts on its own date). Each split has Role, LineId (to send to set_cleared_status) and ClearedStatus; \" +\n \"SetByTxnId marks the split a set without line_id would change. Other values QuickBooks reports (such as a reconciled state) are passed through as it spells them.\",\n inputSchema: {\n txn_id: z.string(),\n txn_type: z.enum([\"Purchase\", \"Deposit\", \"BillPayment\", \"JournalEntry\", \"Transfer\"]),\n },\n },\n async ({ txn_id, txn_type }) => {\n if (!client.getClearedStatus) return fail(CLEARED_NEEDS);\n try {\n return ok(await client.getClearedStatus({ txnId: txn_id, txnType: txn_type }));\n } catch (err) {\n return failure(err);\n }\n },\n ));\n}\n","import type { AccessSummary } from \"@tenkeybridge/client\";\nexport type { AccessSummary };\n\ntype Op = \"read\" | \"create\" | \"update\" | \"delete\" | \"void\" | \"send\";\n\n/** Operation (and the pseudo-entity, when the tool is not entity-scoped) each tool needs. */\nconst NEEDS: Record<string, { op: Op; entity?: string }> = {\n query: { op: \"read\" },\n get: { op: \"read\" },\n create: { op: \"create\" },\n update: { op: \"update\" },\n delete: { op: \"delete\" },\n void: { op: \"void\" },\n run_report: { op: \"read\", entity: \"Report\" },\n get_cleared_status: { op: \"read\", entity: \"ClearedStatus\" },\n set_cleared_status: { op: \"update\", entity: \"ClearedStatus\" },\n};\n\nfunction layerAllows(rules: AccessSummary[\"rules\"], op: Op, entity?: string): boolean {\n return rules.some((r) => {\n if (!r.ops.includes(op)) return false;\n if (!entity) return true; // entity-scoped tool: any rule granting the op is enough to list it\n return r.entity === \"*\" || r.entity === entity;\n });\n}\n\n/**\n * Should this tool be listed for a credential with this access? True when\n * `access` is absent (older gateway: unknown means list everything). For\n * entity-scoped tools one granting rule anywhere keeps the tool; the gateway\n * still refuses entities outside the rule, and SCOPE_DENIED text surfaces.\n */\nexport function toolVisible(access: AccessSummary | undefined, tool: string): boolean {\n if (!access) return true;\n const need = NEEDS[tool];\n if (!need) return true;\n if (!layerAllows(access.rules, need.op, need.entity)) return false;\n if (access.companyRules && !layerAllows(access.companyRules, need.op, need.entity)) return false;\n return true;\n}\n","export const PKG_VERSION = \"0.10.0\";\n","import { mkdirSync, readFileSync, writeFileSync } from \"node:fs\";\nimport { homedir } from \"node:os\";\nimport { dirname, join } from \"node:path\";\n\nexport type McpAuth =\n | { accessToken: string }\n | { clientId: string; clientSecret: string; refreshToken: string };\n\nexport interface McpConfig {\n companyId: string;\n baseUrl?: string;\n auth: McpAuth;\n tokenFile?: string;\n /** Human-readable notes the CLI prints to stderr (deprecated env vars). */\n deprecations: string[];\n}\n\nconst PORTAL_URL = \"https://api.tenkeybridge.com/portal\";\n\nexport function defaultTokenFile(companyId: string): string {\n return join(homedir(), \".tenkeybridge\", `mcp-tokens-${companyId}.json`);\n}\n\nexport function loadConfig(env: Record<string, string | undefined>): McpConfig {\n const fromNew = env.TKB_COMPANY_ID;\n const fromOld = env.TKB_REALM_ID;\n // An empty value counts as unset (e.g. `TKB_COMPANY_ID=` in an env template).\n if (fromNew && fromOld && fromNew !== fromOld) {\n throw new Error(\"TKB_COMPANY_ID and TKB_REALM_ID (deprecated) disagree — set TKB_COMPANY_ID only.\");\n }\n const companyId = fromNew || fromOld;\n if (!companyId) {\n throw new Error(\n `TKB_COMPANY_ID is required — the Company ID of the connected QuickBooks company file (shown in the portal: ${PORTAL_URL}).`,\n );\n }\n const deprecations = !fromNew && fromOld ? [\"TKB_REALM_ID is deprecated; set TKB_COMPANY_ID instead.\"] : [];\n const baseUrl = env.TKB_BASE_URL;\n\n if (env.TKB_ACCESS_TOKEN) {\n return { companyId, deprecations, ...(baseUrl ? { baseUrl } : {}), auth: { accessToken: env.TKB_ACCESS_TOKEN } };\n }\n\n const clientId = env.TKB_CLIENT_ID;\n const clientSecret = env.TKB_CLIENT_SECRET;\n const refreshToken = env.TKB_REFRESH_TOKEN;\n if (!clientId || !clientSecret || !refreshToken) {\n const missing = [\n !clientId && \"TKB_CLIENT_ID\",\n !clientSecret && \"TKB_CLIENT_SECRET\",\n !refreshToken && \"TKB_REFRESH_TOKEN\",\n ].filter(Boolean).join(\", \");\n throw new Error(\n `Missing ${missing}. Set either TKB_ACCESS_TOKEN, or all of TKB_CLIENT_ID + TKB_CLIENT_SECRET + TKB_REFRESH_TOKEN (create an OAuth app in the portal: ${PORTAL_URL}).`,\n );\n }\n\n const tokenFile = env.TKB_TOKEN_FILE ?? defaultTokenFile(companyId);\n const stored = readStoredRefreshToken(tokenFile);\n return {\n companyId,\n deprecations,\n ...(baseUrl ? { baseUrl } : {}),\n tokenFile,\n auth: { clientId, clientSecret, refreshToken: stored ?? refreshToken },\n };\n}\n\nexport function readStoredRefreshToken(file: string): string | undefined {\n try {\n const parsed = JSON.parse(readFileSync(file, \"utf8\")) as { refreshToken?: unknown };\n return typeof parsed.refreshToken === \"string\" ? parsed.refreshToken : undefined;\n } catch {\n return undefined;\n }\n}\n\nexport function persistRefreshToken(file: string, refreshToken: string): void {\n mkdirSync(dirname(file), { recursive: true, mode: 0o700 });\n writeFileSync(file, `${JSON.stringify({ refreshToken, updatedAt: new Date().toISOString() })}\\n`, {\n mode: 0o600,\n });\n}\n"],"mappings":";AAAA,SAAS,aAAAA,kBAAiB;;;ACA1B,SAAoB,wBAAwB;;;AC6BrC,IAAM,UAAwC;AAAA,EACnD,WAAW;AAAA,IACT,UAAU;AAAA,IACV,WAAW;AAAA,IACX,SAAS;AAA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